File compression reduces the size of a file by encoding its data more efficiently. Smaller files take less storage space, transfer faster over networks and cost less mobile data. Compression is used everywhere: ZIP archives, JPEG photos, MP3 music, MP4 video and even web pages are compressed.
Key terms
- Compression
- reducing file size by efficient encoding
- Decompression (extraction)
- restoring compressed data
- Lossless compression
- no information is lost
- Lossy compression
- some information is permanently removed
- Archive
- a single file containing one or more compressed files
- Compression ratio
- original size divided by compressed size
Key formulas
Summary
- Compression saves space and transfer time.
- Lossless keeps all data (ZIP, PNG); lossy removes some (JPEG, MP3).
- Compression ratio = original ÷ compressed.
In everyday life: Sending a ZIP of compressed photos instead of the originals saves students real money on mobile data bundles.
Check yourself
- When must lossless compression be used?
- A 20 MB file compresses to 5 MB. What is the ratio?
- Why do JPEG files hardly shrink when zipped?
Practice questions
1. True or false: Compressing a file with lossless compression (such as ZIP) permanently removes some of its data.
Show answer
Answer: False
Lossless compression rebuilds the exact original when the file is extracted. Lossy formats like JPEG and MP3 discard data.
2. A 40 MB folder is compressed to a 10 MB ZIP file. What is the compression ratio (original ÷ compressed)?
Show answer
Answer: 4
Compression ratio = 40 ÷ 10 = 4, often written 4:1. The ZIP takes a quarter of the original space.
On WeLearn
The full lesson: reading notes, worked examples, class activities and the Unit 1 quiz
Study File Compression on WeLearnTeach File Compression with WeLearn
We will bring a demo to your school: a lesson on your interactive TV, a virtual lab and a classroom game, with your own teachers.
