🗜️ Compression Ratio Calculator

Calculate compression ratio and space saved between an original and compressed file size, in either direction, and sanity-check your result against typical real-world ratios for ZIP, video, images, and audio.

🗜️ Size Comparison
Enter either direction — original and compressed size — the calculator works both ways.
📈 Compression Result
Compression Ratio
Space Saved
Space Saved (Amount)
Original Size
Compressed Size
Typical Real-World Compression Ratios
TypeTypical RatioSpace Saved
Original vs Compressed Size
⚠️ Reference ratios are typical industry figures and vary with content type, encoder settings, and file structure — treat them as a sanity check, not a guarantee.
📊

Enter your details and click Calculate to see results

Guide

About the Compression Ratio Calculator

Compression ratio is the standard way to express how much a compression algorithm shrank a file, and this calculator computes it directly from an original and a compressed file size — whichever two numbers you have, in either direction. It's useful whether you're comparing archive tools, evaluating a new video codec, checking whether a backup job is actually compressing your data, or just curious how much smaller a ZIP or gzip made a folder of files.

How It Works

Enter the original (uncompressed) size and the compressed size, each with its own unit (KB, MB, or GB). The calculator converts both to a common unit and computes compression ratio = original size ÷ compressed size, expressed as X:1. It also derives space saved percentage = (1 − compressed/original) × 100, and the absolute amount of space saved (original minus compressed). A doughnut chart visualizes the proportion between the two sizes, and a reference table shows typical ratios for common compression scenarios — general-purpose ZIP, gzip on text, H.265 vs H.264 video, JPEG vs PNG images, and FLAC vs WAV audio — so you can see at a glance whether your result is in a normal range or unusually high or low for the data type.

Why It Matters

A compression ratio in isolation doesn't tell you much without context — 2:1 is excellent for already-compressed video but disappointing for plain text, which typically compresses 3:1 or better with gzip. Comparing your actual result against typical real-world ratios helps you judge whether an encoder setting, backup tool, or storage format is performing as expected, or whether something (like re-compressing already-compressed data) is limiting your results.

Tips for Accurate Results

  • Compression ratio depends heavily on data type — text and structured data (logs, JSON, CSV) compress far better than already-compressed formats like JPEG, MP4, or MP3.
  • If your ratio is close to 1:1 on a media file, that's often expected — the codec has already removed most redundancy, so further general-purpose compression won't help much.
  • When comparing codecs (like H.264 vs H.265), make sure both files represent the same visual/audio quality — otherwise the ratio reflects a quality change, not just compression efficiency.
  • Use consistent units for original and compressed size, or let the unit selectors do the conversion for you, to avoid an inflated or deflated ratio from a unit mismatch.
  • Remember that space saved percentage and compression ratio describe the same relationship differently — a 4:1 ratio always equals 75% space saved, and a 10:1 ratio always equals 90% space saved.
About

Understanding Compression Ratios

📦

General-Purpose Compression

ZIP and similar archivers achieve roughly 2:1 on typical mixed files by finding and removing repeated byte patterns. Gzip on plain text can do better, often 3:1 or higher, because text has a lot of predictable structure and redundancy.

🎞️

Media Compression

Video, image, and audio codecs use specialized, lossy techniques tuned to human perception. H.265 roughly halves H.264's bitrate at equal quality (~2:1), JPEG can be 5-10× smaller than PNG for photos, and FLAC is about half the size of uncompressed WAV audio while remaining lossless.

📊

Ratio vs Percentage

A compression ratio of 4:1 means the original is four times the compressed size — equivalent to 75% space saved. Higher ratios and higher percentages both mean better compression; use whichever framing is clearer for your audience.

FAQ

Frequently Asked Questions

Common questions about compression ratio

How is compression ratio calculated?
Compression ratio = original size ÷ compressed size, usually expressed as X:1. For example, a 100 MB file compressed to 25 MB has a compression ratio of 4:1 — meaning the original is 4 times larger than the compressed version.
What's a good compression ratio?
It depends entirely on the data type. General-purpose tools like ZIP typically achieve around 2:1 on mixed files. Text compresses well with gzip at roughly 3:1 or higher. Already-compressed formats like JPEG, MP3, or MP4 barely compress further (often under 1.1:1) because the redundancy has already been removed.
What is the difference between compression ratio and space saved percentage?
Compression ratio compares the two sizes as a multiple (e.g. 4:1), while space saved percentage expresses the reduction as a share of the original: space saved % = (1 − compressed/original) × 100. A 4:1 ratio corresponds to 75% space saved, since the compressed file is one-quarter the original size.
Why doesn't my video/image/audio file compress much further with ZIP?
Formats like MP4 (H.264/H.265), JPEG, and MP3 are already compressed using algorithms tuned for that data type. Running general-purpose compression like ZIP on top rarely helps and can occasionally make the file slightly larger, because there's little redundant data left to remove.
How much smaller is H.265 than H.264 at the same quality?
H.265 (HEVC) typically compresses video to about half the bitrate of H.264 for the same visual quality, giving a roughly 2:1 compression ratio relative to H.264 — one reason streaming services and modern cameras have widely adopted it.

Related Calculators

Explore other tech tools