> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bringits.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Decode

> Decode base64+LZ4 or base64+gzip payloads into JSON

The Decode command (Command Type: 1023) decodes base64+LZ4 or base64+gzip payloads (e.g. Betano/SignalR messages) into JSON. It also unwraps SignalR envelopes including the V3 R field, and is available in all scraper contexts (parse type).

## Overview

The Decode command provides functionality for:

* Decoding base64+LZ4 compressed payloads into JSON
* Decoding base64+gzip compressed payloads into JSON
* Unwrapping SignalR envelopes including V3 R field format

## Command Type

**Command Type ID:** 1023

## Parameters

| Parameter    | Type   | Description                                                                               | Required |
| ------------ | ------ | ----------------------------------------------------------------------------------------- | -------- |
| **encoding** | string | The encoding used to decode the payload. Possible values: `"base64+lz4"`, `"base64+gzip"` | No       |

## Usage Examples

### Decode base64+LZ4 Payload

```json theme={null}
{
  "command": "decode",
  "params": {
    "encoding": "base64+lz4"
  }
}
```

### Decode base64+gzip Payload

```json theme={null}
{
  "command": "decode",
  "params": {
    "encoding": "base64+gzip"
  }
}
```

### Decode with Auto-detection

```json theme={null}
{
  "command": "decode",
  "params": {}
}
```

## Common Use Cases

* **SignalR Messages**: Decode Betano/SignalR compressed payloads into readable JSON
* **Compressed Responses**: Handle LZ4 or gzip compressed binary data from WebSocket or HTTP sources
* **V3 Envelope Unwrapping**: Automatically unwrap SignalR V3 R field envelopes

## Related Commands

* [XML Parse](/stream/commands/parse/xml-parse) - Parse XML payloads
* [JSON Parse](/stream/commands/parse/json-parse) - Parse plain JSON strings
* [Json Path](/stream/commands/parse/json-path) - Extract fields from decoded output
