Loading Brotli Decompressor...
Please wait a moment

How to Decompress a Brotli File

Step 1

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:

•
Upload a .br file: Click Upload and choose the file. It is read as raw bytes and shown as Base64 in the input box
•
Paste Base64: If the Brotli bytes reached you as Base64 (in a log, a JSON field or an email), paste that text into the input box
•
Try the sample: Click Sample to load the Base64 shown below

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.

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.

•
Whole stream or nothing: If the data is cut off or has extra bytes after its end, you get an error saying so, not a partial result
•
Wrong format: If the bytes turn out to be GZIP, ZLIB, Zstandard, ZIP or plain text, the error names the format
•
Text or binary: Readable text appears in the output panel; for anything else you see its size and a Download button

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.

Step 3

Copy or Download Decompressed Data

Use your decompressed content:

•
Copy: Copies the decompressed text to the clipboard
•
Download: Saves the decompressed bytes exactly, named after your .br upload (app.js.br becomes app.js), or as decompressed.txt or decompressed.bin for pasted data
•
Process further: Tidy JSON output with the JSON Formatter or view it as a table with JSON to Table

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.