When you compress an image, a site asks you to choose a “format”, then shows you a number called “quality”. Nobody ever explained either one, so most people press the default button and hope. This article explains it in five minutes, without jargon.
Because every format is a trade-off. You can shrink a file three ways: use fewer colours, keep less fine detail, or exploit the fact that human eyes do not see everything. Each format picked a different trade-off, which is why each suits some jobs and fails at others.
This is the format for photographs. It is excellent for images with natural gradients — skies, faces, landscapes — because it discards detail your eye does not notice. The downsides: no transparency, and every re-save loses a little more quality. If you do not know what to choose, JPG is always safe.
Used for screens: logos, icons, interface screenshots, anything with transparency or hard edges. It keeps every pixel exactly, which is why it is very large for photographs — a phone photo can exceed 10 MB as PNG. The most common mistake in image handling is saving photographs as PNG.
Built by Google, it combines two things: a size close to JPG for ordinary photos, and transparency like PNG. Every modern browser supports it, which is why this site uses it as the default. If you want one choice for all your images, this is the answer.
It produces the smallest files — sometimes half of WebP — but encoding is slower on older hardware and support is slightly narrower. Use it when size is everything: images your site serves millions of times, not a picture you send on WhatsApp.
There is no single correct number. The quality slider trades size against clarity: at 80 you might save a great deal and see no difference; at 40 the file is far smaller but fine detail disappears. A practical rule: for images displayed large, stay above 80. For thumbnails on a web page, you can go down to 60.
iPhones save photos as HEIC to save space, and it does not open everywhere. Your browser converts it automatically when you open it in this site, so there is nothing to do by hand.
The one-line summary: WebP for most people, AVIF when you need the smallest possible file for a website, JPG for maximum compatibility, and PNG only when you need transparency.