Lossy vs lossless compression: what you lose and when it matters
Every compressed file makes one of two promises: you will get the original back exactly, or you will get something close enough. Knowing which promise a format makes prevents most quality surprises.
- Published
- CategoryImages & File Formats
- Reading time3 min read

Two kinds of compression
Lossless compression finds patterns and repetition in data and stores them more efficiently. When the file is opened, the original is rebuilt bit for bit. Nothing is lost. ZIP archives, PNG images, FLAC audio and the text inside most PDFs work this way.
Lossy compression goes further. It deliberately discards information that people are unlikely to notice, then compresses what remains. The file can be dramatically smaller, but the discarded detail is gone for good. JPG photos, MP3 and AAC audio and almost all streaming video work this way.
A simple analogy
Imagine describing a wall of identical blue tiles. A lossless description says "200 blue tiles" instead of listing each tile. Anyone can rebuild the exact wall.
A lossy description of a painted landscape might say "sky, gradually lighter towards the horizon" instead of recording every brush stroke. The result looks right from across the room, but the individual strokes cannot be recovered.
Where each approach is used
| Type of file | Lossless formats | Lossy formats |
|---|---|---|
| Images | PNG, lossless WebP, GIF (limited colours), TIFF | JPG, lossy WebP, AVIF (usually) |
| Audio | WAV (uncompressed), FLAC, ALAC | MP3, AAC/M4A, Ogg Vorbis, Opus |
| Video | Rare outside professional editing | MP4 with H.264/H.265, WebM with VP9/AV1 |
| Documents and archives | ZIP, PDF text streams | Images embedded inside a PDF may be lossy |
Some formats, such as WebP, can do either; the setting decides.
What lossy compression costs
At sensible settings, lossy compression is close to invisible or inaudible. Problems appear when:
- Quality is set too low. Photos show blocky squares and halos around edges; music sounds watery or loses crisp cymbals.
- Files are re-compressed repeatedly. Every save of a JPG or every MP3-to-MP3 conversion throws away a bit more. This is called generation loss.
- The content is a poor fit. Text, line drawings and screenshots have hard edges that lossy image formats handle badly.
What lossless compression costs
Only space. A lossless photo or a WAV recording is much larger than its lossy equivalent: a three-minute song is roughly 30 MB as uncompressed WAV and a few megabytes as MP3. Lossless compression also cannot shrink data that is already compressed: zipping a JPG barely changes its size.
Practical rules
- Keep a lossless or original master for anything you will edit later: the camera original, a PNG of a design, a WAV recording.
- Export lossy copies for sharing, once, at the end. Do not edit and re-save lossy files over and over.
- Converting lossy to lossless does not restore quality. Turning an MP3 into WAV or a JPG into PNG stops further loss, but the file only gets bigger. Our MP3 versus WAV comparison explains this for audio.
- Match the format to the content: lossy for photos and music, lossless for screenshots, text, logos and archives. Our JPG, PNG and WebP guide shows how this works for images.
How Convertios tools handle it
- The image compressor uses lossy JPG or WebP encoding, searching for the highest quality that fits a target size, or lossless PNG when you choose it.
- The Image Converter switches between JPG, PNG, WebP, BMP and GIF in the browser; whether quality is lost depends on the output format.
- The Audio Converter changes MP3 to WAV and WAV to MP3 in the browser. WAV to MP3 is lossy; MP3 to WAV keeps the MP3's existing sound in an uncompressed container.
Published by Convertios.


