All posts
Format Guides 7 min readOctober 31, 2026

Lossy vs Lossless Compression: What You Actually Lose

By , Founder of Filoshi

JPEG, MP3 and H.264 throw data away; PNG, FLAC and ZIP don't. How each works, when the loss matters, and how to avoid stacking it when you convert.

Get Filoshi · $29The file converter that works on your PC. 1,841 tested conversions, nothing uploaded.

Lossless compression makes a file smaller and gives back exactly the original data when you open it, bit for bit. Lossy compression makes a file much smaller by throwing away detail it predicts you won't notice, and that detail is gone for good. Every round of lossy compression adds a little more loss, so the one rule worth remembering is: keep an original, and convert from it, not from an earlier copy.

That single distinction explains most of the "will converting ruin my file?" questions. Here is how each kind works, which formats use which, and how to keep the loss where you can't see or hear it.

Lossless: smaller, with nothing thrown away

Lossless compression looks for redundancy and writes it down more efficiently. A run of a thousand identical white pixels doesn't need a thousand separate entries; a repeated phrase in a document doesn't need to be stored every time. When the file is opened, the decoder rebuilds the exact original.

The classic example is DEFLATE, the method inside ZIP files and PNG images, published as RFC 1951. ZIP's own specification lists it as compression method 8. For audio, FLAC does the same job: its specification, RFC 9639, describes a format that reduces the storage needed for digital audio "without losing information".

The catch is that lossless compression can only squeeze out redundancy. Photos, recorded sound and video have very little of it in the exact sense, so lossless versions of them stay large. A FLAC file is typically far bigger than an MP3 of the same song, and a PNG of a photo is far bigger than a JPEG.

Lossy: much smaller, by removing what you're unlikely to notice

Lossy compression accepts that the decoded result won't be identical, and uses what we know about eyes and ears to decide what to drop.

  • JPEG splits an image into small blocks and stores fine detail more coarsely than broad shapes and colors. Mozilla's image format guide notes that photographs and other continuous-tone images "can usually tolerate lossy compression", which is why JPEG has been the photo format for decades (MDN image format guide).
  • MP3 and AAC model what the ear can and can't hear, and spend their bits where it matters. Fraunhofer, where MP3 was developed, notes that newer AAC-family codecs deliver more features and higher audio quality at much lower bitrates than MP3 (Fraunhofer IIS on MP3).
  • Video codecs such as H.264, HEVC and AV1 do all of that and also predict each frame from the frames around it, storing only what changed. That's how an hour of HD video fits in a few gigabytes. Video containers vs codecs explains those codecs.

The amount thrown away is adjustable. A quality slider or a bitrate setting decides how aggressive the encoder is. At high settings the difference is very hard to see or hear; at low settings you get blocky images and smeared cymbals.

Which formats are which

LossyLosslessCan be eitherUncompressed
JPEG, HEIC (as phones save it), MP3, AAC/M4A, Opus, OGG Vorbis, H.264, HEVC, AV1, VP9PNG, GIF, FLAC, ALAC, ZIP, 7z, TAR.GZWebP, AVIF, JPEG XL, TIFFWAV, AIFF, BMP

