How image compression affects quality (with a live demo)

Image compressors usually give you one control: a quality slider. It is worth knowing what that number does, because the right setting depends on the picture and on where it will be seen.

Lossless and lossy compression

Lossless compression (PNG, lossless WebP) finds patterns and stores them more efficiently, like a zip file. Nothing is lost, so the savings are limited. Lossy compression (JPEG, lossy WebP) goes further: it removes information you are unlikely to notice. The quality setting controls how much is removed.

What a JPEG encoder throws away

Try it: the same picture at different qualities

The demo below draws a test picture with a smooth gradient, sharp text and fine stripes. Your browser then saves it as a JPEG at several quality settings. The sizes are measured on your device, right now, so they will differ slightly between browsers. You can also try one of your own images; it stays on your device.

Live demo: JPEG quality

Quality to inspect

Preparing the demo…

Your image is processed only in this browser tab and never uploaded. Large photos are scaled to 800 pixels wide first so the demo stays quick.

What to look for

Photos hide these artifacts well, because their natural texture masks small errors. Screenshots and text show them immediately. That is why a screenshot often looks worse, and sometimes ends up larger, as a JPEG than as a PNG.

Which quality setting should you use?

Rough starting points for JPEG quality
UseStarting qualityNotes
Keeping a master copyDo not use JPEGKeep the original file, or a PNG.
Print or a photo you will edit later90–95%Large files, very few visible artifacts.
Website photos70–85%Usually the best balance; check at 100% zoom.
Email, chat or a quick preview60–75%Fine on a phone screen.
Thumbnails50–65%Small display hides artifacts.

These are starting points, not rules. Quality numbers are not standardised: 80% in one program is not identical to 80% in another. Judge by eye at the size people will actually see the image.

Resizing beats squeezing

If the image is much larger than it will be displayed, resize it before compressing. File size grows with the number of pixels, and halving both the width and height leaves a quarter of the pixels. A 4000 × 3000 photo shown 1200 pixels wide on a website carries more than ten times the pixels it needs. Resize first, then compress at a comfortable quality.

Avoid repeated compression

Each time a JPEG is opened and saved as a JPEG again, the encoder makes fresh rounding decisions, and errors build up. Keep the original and always export from it. HandyTechHelper’s tools never change your original file; they create a new download.

Tools for this guide

Image compressorBalance JPEG quality and file size.Image resizeSet exact dimensions for your next upload.WebP converterExport a static image as WebP.Image metadata viewerInspect image dimensions, format and file size.

Sources

Written with AI assistance, then checked against how HandyTechHelper’s tools actually behave. Figures from other companies link to their source. Spotted a mistake? Tell us.