SEO & Performance
Compression Ratio Calculator
Compare an original size against gzip and Brotli sizes to see the compression ratio and percentage savings. Everything is calculated in your browser — nothing is uploaded.
Sizes to compare
binary unitsLeave a codec blank to skip it. Units are binary: 1 KB = 1024 B, 1 MB = 1024 KB.
Comparison
liveBiggest reduction
Measure from text
optionalHow it works
Enter the uncompressed size and the compressed sizes reported by your server, build tool,
or browser DevTools. The calculator shows the compression ratio
(original ÷ compressed) and the space savings
((1 − compressed ÷ original) × 100), then highlights which
codec wins. A ratio below 1:1 or a negative saving means the “compressed”
output is actually larger. Nothing leaves your browser.