Code Beautifier

Gzip Size Estimator

Measure uncompressed vs Gzip/Brotli compressed byte sizes and bandwidth savings directly in your browser. · Updated

text
json
Draft saved locally.

FAQ

How does the in-browser Gzip estimation work?

It compresses your input using the browser's native `CompressionStream('gzip')` API to measure the exact byte count.

Why is measuring Gzip size important for web performance?

HTTP transfer size directly impacts First Contentful Paint (FCP) and Largest Contentful Paint (LCP) Core Web Vitals.

What typical compression savings can I expect on JSON and code?

Text and code payloads typically compress by 60% to 85% due to repeated syntax structures and whitespace patterns.

Can I measure minified vs unminified payloads?

Yes. Paste any unminified code or minified code to compare raw bytes vs transfer bytes.