Gzip Size Calculator
See how much your text, CSS or JS shrinks over the wire with gzip and deflate.
Transfer size
What your content really costs over the wire
Web servers almost always send text assets — HTML, CSS, JavaScript, JSON — compressed, so the raw file size overstates what a visitor actually downloads. This measures the real gzip and raw-deflate size of whatever you paste, using the browser's built-in Compression Streams API (the same DEFLATE algorithm your server uses), and shows the saving. Handy for checking whether a change actually shrinks a payload, or how much a chunk of inline CSS/JS adds to a page.
Reading the numbers
Gzip adds a small header and checksum over raw deflate, so on tiny inputs gzip can look larger — compression only pays off past a few hundred bytes. Real servers increasingly use Brotli for static text, which usually beats gzip by 15–20%; the browser API doesn't expose Brotli, so treat gzip here as a close, conservative proxy. Nothing is uploaded — it's all computed locally.
These calculators run entirely in your browser — nothing you type is sent anywhere. Results are estimates for planning; validate against your vendor's documentation before you buy or deploy.