Gzip and Deflate Transfer Size Estimator for Text Assets
Compresses pasted text with the browser and shows raw, gzip and deflate sizes.
Use the tool
Why this tool exists
Compression is the cheapest speed gain for text files, and you can see its effect before you touch the server.
The page uses the browser CompressionStream at its default level. A server at maximum level or a build step may beat it a little. Brotli is not shown because browsers cannot create it and this site ships no encoder of its own; measure Brotli on your server.
How to use it
- Paste the contents of an HTML, CSS, JS or JSON file.
- Read the byte counts and percent saved.
- Compare with your minified version if you have one.
- Check your server sends content-encoding.
Frequently asked questions
Why no Brotli?
The browser compression API only offers gzip and deflate. Brotli is usually smaller, so test it on the server.
Does it work for images?
No. Images and WOFF2 fonts are already compressed.
Is gzip level configurable?
Not in the browser API; it uses a default level.
Is the text uploaded?
No.