WebP vs AVIF vs JPG: which should you use?

Last checked 3 min read

The short answer

Use JPG when the picture has to open anywhere, including old software, email and upload forms. Use WebP for pictures on a website: it usually gives a smaller file than JPG and opens in current Chrome, Edge, Firefox and Safari. Use AVIF when the smallest file matters most and you control where the picture is shown, because support outside current browsers varies.

What the three share

All three are normally used as lossy formats for photographs. Each one stores the picture approximately, and a quality setting decides how rough the approximation is allowed to be. They differ in how small they can make a picture that still looks right, in what else they can hold, and in how many programs understand them.

How they differ

  • JPG is the oldest and the one that practically everything can open. It has no transparency, and for a similar look its files are generally the largest of the three.
  • WebP is newer. It generally produces a smaller file than JPG for the same picture, it supports transparency, and it also has a lossless mode. Current Chrome, Edge, Firefox and Safari all show it. Some older desktop programs and some upload forms do not accept it.
  • AVIF is the newest. It often gives the smallest file of the three, and it supports transparency too. It usually takes longer to encode. Current browsers show it, but image editors, email programs and older devices are less predictable.

Choosing by where the picture is going

  • Your own website: WebP is the safe modern choice. Add AVIF if your site can also offer a JPG or WebP for anything that cannot read it.
  • An email attachment or a document someone else will open: JPG.
  • An application or upload form: whatever the form lists, which is often JPG.
  • A cut-out with a see-through background: WebP or AVIF, not JPG.
  • Your own archive: leave the files as the camera made them. Moving a photo from one lossy format to another loses a little each time.

How to find out whether WebP or AVIF will be accepted

Support changes as software is updated, so a test is worth more than a list. Convert one picture, then open it in the program, or upload it to the place, where it is needed. If it shows correctly, carry on with the rest. If it is refused or shows as a broken icon, use JPG there.

On a web page you do not have to pick only one. The HTML picture element lets you list several versions of the same image, and each browser takes the first one it can read, so an AVIF can sit in front of a JPG.

Trying all three on your own picture

  1. Open the Convert image tool and add a typical picture by dropping it, choosing it or pasting it from the clipboard.
  2. Set Output format to WebP and leave the quality on Balanced. Read the before and after sizes in the result row.
  3. Drag the Compare slider across the picture. The original is on the left and the result is on the right.
  4. Change Output format to AVIF, then to JPG, and compare again. Keep the smallest version that looks right to you and that the destination accepts.

A note on the Balanced numbers

Balanced uses quality 76 for JPG, 76 for WebP and 55 for AVIF. Each number is on that encoder's own scale, so the figures cannot be compared with one another. Judge the three results by eye and by size, not by the number.

Do it nowFree, in your browser. Nothing is uploaded.
Convert between JPG, WebP and AVIF

Do it now

Tools for this

All tools

Formats explained

All guides