Brotli Decompress
Developer & Author —Egor VolchenkoThis 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.
How to use Brotli Decompress
Use the following steps to process a small test input.
Read a Brotli payload
- Paste the complete stream into Compressed Data (Base64 / Hex). Use printable encoded bytes rather than raw binary characters.
- 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.
- Leave Auto / Live on to update the result as you edit. To run manually, turn it off and click Run.
- Read Decompressed Text. The current form displays decoded bytes as UTF-8 text and has no output-encoding selector.
- 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.
https://million.tools/api/v1/run/brotli-decompress Request Parameters (JSON / Form Data)
-
start(orinput)Compressed Data (Base64 / Hex)
-
input_encodingInput Encoding
hexhex_ignore_non_hexbase64utf-8utf-16leutf-16bewindows-1251windows-1252
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"
}
}
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.
Ratings & feedback 0
Share your experience with this tool.
No feedback yet
Be the first to leave a review or rating.