File Size Estimator
Estimate original and compressed (gzip, brotli) sizes for text or files to gauge network transfer impact. Paste text or drop a file below.
Drag & drop a file or
About File Size Estimator
What a file weighs on disk is not what it costs to ship over the wire. Servers and CDNs almost always send text-based assets compressed with gzip or Brotli, so the number that actually affects your page load is the compressed transfer size — not the raw byte count your editor reports. This estimator shows both, so you can reason about real network impact before you deploy.
Paste a snippet of JSON, HTML, CSS, or JavaScript, or drop in a file, and the tool reports the original size next to its gzip and Brotli equivalents along with the compression ratio. That makes it easy to answer practical questions: will inlining this payload bloat the response, how much does minifying actually save, and is Brotli worth enabling for this kind of content.
Estimation happens entirely in your browser, so nothing you paste leaves your machine. It is meant as a fast sanity check during development rather than a substitute for measuring your production server's exact compression settings.
How to use File Size Estimator
Provide content
Paste text directly into the input or drag and drop a file you want to measure.
Read the sizes
The tool shows the original size alongside its gzip and Brotli compressed estimates.
Compare ratios
Use the compression ratio to judge how much bandwidth compression saves for this specific content.
Decide and optimize
Use the numbers to choose between inlining, minifying, or enabling a particular compression scheme.
Frequently asked questions
Related developer tools
JSON Formatter · Beautifier · Validator
Format, minify, sort keys, and validate JSON/JSONC/JSON5 with optional JSON Schema validation. Supports comments and trailing commas.
Base64 Encoder / Decoder
Encode text or files to Base64, or decode Base64 back to its original form. Supports text input and file drag-and-drop.
Zip File Diff Checker
Compare two Zip files and identify differences including added, removed, changed, and unchanged files with detailed metadata.