How to use
- Paste or type your JavaScript, TypeScript, or any text into the code input.
- Read the raw UTF-8 byte size displayed instantly below.
- Compare the gzip and brotli estimates to understand the likely transfer size over HTTP.
- Check the entropy value (bits per character) — lower entropy means the text is more compressible.
Examples
- A 500-byte React component shows roughly 280 bytes gzip and 240 bytes brotli estimated, about 44% compression.
- Pasting minified JSON with repeated keys shows higher entropy and smaller compression gains compared to readable source code.