Data Compression Ratio Calculator

Measure and quantify the efficiency of a data compression.
Original Data Size
Compressed Data Size
Advertisement

What is Data Compression ?

Data compression is the process of reducing the size of a data file without losing essential information. The primary goal is to save storage space or reduce data transmission time.

There are two types of data compression:

  1. Lossless Compression:

    • Reduces file size without losing any data.
    • The original file can be perfectly reconstructed.
    • Examples: ZIP files, PNG images.
  2. Lossy Compression:

    • Reduces file size by discarding some data that is deemed less important.
    • The original file cannot be fully restored.
    • Examples: JPEG images, MP3 audio.

What is Compression Ratio ?

The compression ratio measures how much the size of data has been reduced after compression. It is the ratio of the original data size to the compressed data size.

It can be calculated using the below formula :

Compression Ratio = Original Data Size / Compressed Data Size

  • Example:

    Original Data Size = 200MB, Compressed Data Size = 50MB

    Compression Ratio = 200/50 = 4:1

This means the original file has been reduced to one-fourth of its size after compression.

What is Compression Percentage ?

The compression percentage shows the percentage reduction in data size after compression. It indicates how much smaller the compressed data is compared to the original data.

It can be calculated using the below formula :

Compression Percentage = (1 - [Compressed Data Size/Original Data Size]) X 100

  • Example:

    Original Data Size = 200MB, Compressed Data Size = 50MB

    Compression Percentage = (1 - [50/200]) x 100 = (1 - 0.25) x 100 = 75%

This means the data size has been reduced by 75% due to the compression.

Author Information

Rajesh V U photo

Rajesh V U

Full-Stack Developer & Storage Technologist | Creator of UnitSmash.com
Last updated: June 1, 2026

I am a Storage Technologist with strong experience in enterprise storage systems, Angular development, and web-based tools. I enjoy building practical calculators, converters, and utilities, and I also create original cartoons. I share my tools, articles, and creative work on my personal website, rajeshvu.com.