You save an image from a website, and the file ends in .avif. Your photo editor will not open it, or the upload form rejects it. Or maybe a speed test told you to “use next-gen formats” and you are not sure what that means in practice.
AVIF is a newer image format, and it is worth understanding because you will meet it more and more. This guide explains what it is, how it compares with the formats you already know, and what to do when you simply need a normal JPG.
The short answer
AVIF is a modern image format that can make photos much smaller than JPG at similar visual quality. It also supports transparency and animation. The catch is compatibility: current browsers handle it, but many apps, editors and upload forms do not. For your own website it can be a great choice. For files you send to other people, JPG is still the safer one.
What AVIF actually is
Where it comes from
AVIF stands for AV1 Image File Format. It takes AV1, a video compression technology, and uses it for still pictures. The format was developed by the Alliance for Open Media, and version 1.0.0 of the specification came out in February 2019. MDN’s image file type guide describes it as open source and royalty-free, with the file extension .avif.
What it can do
AVIF is surprisingly flexible. According to MDN, it supports lossy and lossless compression, transparency, animation, high dynamic range (HDR) and wide color gamut. In other words, one format can cover what JPG, PNG and GIF do separately, and then some.
HDR and wide color gamut sound technical, but the practical point is simple. They let an image carry brighter highlights and richer colors than a standard JPG can store, on screens that can show them. On an ordinary screen you may not notice any difference, so for most everyday pictures the main benefit is still the smaller file.
If you are comparing it with older formats, our guide to the best image formats for the web shows JPG, PNG, WebP and AVIF side by side.
How small are AVIF files?
This is the main reason people care. MDN says lossy AVIF images are around 50% smaller than JPG images at visually similar compression levels, and that AVIF also tends to beat WebP. The web.dev guide to AVIF images agrees on the direction, pointing to testing that shows substantially smaller files than JPG or WebP, though it does not give exact percentages.
Treat any single number with some caution. Results depend on the image, the encoder, and the quality setting you choose, and independent tests often report smaller gains than headline figures. The honest approach is to convert a few of your own pictures and compare the file sizes yourself. Save the same photo as JPG, WebP and AVIF at similar quality, then look at the three sizes side by side in your file manager.
If your goal is simply a lighter page, the image compressor and a sensible image width will often do more than switching format. For the older comparison, see WebP vs JPG.
Which browsers support AVIF?
Support arrived gradually. Chrome was first in 2020, Firefox followed in 2021, Safari joined in 2022, and Edge was the last of the big four, enabling it in early 2024. The chart below shows the year each browser first shipped support.
Today the browser side is in good shape. The real gaps are elsewhere, which brings us to the limits.
The limits of AVIF
First, there is no progressive rendering. MDN points out that an AVIF file has to download completely before it can be displayed, unlike a progressive JPG that appears in stages. Because the files are small this matters less, but for very large images it is worth knowing.
Second, tooling is thinner. The web.dev guide notes that AVIF is newer than WebP and that fewer tools can create it. Outside the browser, many photo editors, email programs, social platforms and upload forms still do not accept AVIF files, and older software cannot open them at all.
Third, a browser that does not understand AVIF simply shows nothing. That is why a fallback matters if you use it on a website.
When to use AVIF, and when not to
AVIF is a good fit when
- The image will be shown on your own website, where small files help pages load faster.
- You can serve a WebP or JPG fallback for browsers that cannot display AVIF.
- You have large photos and every kilobyte counts, for example on mobile connections.
Stay with JPG or WebP when
- You are emailing images, uploading to a form, or sending files to a printer.
- The people who will open the file might use older software.
- You need to edit the image again in a program that does not support AVIF.
If you are choosing between the older formats, PNG vs JPG covers that decision in plain terms.
How to open or convert an AVIF file
Turn AVIF into JPG
The quickest fix for a file nothing will open is to convert it. Use the AVIF to JPG converter, drop in the file and download the result. It runs inside your browser, so your image is never uploaded to our server.
Two things to know. Your browser has to be able to read AVIF for the tool to work, and if it cannot, the page will tell you so. And because JPG cannot be transparent, any see-through areas in the AVIF will turn white. If the picture is also far larger than you need, shrink it first with the image resizer.
Using AVIF on a website
The standard approach, which MDN also recommends, is to list the AVIF version first, a WebP version second, and a plain JPG last, using the HTML picture element. Each browser then picks the first format it understands. If you only need the WebP step, the JPG to WebP converter handles that part.
Quick answers
Is AVIF better than WebP?
Often it produces smaller files, according to MDN and web.dev. But WebP is older, has wider tool support, and is easier to work with, so the best choice depends on your needs.
Can AVIF have a transparent background?
Yes. AVIF supports an alpha channel, just like PNG and WebP.
Why will my AVIF file not open?
Your program probably does not support AVIF yet, which is common with older editors and some upload forms. Converting the file to JPG is the simplest way around it.
Does AVIF lose quality?
It can, because it supports both lossy and lossless modes. Most AVIF photos on the web use the lossy mode, which discards some detail to save space, just as JPG does.
Final thoughts
AVIF is a strong format with a clear weakness: not every program understands it yet. Use it where you control the display, such as your own site with a fallback, and use JPG when you need a file that works for everyone. Keep your original images, and convert only when you have a reason to.
When you are ready to try it, browse the full set of free image tools and test a few of your own files.