Tool Hub

Bundle Size

Text size + gzip/brotli estimation via Shannon entropy heuristic

Raw (UTF-8)

177 B

gzip (estimate)

110 B

brotli (estimate)

99 B

Entropy

4.55 bits/char

⚠ gzip/brotli are heuristic estimates based on Shannon entropy. Real compression may differ ±20%.

How to use

  1. Paste or type your JavaScript, TypeScript, or any text into the code input.
  2. Read the raw UTF-8 byte size displayed instantly below.
  3. Compare the gzip and brotli estimates to understand the likely transfer size over HTTP.
  4. 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.

Verify outputs before using in production. No warranty — see Terms.