AVIF is the image format many people meet by accident. You save a product photo or an illustration from a website and get a file ending in .avif. Your image viewer shows nothing, a document editor will not insert it, and the upload form you need it for asks for JPG. It looked like any other picture in the browser, so what is it?
This guide explains what AVIF is, why websites have adopted it, where you can and cannot open it today, and how to convert AVIF to JPG when you need a file that works in every program.
Where AVIF comes from
AVIF stands for AV1 Image File Format. It stores still images compressed with AV1, a royalty-free video codec developed by the Alliance for Open Media, a group that includes major browser makers and streaming companies. The image is wrapped in the same HEIF container family used by Apple's HEIC photos, which is why the two formats are sometimes confused. The difference is the compression inside: HEIC uses HEVC, which carries licensing costs, while AVIF uses AV1, which is designed to be free to implement.
What makes AVIF attractive
- Small files. AVIF often produces smaller files than JPG and WebP for the same visual quality, especially at lower quality settings where JPG shows blocky artefacts.
- Modern features. Transparency, wide colour gamuts, high dynamic range and more than 8 bits per channel are supported.
- Animation. AVIF can store image sequences, like an efficient animated GIF.
The trade-offs
- Slow to encode. Creating AVIF files takes much more processing than JPG, which is why they are more common on large sites with automated pipelines.
- Uneven support outside browsers. Browsers adopted AVIF relatively quickly, but desktop software, office suites, printers and online forms lag behind.
| AVIF | JPG | |
|---|---|---|
| Typical size at similar quality | Smaller | Larger |
| Transparency | Yes | No |
| Animation | Yes | No |
| Browser support | Current major browsers | Universal |
| Office, printing, older software | Patchy | Universal |
Which apps can open AVIF?
Current versions of Chrome, Firefox, Edge, Opera and Safari (16 and later) display AVIF. Newer versions of Windows can display it in the Photos app, sometimes after installing the free AV1 Video Extension from the Microsoft Store, and recent macOS and iOS releases open it in Preview and Photos. Support in image editors has been arriving version by version. Rather than chase each app's status, most people convert the file when they hit a wall.
Convert AVIF to JPG with our tool
The AVIF to JPG converter uses your browser's built-in AVIF decoder, so the files are converted on your device.
- Open AVIF to JPG in an up-to-date browser. The page notes which browsers can decode AVIF: Chrome 85+, Firefox 93+, Edge 121+, Opera and Safari 16+ (iOS 16 or macOS Ventura and later). On older browsers, files show a decode error.
- Drop your
.aviffiles onto the upload box, or click to choose them. Batches are fine, up to 50 MB per file. - Set the JPG quality slider. The default is 90%, which keeps photos looking the same as the original.
- Set Background for transparent areas. JPG cannot store transparency, so any transparent pixels are filled with this colour, white by default. Choose a colour that suits where the image will be placed.
- Click Convert to JPG, then download files individually with the JPG button or together with Download all (ZIP).
Each file lists its original size, the new size and its pixel dimensions. Expect the JPG to be larger than the AVIF; that is the price of compatibility.
Other ways to convert AVIF
Built-in apps
If your system can display the AVIF, it can usually export it. On a Mac, open the file in Preview and choose File > Export with JPEG as the format. On Windows, where the Photos app can open the file, its Save as option offers other formats.
Command line
magick product.avif -quality 90 product.jpg
ImageMagick needs to be built with AVIF support (through libheif or a similar library). FFmpeg can also decode AVIF in recent versions.
Get the original instead
If you are saving an image from a website, the site may be converting its originals to AVIF on the fly. A press kit, download link or media library often provides the original JPG or PNG at higher quality.
Tips and pitfalls
Transparent AVIFs and logos
AVIF logos and cut-outs often have transparent backgrounds. If you need to keep that transparency, use AVIF to PNG instead of JPG.
Animated AVIF files
A JPG holds one image, so only the first frame is kept. For animations, keep the AVIF or recreate the animation from frames.
HDR and wide-colour images
AVIF can store HDR and wide-gamut colour. The browser converts these to standard 8-bit colour for JPG, so very bright highlights and saturated colours can look slightly different. For ordinary photos and graphics this is not noticeable.
Reduce size afterwards
If the JPG is too large for an upload limit, lower the quality a little or reduce the pixel dimensions with the Image Resizer. The Image Compressor can then squeeze it further.
Converting WebP files too?
Websites that serve AVIF often serve WebP as well. WebP to JPG handles those in the same way. And if you publish images yourself and want small files, JPG to WebP is the easy way into modern formats.
Frequently asked questions
What is an AVIF file?
AVIF is a modern image format based on the royalty-free AV1 video codec. It produces small, high-quality images and supports transparency and animation.
Why can't I open an AVIF file?
Many older programs and some operating system versions do not include an AVIF decoder. Use an up-to-date browser to view it, or convert it to JPG.
Is AVIF better than JPG?
AVIF usually gives smaller files at the same visual quality and supports more features. JPG is still better for compatibility with software, printers and upload forms.
Is AVIF the same as HEIC?
No. Both use the HEIF container family, but AVIF uses AV1 compression while HEIC uses HEVC. Software that opens one does not necessarily open the other.
Why did my conversion show a decode error?
Your browser cannot decode AVIF, usually because it is out of date. Update it or try another current browser, then convert again.