Skip to main content

Lossless versus lossy compression

Short answer

Lossless compression preserves the original data exactly, with low to moderate ratios (2:1 to 3:1), using statistical redundancy. Lossy compression permanently discards some information, achieving high ratios (10:1 to 100:1) by exploiting human perception limits. Lossless is reversible and used for text/programs; lossy is irreversible and used for photos, music, video.

Differentiate between lossless and lossy data compression.

Lossless compression reduces size so that the decompressed data is identical to the original. Lossy compression discards some information permanently, so the decompressed data is only an approximation of the original.

PointLosslessLossy
Data recoveryExact original is recoveredOnly an approximation is recovered
Information lossNoneSome detail is lost for good
Compression ratioLow to moderate (about 2:1 to 3:1)High (10:1 to 100:1 or more)
ExploitsStatistical redundancyRedundancy plus human perception limits
Typical mediaText, program files, medical and legal imagesPhotos, music, video, streaming
TechniquesRLE, Huffman, arithmetic, LZWDCT, quantization, DPCM, vector quantization
ReversibilityFully reversibleNot reversible
Examples/formatsZIP, PNG, GIF, FLAC, TIFFJPEG, MP3, MPEG, AAC
Quality on repeated savingUnchangedDegrades each time it is re-compressed
Output sizeLargerMuch smaller

Choice: use lossless when every bit matters (a document, an executable), and lossy when small size matters more than perfect fidelity (a streamed video).

✓ Answer checked by Claude Opus 5.5 (high effort)

All Multimedia System chapter 5 questions →