Brotli Codec
v1.0.0Compress and decompress data with Brotli (RFC 7932) — modern HTTP compression
Demonstrates Brotli-style LZ77 compression and decompression (RFC 7932 concept) with a hex dump view and size statistics — all client-side in the browser.
How to use- →Paste or type text in the input panel and click Compress to see the compressed hex dump and compression ratio.
- →Switch to Decompress mode and click the button to restore the original text from the compressed data.
- →This tool uses a simplified LZ77 compressor for demonstration — for production Brotli, use Node.js zlib or brotli-wasm.
- →Use the Examples picker to try HTML, repeated text, and other payloads that benefit from compression.
This tool uses a simplified LZ77-style compression for demonstration. For production Brotli (RFC 7932), use a native library such as brotli-wasm in the browser or the built-in zlib.brotliCompress in Node.js.