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.

Runs in your browser v1.0.0

Sizes to compare

binary units

Leave a codec blank to skip it. Units are binary: 1 KB = 1024 B, 1 MB = 1024 KB.

Comparison

live

Measure from text

optional

How 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.