A few of these need a footnote:

  • GIF is lossless, but each frame can only use a palette of at most 256 colors, as MDN explains. A full-color photo turned into a GIF loses colors at that step, even though GIF's compression itself loses nothing.
  • WebP has a lossy and a lossless mode. Google's own studies found lossy WebP 25 to 34% smaller than JPEG at the same measured quality (Google's WebP compression study), and lossless WebP 23% smaller than PNG files optimized with ZopfliPNG (Google's lossless study). AVIF and JPEG XL also offer both modes.
  • PDF is a container: one PDF can hold lossless text and vector drawings next to lossy JPEG photos.
  • SVG isn't compressed pixels at all, but shapes described as math, so it has no quality setting. SVG vs PNG explains vector and raster images.

Generation loss: why converting twice hurts

Every time a file is decoded and encoded again with a lossy format, the encoder makes fresh decisions about what to throw away, on a picture or sound that has already lost detail. The losses stack. This is called generation loss, and it's the reason a meme that has been screenshotted and re-shared a hundred times looks like it was photographed through a sock.

Some common ways people stack loss without meaning to:

  • Converting an MP3 to AAC, then the AAC to MP3 again for an old car stereo.
  • Re-saving a JPEG after every small edit.
  • Downloading a video from a site that already re-compressed it, then compressing it again to send it on.
  • Converting a MOV to MP4, then the MP4 to WebM, instead of making both from the MOV.

Each step on its own may be invisible. Five steps usually aren't.

Lossless never adds quality back

The other common misunderstanding runs the opposite way. Converting a lossy file into a lossless format doesn't restore anything. A JPEG saved as PNG keeps every pixel exactly as the JPEG decoded it, compression artifacts included, in a much larger file. An MP3 converted to FLAC sounds exactly like the MP3. JPG to PNG: why it doesn't add quality goes through the cases where it still makes sense, such as editing in several rounds.

The same goes for raising the bitrate. A 128 kbps soundtrack exported as a 320 kbps MP3 is a bigger file, not a better one.

Five rules that keep the loss invisible

  1. Keep a master. The camera original, a lossless export, the FLAC rip, the project file. Everything else is a copy made from it.
  2. Convert once, from the master. Need an MP3 and an M4A? Make both from the FLAC, not one from the other.
  3. Choose quality on purpose. High settings for anything you keep, lower ones for previews and email. The default isn't always right for your use.
  4. Go lossless to lossy at the end of the chain. Edit in lossless or uncompressed formats, then make the lossy delivery file last. Recording in WAV and publishing MP3 is the textbook case: WAV to MP3, not MP3 to WAV and back.
  5. Look and listen at the end. Zoom to 100% on a photo, listen on headphones, watch a fast-moving scene. If you can't tell, the setting is fine.

Archiving: when lossless is worth the space

For a music collection, lossless is the "negative" you can always make new copies from. Converting WAV to FLAC keeps every bit of the audio in a smaller file with proper tags, and FLAC to MP3 makes the phone copy whenever you need one. FLAC vs MP3 compares the two in detail.

For photos, the camera's original file is the master. Delivering a JPEG is fine; just don't make the JPEG your only copy if you might edit again. And for a quick share, PNG to JPG trades a little invisible detail for a file a fraction of the size, which is exactly what lossy compression is for.

How to know before you convert

Each conversion page on this site says whether that particular conversion loses quality, keeps exactly what's decoded, or is a second round of lossy compression. The Formats page lists every conversion Filoshi offers.

In the Filoshi app, lossy outputs default to the encoder's highest-quality setting: quality 100 for images, the best VBR setting for MP3 and AAC, and a high-quality setting for H.264 video. You can lower them in the file viewer when you want a smaller file. The original is never changed, so the master stays a master. Filoshi always re-encodes video, so a video conversion is never lossless, even between two formats that use the same codec.

I make Filoshi, so weigh what I say about it accordingly. The facts about formats and Windows are linked to their sources.

Frequently asked questions

Is converting MP3 to FLAC lossless?

The FLAC file is an exact copy of what the MP3 decodes to, so no further quality is lost. But nothing is gained either: the detail MP3 removed is gone, and the FLAC is several times larger. Converting MP3 to FLAC only makes sense when a program requires FLAC input. For a lossless library, start from the CD or a lossless download.

Is PNG always lossless?

The PNG format is lossless: what you save is exactly what you get back. Some tools, though, reduce the number of colors before saving to make the file smaller, which changes the image at that step. And converting a JPEG to PNG keeps the JPEG's existing artifacts. So the format loses nothing, but what went into it may already have lost something.

Does zipping a JPEG or MP4 make it smaller?

Barely. JPEG and MP4 files are already compressed, so there is little redundancy left for ZIP's lossless compression to remove. Zipping is useful for bundling many files into one, and it does shrink text, spreadsheets and uncompressed formats such as WAV or BMP. To make a photo or video substantially smaller, you need a lower quality setting or a smaller resolution.

Does a JPEG lose quality every time I open it?

No. Opening, viewing and copying a JPEG never changes it. Quality is lost only when the image is decoded and saved again as a JPEG, for example after an edit. To edit a photo in several sessions, save the work in a lossless format such as PNG or TIFF, or in the editor's own project format, and export one JPEG at the end.

compression lossless lossy quality format-guide

Ready to convert files privately?

1,841 tested conversions. No uploads. No accounts. Runs entirely on your machine.

Get Filoshi · $29