From NCERTAsked by Anonymous from Dallas, United States23 Oct 2026, 11:05 PM ISTUpdated
In one line
A computer uses special rules to find and shrink the parts of data that repeat or take up too much space.
The rule
Data compression is the process where a computer finds patterns or repeated parts in data and stores them in a shorter way, so the file takes up less space.
There is no single formula, but the idea is: Find repeated or unnecessary data → Replace or remove it → Store the rest more efficiently.
Let's understand it simply
Imagine you are writing a long list of names for your cricket team, but some names come again and again. Instead of writing “Rahul, Rahul, Rahul, Rahul,” you can write “Rahul (4 times).” This saves space and time. Computers do the same with files, songs, or videos. They look for parts that appear again and again or parts that can be made smaller without losing meaning.
How it works
The computer reads the whole file, like a song or a photo.
It looks for patterns—like the same sound, color, or word repeating.
It marks these repeating parts.
It replaces them with a short code or a number (like “Rahul (4)” instead of writing Rahul four times).
It saves the new, shorter version as the compressed file.
How a computer compresses data
Read the whole file
Find repeated or similar parts
Replace repeats with short codes
Save the new, smaller file
The story behind it
People wanted to send pictures and songs faster over slow internet. In the 1970s and 1980s, scientists made rules (algorithms) to shrink files. One famous method is ZIP, made by Phil Katz in 1989. He wanted to send files quickly and save space on floppy disks.
Where you see it in real life
Sending photos on WhatsApp → The app compresses the image so it uploads faster.
Downloading a movie → The movie file is compressed, so it takes less data and time.
Listening to MP3 songs → The song is compressed, so you can store hundreds of songs on your phone.
Zipping files before emailing → ZIP compresses many files into one small file.
Watching YouTube → Videos are compressed so they stream smoothly, even on slow networks.
Why it matters
Saves storage space on your phone, computer, or pen drive.
Makes files upload and download faster, saving data and time.
Lets you share more photos, songs, and videos with friends.
Used in exams and jobs: understanding compression is key in computer science and IT fields.
Common mistakes
Thinking compression removes important parts: Good compression keeps the main information.
Believing all files compress the same: Some files (like already compressed videos) may not get much smaller.
Forgetting that some compression (like ZIP) needs to be uncompressed before use.
Remember it
A computer compresses by finding repeated or extra parts and making them smaller or shorter.
Check yourself
Why does WhatsApp compress photos before sending?
To make the photo smaller so it sends faster and uses less data.
What does a computer look for when compressing data?
It looks for repeated or unnecessary parts to shrink.
If a song is already in MP3 format, will compressing it again save much space? Why or why not?
No, because MP3 is already compressed; compressing again won't help much.
Quick recap
Compression finds and shrinks repeated or extra data.
It helps files take up less space and send faster.
Apps like WhatsApp and YouTube use compression daily.
Not all files compress equally well.
Compression keeps the main information, just in a shorter way.