Log in Sign Up
← Blog
Guides

Lossy vs Lossless Compression: What It Means for Your Files

7 min read  ·  June 2026

Almost every file you touch is compressed, and there are only two ways to do it. One throws some data away to get dramatically smaller files; the other keeps every single byte. Knowing which is which explains a surprising number of everyday mysteries: why a photo shrinks so much more than a logo, why a song re-saved a few times starts to sound thin, and why a zipped folder unpacks back to exactly what you put in. This is the difference, and why it matters.

Lossless: nothing is thrown away

Lossless compression shrinks a file by storing the same information more cleverly, with zero loss. The trick is to describe repetition compactly: instead of recording "blue, blue, blue, blue, blue," it notes "blue ×5." Uncompress it and you get back the original, byte for byte. This is what ZIP files do, and it is how formats like PNG, FLAC and most document compression work. The catch is that it can only do so much — once the obvious repetition is encoded, there is nothing left to squeeze, so lossless files stay relatively large. You use it whenever every detail must survive: text, code, spreadsheets, archives, and graphics with sharp edges.

Lossy: throw away what you won't notice

Lossy compression goes much further by permanently discarding data — but cleverly, targeting the parts human senses barely register. A JPEG drops subtle colour variations your eye glosses over; an MP3 removes frequencies you can hardly hear, especially quiet sounds masked by louder ones. The result is files a fraction of the size that still look or sound almost identical to the original. The price is that the thrown-away data is gone for good. You use lossy compression for photographs, music, and video — anything where a tiny, invisible sacrifice in fidelity buys an enormous saving in size.

Which formats are which

  • Images: JPG and WebP (lossy mode) are lossy; PNG and WebP (lossless mode) are lossless. That is the whole reason a photo is small as a JPG but a screenshot stays crisp as a PNG.
  • Audio: MP3, AAC and OGG are lossy; FLAC and WAV are lossless.
  • Video: essentially all common video (MP4, WebM) is lossy — lossless video would be impractically huge.
  • Documents & archives: ZIP, and the compression inside PDFs and Office files, is lossless for text. A PDF made from a scan, though, contains lossy JPEG images.

The trap: re-compressing a lossy file

Here is the practical lesson that saves your files. Because lossy compression discards data each time, repeatedly opening and re-saving a JPEG or MP3 stacks loss on top of loss — a process called generation loss. Edit and re-save a photo ten times and it visibly degrades, the way a photocopy of a photocopy gets muddier. The defence is simple: keep a lossless master if you can, do all your editing on it, and export to a lossy format only once, at the end. Converting a JPG to PNG does not restore what was lost — it just stops further damage from that point on.

Choosing in practice

  • Photo for the web or email? Lossy (JPG/WebP) — small and indistinguishable from the original.
  • Logo, screenshot, or anything with sharp text? Lossless (PNG) — lossy would blur the edges.
  • Archiving important originals? Lossless, so nothing degrades over time.
  • Hitting a strict file-size limit? Lossy, with a target size, gets you there when lossless cannot go small enough.

Lossy buys size by quietly discarding what you would not miss; lossless keeps everything but cannot shrink as far. Match the method to the job — lossy for photos, music and video, lossless for text, graphics and masters — edit on the lossless original, and export to lossy only once. Get that habit right and your files stay both small and sharp.

Compress a file the smart way

Shrink images or PDFs to a target size — free and instant.

Compress an Image

Related articles

JPG vs PNG vs WebP: Which to Use → MP3 vs WAV vs FLAC vs M4A → 5 Ways to Reduce Image File Size →