Brotli Compression & Decompression (.br)

Compress text or files to Brotli and decompress existing Brotli streams.



How to use

To restore an existing .br file, choose Decompress and select the file. Use UTF-8 output for text or Hex output and Download for binary data.

FAQ

How is a local .br file decompressed?

Select the stream in Decompress mode. The browser expands its bytes locally and creates the download from that result without uploading the stream.

What is supported?

Input and output are limited to 8 MiB. The worker has a 30-second deadline. Choose Hex or Base64 to display compressed bytes, or download the raw stream.

Other Languages

Brotli Compression & Decompression (.br) — Base64.sh

Brotli Compression & Decompression (.br)

Compress text or files to Brotli and decompress existing Brotli streams.

Share:

References

How we make sure

We check this tool with the automated test suites linked below. Example checks are shown in their original language.

Verification method
Check browser-generated Brotli with Node zlib and Node-generated Brotli with the browser decoder. Reject oversized decompressed output. Empty-file regression checks verify the emitted stream with Node zlib and decode both locally generated and Node-generated empty streams.
Comparison reference
Node.js 24.22.1 zlib Brotli; only the named examples and bounded formats are covered.
Verification scope
Covers cross-decoding specific Brotli streams, including empty streams and an oversized-output case.
Test source and cases (select a file to read it)
  • completion-tools.test.js
    • brotli-compress: Node zlib reads output and browser decoder reads Node output
    • compression bounds: reject oversized Brotli output before returning bytes
    • Brotli empty stream is valid in Node and decodes to an empty file

These checks cover the listed examples and boundaries, not every possible input. Round trips and checks using the same library are not independent verification.