0
0

Brotli Decompress

Egor VolchenkoEgor Volchenko
CreatedNov 24, 2026
UpdatedNov 24, 2026

This Brotli decompressor restores a compressed payload entered as Hex or Base64 and displays the decoded bytes as UTF-8 text. Use it to inspect a small text response, log sample, or test fixture. It does not fetch a URL or upload a compressed file.

1
1

How to use Brotli Decompress

Use the following steps to process a small test input.

Read a Brotli payload

  1. Paste the complete stream into Compressed Data (Base64 / Hex). Use printable encoded bytes rather than raw binary characters.
  2. Select Hex under Input Encoding: for hexadecimal data or Base64 for Base64 data. The default UTF-8 choice is also treated as Base64 for this operation.
  3. Leave Auto / Live on to update the result as you edit. To run manually, turn it off and click Run.
  4. Read Decompressed Text. The current form displays decoded bytes as UTF-8 text and has no output-encoding selector.
  5. Click Copy to copy the result. Use Clear where shown, or the field clear controls, to remove the text.

Paste CwKAaGVsbG8D, select Base64, and run the tool. Decompressed Text is hello. The same payload in Hex is 0b028068656c6c6f03.

A rejected request may leave an earlier result visible. Clear the fields and recheck the input before relying on a new calculation.

Use the matching stream format

A Brotli stream needs a Brotli decoder. It cannot be decoded by treating it as gzip, zlib, or raw DEFLATE.

Read text output carefully

Decompression restores bytes, but this form renders those bytes as UTF-8. Arbitrary binary output may contain replacement characters. The API rejects decompressed output above 1 MiB; this is a decoded-byte limit, not a promise about input size.

Frequently asked questions

Check the compression format, whether the input is Hex or Base64, and whether the payload is complete. A valid printable encoding does not guarantee that the decoded bytes form a valid compressed stream.

API — Brotli Payload Decoder

Automate this tool directly from your scripts, CI/CD pipelines, or backend applications via HTTP POST.

No API Key Required 60 req/min
https://million.tools/api/v1/run/brotli-decompress

Request Parameters (JSON / Form Data)

  • start (or input)

    Compressed Data (Base64 / Hex)

    Type: string Default: —
  • input_encoding

    Input Encoding

    hex hex_ignore_non_hex base64 utf-8 utf-16le utf-16be windows-1251 windows-1252
    Type: string Default: utf-8
bash — cURL
curl -X POST https://million.tools/api/v1/run/brotli-decompress \
  -H "Content-Type: application/json" \
  -d '{"start":"CwKAaGVsbG8D"}'
const response = await fetch('https://million.tools/api/v1/run/brotli-decompress', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
      "start": "CwKAaGVsbG8D"
  }),
});

const data = await response.json();
console.log(data.result);
import requests

response = requests.post(
    'https://million.tools/api/v1/run/brotli-decompress',
    json={
        "start": "CwKAaGVsbG8D",
    },
    timeout=15,
)

data = response.json()
print(data['result'])
$ch = curl_init('https://million.tools/api/v1/run/brotli-decompress');
curl_setopt_array($ch, [
    CURLOPT_POST           => true,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER     => ['Content-Type: application/json'],
    CURLOPT_POSTFIELDS     => json_encode([
        'start' => 'CwKAaGVsbG8D',
    ]),
]);

$response = json_decode(curl_exec($ch), true);
curl_close($ch);

echo $response['result'] ?? '';
{
    "status": "success",
    "tool": "brotli-decompress",
    "service": "brotli_decompress",
    "result": "hello",
    "results": {
        "result": "hello"
    }
}
Egor Volchenko
Egor Volchenko Developer & Author

Hi! I’m a WordPress developer with over 10 years of experience. I love Tailwind CSS, clean code, and intuitive interfaces. I’m currently working on million.tools — a service with convenient online tools for everyday tasks. I’m building it from scratch with great attention to detail and user experience.

Published:
Updated:

Ratings & feedback 0

Share your experience with this tool.

Leave feedback

Your rating (optional)

Select a rating

Write a review, leave a rating, or do both.

Your email stays private.

No feedback yet

Be the first to leave a review or rating.