Toolkit Lab

Guides / Image compression

Lossy vs Lossless Compression: What Changes in Your Images

Image files shrink in two different ways. Lossless compression keeps every pixel exactly. Lossy compression throws away detail that the eye is unlikely to notice, and the file gets much smaller.

Lossless compression

Lossless methods find patterns in the data and store them more compactly. When the file is opened, every pixel is restored exactly. PNG is lossless. WebP and other formats also offer lossless modes. Lossless files are usually larger, which is why they suit screenshots, text and logos.

Lossy compression

Lossy methods, such as those used for JPEG and lossy WebP, discard information that is hard to see. Smaller files come at the cost of some detail, and at low quality you may see blocky patches or blurred edges. Lossy compression suits photographs.

Choosing a quality setting

Do not compress twice

Each lossy save removes more detail. Keep the original file, and compress from it each time you need a smaller version.

Try it yourself

The Image Compressor lets you choose the format and quality, and shows the file size before and after.