Compression ratio and space saved calculator
Enter the size before and after compression to see the ratio, the percent saved and the space saved.
Enter the two sizes
Compression result
Loading the calculator…
How to use it
- Enter the size of the original file and choose its unit.
- Enter the size after compression.
- Read the ratio, the percent saved and the space saved. The bars show the two sizes side by side.
The formula
ratio = original size / compressed size (written N:1) percent saved = (1 - compressed / original) x 100 space saved = original - compressed
This site defines the ratio as original divided by compressed, so a bigger number means more compression. Some texts use the inverse. Check the definition before comparing numbers.
Worked example
A file of 10 MB becomes 2 MB. The ratio is 10 ÷ 2 = 5:1. The percent saved is (1 − 2 ÷ 10) × 100 = 80%, and the space saved is 10 − 2 = 8 MB.
What it assumes
- Both sizes are measured the same way, for example both as file sizes in bytes.
- The ratio is original divided by compressed.
- A ratio below 1:1 means the file got larger.
Limits
- The ratio describes one file and one method. Another file, or another setting, can give a very different result.
- Lossy methods remove information, so a higher ratio can also mean lower quality. The ratio alone does not say how good the result looks or sounds.
This is an estimate. The arithmetic is exact for the two sizes you enter. Any ratio you expect for a future file is an estimate.
Your numbers stay here
The math runs in your browser and nothing you type is sent to us. Your last calculation is saved in your browser (localStorage) so the calculator is filled in when you return. Press Reset to clear it. See the privacy policy.





