THE VECTOR FIELD GUIDE

What is an AVIF file?

AVIF is a modern image format based on AV1 video compression. Learn browser support, how to open AVIF files, and how to convert them.

By Shahab Uddin · Updated

The short answer

An AVIF file is an image compressed with the AV1 video codec inside a HEIF container. It typically produces files much smaller than JPEG at similar quality, supports transparency, HDR and animation, and is displayed by all current major browsers. Older apps may not open it, so converting to PNG or JPG is common.

AVIF compared with JPEG and WebP

AVIFWebPJPEG
CompressionAV1 intra-frameVP8 / losslessDCT
TransparencyYesYesNo
HDR / wide gamutYesNoNo
AnimationYesYesNo
Browser supportChrome 85+, Firefox 93+, Safari 16+All currentUniversal

Why you keep getting AVIF files

Websites and CDNs serve AVIF to browsers that support it to save bandwidth. When you save an image from such a page, you get the .avif the server sent, not the original JPEG or PNG.

How to open an AVIF file

  • Drag it into Chrome, Edge, Firefox or Safari.
  • Windows 11 Photos opens AVIF with the free AV1 extension.
  • macOS Ventura and later preview AVIF in Finder and Preview.
  • For apps that refuse it: convert to PNG or JPG.

Sources

Written by Shahab Uddin. Published ; updated . Corrections are welcome through the contact page.

A few useful answers

Before you hit download

Is AVIF better than WebP?

AVIF often produces smaller files at the same quality, but encodes more slowly. Both are well supported by browsers.

How do I convert AVIF to JPG?

Use the AVIF to JPG converter. It runs in your browser and handles batches.

Is AVIF lossless?

It can be, but most AVIF files on the web are lossy.

Next, make it useful.