What is Lossy Compression?
Lossy compression reduces file size by permanently removing some data - used for images, audio, and video
Last updated:
Lossy Compression: Simple Definition
Lossy compression permanently removes some data from a file to achieve smaller file sizes. Unlike lossless compression, the original data cannot be perfectly reconstructed - some information is permanently lost.
However, lossy compression is designed to remove data that humans barely perceive. JPEG discards image details the eye barely notices. MP3 removes audio frequencies the ear cannot easily hear. The result looks or sounds nearly identical despite containing less data.
Exploiting Human Perception
Lossy compression leans on perceptual coding: it models the limits of human sight and hearing and removes detail those senses are least likely to notice.[1] JPEG transforms image blocks into frequency components and coarsely quantizes the high-frequency detail the eye perceives weakly, while audio coders discard sounds masked by louder nearby tones.[2] The key idea is that "lossy" does not mean "low quality"; it means the loss is targeted at information you were never going to perceive, so a well-compressed lossy file can look or sound identical to the original at a fraction of the size.
Quality Settings and Artifacts
Most lossy encoders expose a quality or compression level that trades file size against fidelity. Pushing the setting too far introduces visible artifacts, blocking, ringing or color banding in images and a watery, hollow character in audio.[2] The discarded information is gone permanently and cannot be restored by decompression.[1] The skill is in choosing a setting just high enough that artifacts stay invisible, which for JPEG is typically around 80 percent quality and for audio around 192 to 256 kbps.
Generation Loss
Because each lossy pass throws away data, repeatedly editing and re-saving a lossy file degrades it cumulatively, a problem known as generation loss.[2] Workflows therefore keep a lossless or original master and export to a lossy format only as a final step.[1] This is why editing a JPEG ten times leaves it visibly worse than the original, while editing a lossless master and exporting once does not, the loss happens only at the moment of lossy encoding.
When Lossy Is the Right Choice
Lossy compression is the correct default for photographs, music, and video destined for viewing or listening rather than archiving or editing. For these, the file-size savings are enormous and the imperceptible loss is a fair trade. It is the wrong choice for text, code, data, and master files you will keep editing, where any loss corrupts meaning or compounds over time. The simple rule: lossy to deliver, lossless to preserve and edit.
How Lossy Compression Works
Lossy algorithms exploit limitations of human perception. JPEG converts image data to frequency components and discards the subtle high-frequency details that require the most storage. At moderate settings, the difference is nearly invisible.
The key trade-off with lossy compression is that quality loss is permanent and cumulative. Each time you save a JPEG, more data is discarded. Always keep lossless originals for important files.
Examples of Lossy Compression
JPEG images | FileFormer
JPEG is the most common lossy image format. At 85% quality, files are 5-10x smaller than PNG with barely perceptible quality loss.
MP3 audio | FileFormer
MP3 removes audio frequencies the human ear cannot easily perceive. A 320kbps MP3 is 10x smaller than WAV with nearly indistinguishable quality.
H.264 video | FileFormer
H.264 uses temporal compression to store only changes between frames. Video is 100x smaller than uncompressed with excellent quality.
WebP images | FileFormer
WebP lossy compression achieves 25-35% smaller files than JPEG at equivalent visual quality for web images.
Work With Your Files
Now that you understand the concept, use our free tools to convert, compress, and optimize your files.
Try Image Converter FreeFrequently Asked Questions
Does lossy compression always reduce quality?
Yes, but at moderate settings the quality loss is barely noticeable. At high quality settings (JPEG 85%), most people cannot see the difference.
Can I reverse lossy compression?
No. Lossy compression permanently discards data. You cannot recover the lost information.
How many times can I save a JPEG?
Every JPEG save causes quality degradation. For editing, use PNG or work in a non-destructive format. Only convert to JPEG for the final output.
What quality setting should I use for JPEG?
85% quality is the sweet spot for most web images - excellent quality with significantly smaller file size than 100%.
Is lossy compression bad?
Not at all. For photos, music, and video, modern lossy compression at good settings is virtually indistinguishable from lossless, with 5-100x smaller file sizes.