How to Decompress a Brotli File
Upload or Paste Brotli Data
Start with the Brotli compressed data you want to open. Brotli is the compression format Google designed for web content, and browsers ask for it with Accept-Encoding: br:
Example: Brotli Input as Base64
These 113 bytes of Brotli data, written as Base64, are what the Sample button loads:
G4oAEBwHdkz4jUK0MHgfSgvR3PpKOi4bprpQNFiC2FYE8UExjaUOC1QoQE0O2G97kceXKKCWQyS5wXGaFVDxJOuHQTeQt3C746//wvwNS2D4Jw6ABgBeVYzTvJTB0ItwjXFW1RePWlPAWXLeVwG6zw4=Decompressed, they give back the 139-byte JSON document in Step 2.
Let It Decompress
There is no button to press: about half a second after the input changes, the page decompresses it in your browser.
Example: Decompressed Output
The Step 1 example comes back as this JSON document:
{ "service": "CloudStorage Pro", "users": [ { "id": 12345, "name": "Alex Johnson", "storage": "500GB" } ] }
Every character comes back exactly as it was compressed, numbers and spacing included.
Copy or Download Decompressed Data
Use your decompressed content:
Frequently Asked Questions
How do I decompress a .br file?
Click Upload and pick the file. The page reads it as raw bytes, shows them as Base64 in the input box and decompresses them right away. Download then saves the result under the original name without the .br ending, so app.js.br comes back as app.js.
Where do .br files usually come from?
Most of them are static assets that a build step compressed ahead of time (bundle.js.br, styles.css.br, index.html.br) so a web server can hand them out with Content-Encoding: br instead of compressing on every request. Decompressing one is a quick way to check that the .br file really holds the current version of the asset and not an old build.
How do I get the raw Brotli bytes of a web response?
Ask for Brotli and save the body without letting your client unpack it, for example curl -H "Accept-Encoding: br" -o page.br https://example.com/. curl only decompresses when you add --compressed, so page.br keeps the Brotli bytes, and you can upload it here. Browser developer tools always show the response already decompressed.
What happens if the decompressed file isn't text?
Brotli can hold anything, including images, fonts and WebAssembly. When the result isn't readable text, the output panel shows its size instead of garbled characters, and Download saves the exact bytes, named after your upload or as decompressed.bin.
Why does it say my data is cut off, has extra bytes, or isn't Brotli?
The whole stream has to decode before anything is shown. "Cut off" means it ends before its last block, which usually means an incomplete download or a truncated copy. "Extra bytes" means something follows the end of the stream. Brotli has no signature bytes of its own, so when the data is rejected the page checks whether it is GZIP, ZLIB, Zstandard, LZ4, ZIP or plain text and tells you which. For GZIP data, use GZIP Decompression instead.
Is my file uploaded anywhere?
No. Decompression runs in your browser with a WebAssembly build of the Brotli library, so the file you pick never leaves your computer, and nothing is kept: reloading the page gives you an empty editor.
How do I do the same thing from the command line or in code?
With the brotli command-line tool, brotli -d file.br writes file next to it. In Node.js, zlib.brotliDecompressSync(buffer) does it, and in Python, brotli.decompress(data) from the brotli package. To go the other way and compress text into Brotli, use Brotli Compression.
Related Tools
Brotli Compressor
Compress text or a file with Brotli in your browser and download the .br file
Brotli Unzip
Brotli unzip tool - Unzip and extract .br files online. Fast Brotli extractor and unbrotli decompression
Brotli to Base64
Compress data with Brotli and encode to Base64 format
Base64 to Brotli
Decode Base64 and decompress the Brotli data inside it
GZIP Decompressor
Open a .gz file or GZIP Base64 in your browser and get the original bytes back
ZLIB Decompressor
ZLIB decompressor - Decompress ZLIB files online. Extract compressed data with zlib decompression tool