Gzip vs Brotli Compression Benchmark

Wondering if Brotli is worth enabling? Paste your real payload — HTML, JS, JSON — and measure gzip vs deflate right here. Brotli isn't available in browsers, so you get its typical ratios as an reference band.

—
Embed this tool on your website / blog No code required · Copy and paste
HTML Embed Code (iframe):
<iframe src="https://lucentool.com/compression-compare" width="100%" height="650" style="border:1px solid #e5e0d8;border-radius:12px;max-width:850px;width:100%;" frameborder="0"></iframe>
<div style="font-size:12px;color:#78716c;margin-top:6px;font-family:sans-serif;">Powered by <a href="https://lucentool.com/compression-compare" target="_blank" style="color:#c85a32;text-decoration:none;">Lucentool - Gzip vs Brotli Compression Benchmark</a></div>

What you're measuring

The tool compresses your text with the browser's native CompressionStream — gzip (deflate + header/checksum) and deflate (zlib-wrapped deflate) — and reports compressed size, bytes saved and ratio. This is a real measurement of your actual payload, not a guess from a generic table.

Where Brotli fits

Reading the table

Ratio is compressed ÷ original (lower is better; 0.35 means you saved 65%). The Brotli estimate row applies the typical band to your measured gzip size. For CDN decisions, compare your gzip ratio here, then check what your host serves via curl -H "Accept-Encoding: br,gzip" -I.