Compression Ratio Calculator

Enter the size before and after compressing to get the ratio, the percentage saved and the bytes saved.

Use the tool

Loading the tool…

About Compression Ratio Calculator

Work out how much a file has shrunk. Enter the original size and the compressed size, and choose the unit for numbers that do not have one. The tool shows the ratio and the saving.

Worked example

Enter 10 MB for the original and 2.5 MB for the compressed file. The saving is 75 percent.

Limits

The result depends on whether 1 KB means 1000 bytes or 1024 bytes. Choose the option that matches the tool or system you are using.

How to use Compression Ratio Calculator

  1. Enter the original size.
  2. Enter the compressed size.
  3. Read the ratio and space saved.

Good to know

  • A ratio of 4 : 1 means the compressed file is a quarter of the original.
  • If the compressed file is larger, the result says the file grew.
  • Sizes of zero are refused because a ratio cannot be worked out.
  • Choose whether 1 KB means 1000 or 1024 bytes.

Frequently asked questions

How is the ratio worked out?

Original size divided by compressed size. Space saved is one minus compressed size over original size.

Can the ratio be below 1?

Yes. That means the file got bigger, which happens with data that is already compressed.