Skip to content
Wololo
Menu
Language:English

Guides

JPG, PNG, WebP and AVIF: which one to choose

A holiday photo, a logo, an online shop or a screenshot: the best format isn’t the same for all of them. This guide explains what each one does well, without unnecessary jargon, so you can choose with confidence.

Published

Lossy and lossless: the difference that matters

There are two ways to compress an image. Lossless compression keeps exactly the same pixels: you can open and save the file a thousand times and nothing changes. Lossy compression throws away detail the eye barely notices in exchange for a much smaller file, and every time you save it again a little more is lost.

PNG is lossless. JPG is lossy. WebP and AVIF can work either way, although they are almost always used in lossy mode, where their advantage is biggest.

JPG: the one that opens everywhere

JPG has been around since 1992 and every device, program and website can open it. It’s ideal for photographs: at 80–90% quality the difference from the original is invisible and the file is a fraction of the size. It has two weak points: it doesn’t support transparency (a transparent background gets filled with a colour) and it spoils sharp edges, such as text or the lines of a logo, with halos around them.

Use it for photos you’re going to send, print or upload somewhere when you don’t know which formats are accepted.

PNG: for text, logos and transparency

PNG keeps every pixel and supports transparency. It’s the best choice for screenshots, charts, icons and any image with text or flat colours. With photographs, however, it’s very inefficient: a photo saved as PNG can be five to ten times larger than the same photo as JPG without looking any better.

If you have a photo saved as PNG and it’s too heavy, converting it to JPG or WebP usually shrinks it dramatically.

WebP: the practical standard for the web

Google created WebP to make websites load faster. In lossy mode it is around 25–35% smaller than a JPG of equivalent quality, and it also supports transparency, so it can replace both JPG and PNG. Every current browser displays it.

Its drawback lies outside the browser: some older editing programs, photo viewers and forms don’t accept it. If you download a WebP image and can’t use it, convert it to JPG or PNG.

AVIF: the one that compresses most

AVIF is the newest and produces the smallest files, often half the size of a JPG at similar quality, with transparency and good handling of gradients. Chrome, Firefox, Safari and Edge have displayed it for a couple of years now.

In exchange, encoding is slower and support outside browsers is still patchy. It’s a great choice for your own website if you care about page weight; for sending a photo to someone, JPG is still safer.

In short: which format to use

If in doubt, this rule of thumb covers almost every case:

  • A photo to send, print or upload anywhere: JPG.
  • A screenshot, logo, chart or image with a transparent background: PNG.
  • Images for your website or online shop: WebP, or AVIF if you want to squeeze the size further.
  • An image you’ll keep editing: keep a lossless copy (PNG) and export at the end.

How to convert between them

Wololo converts between JPG, PNG, WebP and AVIF (as well as HEIC, GIF, BMP, TIFF and ICO) inside your browser, without uploading your images. When converting to a lossy format you can choose the quality, and when going from a format with transparency to JPG you can choose the background colour. If what you want is a lighter image in the same format, use the compress image tool.

Tools in this guide

Related guides