
Compare lossy vs lossless compression, learn how each method works, and choose the right option for photos, screenshots, web images, editing, and archives.
Updated:
Lossy compression removes image data to make files smaller; lossless compression rewrites the data more efficiently so the decoded pixels can remain unchanged. Choose lossy for web photos, thumbnails, and sharing. Choose lossless for screenshots, logos, editing masters, and any image where exact pixels matter.
| Lossy compression | Lossless compression | |
|---|---|---|
| What changes? | Some image information is permanently discarded | Pixel data is encoded without intentional loss |
| Can it restore the original pixels? | No | Yes, when the entire workflow stays lossless |
| File-size potential | Usually greater | Usually more limited |
| Best content | Photos, web images, social posts, thumbnails | Screenshots, UI, logos, source files, archives |
| Common formats | JPEG; lossy WebP, AVIF, HEIC, JPEG XL | PNG; lossless WebP, AVIF, TIFF, JPEG XL |
| Main risk | Artifacts and generation loss | Files may remain larger than the delivery context needs |
“Lossless” describes the image data after decoding, not necessarily the whole file byte for byte. An optimizer can remove metadata or choose a different encoding while preserving every pixel. Conversely, a PNG can still contain changed pixels if an earlier step resized it or reduced its color palette.
Lossless encoders look for repeated patterns and represent them more efficiently. Depending on the format, that can involve predictive filters, dictionary references, entropy coding, or run-length encoding. Decoding reverses those steps without inventing missing pixel values.
Use lossless compression when:
PNG is the familiar choice for screenshots and transparent graphics. WebP, AVIF, TIFF, and JPEG XL also have lossless options, but support in the destination app or platform still needs checking. Our JPEG vs PNG vs WebP comparison covers the three formats most people encounter first.
Lossy encoders reduce information that is less noticeable to human vision. They may simplify fine color variation, quantize frequency data, or model texture more aggressively as the quality setting falls. The exact behavior depends on both the format and the encoder.
Use lossy compression when:
Ordinary web JPEG files are lossy. WebP, AVIF, and JPEG XL can be either lossy or lossless, so the extension alone does not tell you whether pixels were discarded.
Avoid repeatedly saving a lossy file. Each generation starts from already simplified image data, so block artifacts, ringing around edges, and banding can accumulate. Keep the original and create each delivery version from it.
There is no honest universal percentage for how much an image will shrink. A noisy photograph, a flat illustration, and a UI screenshot behave differently. Run this test on your own assets instead:
To verify whether two decoded images contain identical pixels, ImageMagick can report the number of changed pixels:
magick compare -metric AE original.png candidate.png null:
A result of 0 means the decoded pixels match under that comparison. A non-zero result proves that something in the workflow changed pixels; it does not by itself say whether the difference is visible or unacceptable.
| If your image is… | Start with | Why |
|---|---|---|
| A web photograph or product photo | Lossy WebP, AVIF, or JPEG | Photographic detail tolerates controlled perceptual compression |
| A UI screenshot with small text | PNG or lossless WebP | Hard edges reveal lossy artifacts quickly |
| A transparent logo or icon | PNG or lossless WebP | Preserves the alpha channel and sharp boundaries |
| An editing master | Original format or a lossless format | Prevents generation loss before future edits |
| Medical, scientific, or archival evidence | Original plus a verified lossless copy | Exact data matters more than delivery size |
| A thumbnail, preview, or social post | Lossy | The viewing size and lifespan rarely justify master-level data |
Still unsure? Keep the master lossless, then make a separate lossy delivery copy. That one decision prevents most irreversible mistakes.
Zipic’s basic compression workflow lets you choose an output format and compression level, then process the same source again with another preset for comparison.
For ordinary web delivery, the official recommended settings suggest beginning at level 2 or 3, then checking the result against the intended use. When exact pixels matter, choose a lossless-capable format and verify the output instead of treating a low compression level as proof of losslessness.
A practical two-preset workflow is:
See the image format guide before converting formats, especially when transparency or destination compatibility matters.
Want to compare both methods on real files? Download Zipic and test the same source with separate presets. Every download includes a full 7-day Pro trial; Zipic Pro unlocks unlimited compression and the complete batch workflow.

Compare JPEG vs PNG vs WebP for file size, image quality, transparency, animation, and compatibility, then choose the best format for every use case.

Compress TIFF files on Mac without losing quality. Compare LZW vs ZIP, shrink 100 MB scans, and batch convert TIFF to JPEG, WebP, AVIF, HEIC, or JXL with Zipic.

DPI explained in plain English: learn how pixel dimensions, print size, compression ratio, and image file size actually relate before you resize or compress images.

What is image compression, and why does it matter? This beginner's guide explains how image compression works, lossy vs lossless, and how to compress images on Mac.