Workflow
Lossy vs Lossless Compression, With Real Files
Lossless compression shrinks a file and can rebuild it bit for bit. Lossy compression shrinks it much more by permanently discarding detail you are unlikely to notice. Use lossless to archive and edit, lossy to share and stream.
What is the difference between lossy and lossless compression?
Lossless compression finds patterns and writes them more briefly, like shorthand. Decompress it and you get the exact original. PNG, FLAC, Apple Lossless (ALAC) and zip work this way.
Lossy compression decides which information a person is least likely to miss, such as faint color shifts in a photo or sounds masked by louder ones, and deletes it. JPEG, HEIC, AVIF, MP3, AAC and H.264 video work this way. The deleted data does not come back.
How much smaller is lossy for images?
We took one 2000 px photo and saved it four ways:
| Format | Type | Bytes |
|---|---|---|
| PNG | Lossless | 3,185,142 |
| WebP, lossless mode | Lossless | 1,529,592 |
| JPEG, quality 95 | Lossy | 524,458 |
| WebP, quality 75 | Lossy | 60,008 |
Lossless WebP was about half the size of PNG, which is a real saving with no change to the pixels. The lossy files were far smaller still. The photo is a smooth macOS wallpaper, so the lossy numbers flatter lossy formats. Detailed photos shrink less. The two lossy rows are also at different quality levels, so compare formats only at a matched quality; our benchmark does that with 24 photos.
What is lossless vs lossy audio?
We converted one 10 second WAV clip (882,078 bytes):
| Format | Type | Bytes |
|---|---|---|
| WAV | Uncompressed | 882,078 |
| FLAC | Lossless | 677,098 |
| Apple Lossless (ALAC) | Lossless | 674,314 |
| AAC, 128 kbps | Lossy | 167,981 |
| MP3, 128 kbps | Lossy | 160,958 |
We decoded the ALAC file back to WAV and its audio hash matched the original. Lossless is the right choice for masters you will edit again. A 128 kbps lossy file is about a fifth the size of the WAV, fine for listening on earbuds, but each re-encode loses a bit more. Bitrate is explained in audio bitrate explained, and the Mac steps are in converting FLAC to MP3.
Is video ever lossless?
It can be, but nobody ships it. We made a lossless copy of our 6.9 MB H.264 test clip using the FFV1 codec and got 17.1 MB, about two and a half times larger than the lossy file it came from. Delivery formats such as H.264 and H.265 are lossy by design. See H.265 vs H.264 for the quality and compatibility trade.
When can you actually see or hear the loss?
Lossy damage shows up in predictable places. In images, look at hard edges and text: JPEG leaves faint blocky noise around them, which is why screenshots and logos belong in PNG. Smooth gradients such as skies can show banding at low quality.
In audio, low bitrates smear cymbals and quiet background detail. In video, fast motion and dark scenes break up first. The fix in every case is the same: raise the quality setting a step and compare at full size before you commit.
One more rule. Never convert lossy to lossy in a chain if you can avoid it. Going from MP3 to AAC, or JPEG to WebP, stacks a second round of loss on the first. Always go back to the source file.
How do I do lossless compression on a Mac?
- Images: save as PNG, or run a lossless optimizer such as ImageOptim. Our ImageOptim comparison shows how little lossless saves on photos.
- Audio: export Apple Lossless or FLAC. In Terminal,
does it.afconvert in.wav out.m4a -f m4af -d alac - Anything: Finder’s right-click Compress makes a zip. It is lossless but saves little on photos and video, which are already compressed.
- Metadata: removing EXIF changes no pixels; see how to remove EXIF data.
Which should I choose?
Keep a lossless or original copy of anything you will edit, print or archive. Send lossy copies to people and websites. Compress once from the original instead of compressing a compressed file. Our measurements of quality loss show how re-saving adds up.
When is Smol the wrong tool for this?
Smol has no lossless mode for images; it always re-encodes them. For pixel-identical results use ImageOptim or save as PNG. For lossless audio,
afconvert or Music is enough, and Preview exports a single image for free.Smol earns $29 when you want lossy on purpose: a chosen quality across a folder of images, PDFs, video and audio, from the Finder right-click, with nothing uploaded. It writes a copy next to the original by default. Compare tools in the best image compressor for Mac, then see pricing.
How we checked this
On macOS 27.0.1 we saved one 2000 px image as PNG, JPEG and WebP, encoded one WAV with afconvert and ffmpeg, checked ALAC by audio hash, and made an FFV1 copy of an H.264 clip. Facts last checked . We make Smol, so treat our claims about it with the same care as any vendor’s, and see our editorial policy.
Lossy and lossless compression: common questions
Is lossless always better than lossy?
No. Lossless preserves every bit but makes much larger files. In our audio test, FLAC was 677,098 bytes against 167,981 for 128 kbps AAC. For listening, sharing and web pages, lossy is the sensible choice. For masters you will edit again, lossless is.
Is PNG lossless?
Yes. PNG stores every pixel exactly, and we saved one ten times with no change in the decoded pixels. The cost is size: our 2000 px photo was 3,185,142 bytes as PNG against 524,458 as a quality 95 JPEG. PNG suits screenshots, logos and graphics best.
Is FLAC better than MP3?
FLAC keeps the audio exactly, MP3 does not. A 128 kbps MP3 of our clip was about a fifth the size of FLAC. On earbuds most people cannot tell the difference at higher bitrates. Choose FLAC for archiving and MP3 for portability and compatibility.
Can I turn a lossy file back into lossless?
You can convert it to a lossless container such as FLAC or PNG, but the discarded detail does not return. The file just gets bigger. Converting an MP3 to FLAC gives you a large file with MP3 quality, so it is not worth doing.
Is HEIC lossy or lossless?
Usually lossy. iPhones save photos as HEIC with lossy compression that keeps a similar look in less space than JPEG. HEIC can technically be lossless, but that is not the common case. Converting HEIC to JPEG can make the file larger.
Keep reading