Skip to content

Lossy vs Lossless: What Actually Happens to Your File

Every compressed file lands somewhere on a spectrum between smaller and faithful. Understanding which side a format leans toward tells you what you're really trading when you export.

Definition

Lossy compression permanently discards data the algorithm judges as visually or aurally redundant to reach smaller sizes. Lossless compression rearranges and encodes data so the original bytes can be reconstructed exactly.

Why it matters

If you're compressing a photo for a webpage, lossy is almost always the right call, the savings are huge and the loss is invisible. But if you're archiving a design master, a medical scan, or a document you'll re-edit, a lossy round-trip quietly bakes in damage you can't undo.

Advantages

  • Lossy formats produce dramatically smaller files, ideal for web and messaging
  • Lossless keeps originals editable and re-exportable without generational decay
  • Knowing the distinction prevents accidentally re-saving JPEGs and degrading quality each time
  • You can match the format to the job: photos lossy, logos and screenshots lossless
  • Modern lossy codecs (WebP, AVIF) close the visible-quality gap while staying tiny

Disadvantages

  • Lossy loss is cumulative, every re-save chips away more detail
  • Lossless files can be 5–10× larger, which hurts page speed
  • Lossy artifacts (blocking, ringing) show up on flat colors, text, and line art
  • Lossless doesn't help photographs shrink much, the entropy is too high
  • Quality sliders vary wildly between encoders, so 'quality 80' isn't a standard

Examples

  • A 12 MP phone photo saved as JPEG quality 80 for Instagram
  • A logo exported as PNG so edges stay crisp on any background
  • A UI screenshot with text. PNG keeps letters sharp; JPEG fuzzes them
  • Editing a JPEG, saving, editing again, quality slowly erodes
  • A RAW-to-TIFF archive of a shoot before any lossy export

Common misconceptions

  • 'Lossless means highest quality', quality is a setting; lossless just means reversible
  • 'PNG is always better than JPEG', for photos, PNG is bigger without looking better
  • 'Compressing twice halves the size again', you mostly just add artifacts
  • 'Lossy is bad', it's how the modern web is even usable
  • 'Renaming .jpg to .png makes it lossless', the pixels are already lossy

Frequently asked questions