Tool Hub

套件大小估算

文字大小 + 以 Shannon 熵啟發式方法估算 gzip/brotli 大小

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%.

使用方法

  1. 將 JavaScript、TypeScript 或任何文字貼到代碼輸入中。
  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。

範例

  • 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。

生產環境使用前請驗證輸出。無擔保 — 參見 條款.