Back to Learn
LEARN / IMAGES & THE WEB

Image compression explainer.

See what image compression changes. Compare real JPEG, WebP, and PNG encodings, inspect details, and download the result.

Created by Navan Sami
01 / THE IDEA

Fewer bytes. What changes?

Lossless compression preserves pixels. Lossy compression trades some image detail for smaller files. Move the quality slider and inspect the result: edges, texture, and lettering often reveal changes first.

02 / COMPARE REAL ENCODINGS
Drop an image hereor click to browse your filesPNG, JPEG, WebP, AVIF · Up to 25 MB each

Your image stays in this browser. Preview limited to 1200 pixels per side; transparency is placed on white for a fair comparison.

Quality is an encoder setting, not a percentage of detail retained. Results vary with the browser and image.

Start with the textured sample or bring your own image.
Look for texture disappearing as quality drops.

Choose for the image.

Photographs and textured scenes can tolerate some loss. Sharp text and flat graphics can expose artifacts quickly. A smaller image dimension can save more than another drop in quality; this experiment holds the prepared dimensions fixed.

Re-encoding an already compressed file can make it larger. Here, the baseline is a fresh PNG of the prepared pixels so the comparison stays consistent.

How browser image encoding works ↗
03 / A SMALL CHALLENGE

Does quality 50 mean the file will be half the size?

Make a prediction, then try the slider.

Compress your full-size images ↗
KEEP YOUR CURIOSITY GOINGColour theory lab CSS easing playground