L
LLLOS.ai
Learn
L

Ask Your Tutor · Computer Science

What happens if I try to compress files to save space?

General knowledge Asked by Anonymous 23 Oct 2026, 8:49 AM IST Updated

In one line

You make files smaller by compressing them, so they take up less space on your computer or phone.

The rule

File compression is the process of reducing the size of a file by encoding its data in a more efficient way, so it uses less storage space.

There is no single formula, but you often see file types like .zip, .rar, or .7z after compression.

Let's understand it simply

Imagine you have a big suitcase full of clothes. If you fold the clothes neatly and squeeze out the air, you can fit more into the same suitcase. File compression works the same way. It finds patterns and repeated parts in your files and packs them more tightly. So, the file becomes smaller, but nothing is lost if you use the right method.

How it works

  1. The computer looks for repeated data or patterns in your file.
  2. It replaces these patterns with shorter codes or symbols.
  3. The new, shorter file is saved (like a .zip file).
  4. When you want to use the file, you "unzip" or decompress it, and the computer puts everything back as it was.
How file compression works
  1. Find repeated patterns in the file
  2. Replace them with shorter codes
  3. Save the compressed file (like .zip)
  4. Unzip to get the original file back

The story behind it

File compression started becoming important when computers had very little storage and slow internet. In the 1970s and 1980s, scientists like Abraham Lempel and Jacob Ziv created famous compression methods (LZ77, LZ78). Their work made it possible to send and save bigger files without using too much space or time.

Where you see it in real life

  • Sending photos on WhatsApp → Photos are compressed so they send faster and use less data.
  • Downloading movies or songs → Files are compressed to save space and reduce download time.
  • Email attachments → Large documents are zipped before sending.
  • Backing up data → Backup tools compress files to save storage.
  • Installing apps → App files are compressed to fit more on your phone.

Why it matters

  • Saves storage space on your device or pen drive.
  • Makes it faster to send or download files, especially with slow internet.
  • Lets you store more photos, songs, or videos in the same space.
  • Used in almost every area of computing: apps, games, websites, and more.

Common mistakes

  • Thinking compression always makes files tiny: Some files (like already compressed videos) won't get much smaller.
  • Forgetting to decompress: You can't use a zipped file directly; you must unzip it first.
  • Using the wrong tool: Some compressed files need special apps to open.

Remember it

Compression is like folding and packing your files to fit more in less space, but you need to unpack them to use them.

Check yourself

Why do people compress files before sending them by email?

To make them smaller, so they send faster and use less space.

What must you do before you can use a zipped file?

You must decompress or unzip it to get the original files.

Why don’t some files get much smaller after compression?

Because they are already compressed or have little repeated data.

Quick recap

  • Compression makes files smaller to save space.
  • It works by finding patterns and packing data tightly.
  • You need to decompress (unzip) files to use them normally.
  • Not all files compress well—some are already small.
  • Used everywhere: messaging, downloads, backups.
Written by the LLOS.ai tutor. Asked by Anonymous on 23 Oct 2026, 8:49 AM IST