Skip to main content
EnglandComputer ScienceSyllabus dot point

Why is data compressed, and what is the difference between lossy and lossless?

The need for compression and the difference between lossy and lossless compression, with their typical uses.

An OCR J277 1.2.5 answer on the need for data compression and the difference between lossy and lossless compression, including how each works and their typical uses.

Generated by Claude Opus 4.88 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this dot point is asking
  2. Why data is compressed
  3. Lossy compression
  4. Lossless compression
  5. Comparing the two
  6. Try this

What this dot point is asking

OCR wants you to explain why files are compressed and to distinguish lossy from lossless compression, including how each works and where each is used. The lossy-versus-lossless comparison is a reliable exam question, so learn the contrast and a typical use for each precisely.

Why data is compressed

Lossy compression

Lossless compression

Comparing the two

The trade-off is quality versus size. Lossy achieves much smaller files but loses some data permanently, which is acceptable for media where the human eye or ear will not notice. Lossless preserves everything, so it cannot shrink files as much, but it is essential where any change would matter. A common exam point is that you can compress a photo with lossy methods because a viewer will not spot the removed detail, but you must use lossless for a document or program because even one altered character could break it.

Try this

Q1. State two reasons a file might be compressed. [2 marks]

  • Cue. Any two of: smaller size / less storage, faster transfer / less bandwidth, fits a size limit.

Q2. State one difference between lossy and lossless compression. [1 mark]

  • Cue. Lossy permanently removes data and cannot be reversed exactly; lossless keeps all data and can be reconstructed perfectly.

Q3. Give a suitable use for lossless compression. [1 mark]

  • Cue. Compressing text documents, program code or any file where every bit must be preserved (for example a ZIP archive or PNG image).

Exam-style practice questions

Practice questions written in the style of OCR exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

OCR 20204 marksExplain the difference between lossy and lossless compression, and state a suitable use for each.
Show worked answer →

Lossy compression permanently removes some of the data, usually detail that humans are less likely to notice, to make the file much smaller; the original cannot be exactly restored. Lossless compression reduces the file size without removing any data, so the original can be perfectly reconstructed; it does this by recording the data more efficiently (for example storing repeated patterns once).

Uses (one mark each): lossy suits photos, music and video streaming, where a smaller file matters more than perfect detail (for example JPEG images or MP3 audio). Lossless suits text documents, program code, spreadsheets and any file where every bit must be preserved (for example a ZIP archive or a PNG image).

Markers reward "lossy removes data / cannot be reversed" versus "lossless keeps all data / can be reversed", plus a sensible use for each.

OCR 20223 marksGive three reasons why a user might compress a file before sending it as an email attachment.
Show worked answer →

Award one mark per valid reason, up to three: a compressed file is smaller, so it takes up less storage space; it transfers faster and uses less bandwidth, so the email sends and downloads more quickly; it may fit within an email provider's attachment size limit that the original would exceed; and several files can be combined into one compressed archive for convenience.

Markers reward distinct reasons (smaller size, faster transfer / less bandwidth, fits size limits). Repeating the same idea in different words counts once.

Related dot points

Sources & how we know this