Data compression

Compression makes files smaller so they take less space and travel faster across networks. The trick is choosing what, if anything, to throw away.

Practise this lesson free (6 questions)

More tools

Why compress?

Smaller files use less storage, download and upload faster, and use less bandwidth.
Streaming video and music would be very hard without compression.

Lossless compression

The file is made smaller without losing any data. The original can be rebuilt exactly.
Essential for text, program files and spreadsheets, where every bit matters. Examples: ZIP, PNG.

Lossy compression

Some data is permanently removed, usually detail people will hardly notice.
Files become much smaller, but the original cannot be restored.
Used for photos, music and video. Examples: JPEG and MP3.
Worked example

A school wants to email a 60-page report and a holiday photo. Which type of compression suits each?

  1. Report: every character matters, so lossless.
  2. Photo: small loss of detail is fine, so lossy gives a much smaller file.

Answer: Lossless for the report, lossy for the photo

Key idea

Compression saves storage and transmission time. Lossless keeps all the data and can be reversed exactly. Lossy permanently removes some data to make much smaller files (JPEG, MP3).

Key words
Compression
Making a file smaller, to save storage space and transmission time.
Transmission time
time (s) = file size (bits) รท transmission rate (bits per second). Convert bytes to bits by multiplying by 8. Example: 2,000,000 bytes at 8 megabits per second = 16,000,000 รท 8,000,000 = 2 s.
Bandwidth
The maximum amount of data that can be sent per second.
Bit
A single binary digit, 0 or 1.

All GCSE and International GCSE Computer Science key terms and definitions โ†’

Quick check

Try two quick questions

See if it has sunk in. Answers are marked straight away.

Extra practice

2 more questions

Try each one, then tap to check.

  1. What is lossy compression?

    1. Compression that lets the original be rebuilt exactly
    2. Compression that permanently removes some data
    3. Compression only used for text
    4. Encryption of a file
    Show the answer

    Answer: Compression that permanently removes some data

    Lossy removes data that cannot be restored.

  2. Which image format usually uses lossy compression?

    1. PNG
    2. BMP
    3. GIF
    4. JPEG
    Show the answer

    Answer: JPEG

    JPEG removes detail to shrink photos.

Check you have got it

Answer 6 quick questions with instant marking. If you get one wrong, GCSE-ready shows you why and gives you another go. It is free, and you do not need an account.

Video for this lesson coming soon. Subscribe on YouTube

Sources and references

Facts checked against the sources below, 17 October 2026. Last updated 2 October 2026. Spotted a mistake? Tell us and we will fix it.

What do exam command words like explain and evaluate mean? โ†’

Related lessons