What is an AVIF file, and how do you convert it?

Dan Counsell · Founder of Realmac SoftwareUpdated

We’ve made Squash, an image compressor for Mac, since 2016, so we show the free way first.

AVIF stands for AV1 Image File Format. It stores a still image using the same compression as AV1, a royalty-free video codec from the Alliance for Open Media, whose members include Apple, Google, Microsoft, Netflix and Amazon. The result is an image file that is usually noticeably smaller than a JPG or WebP of the same quality.

That’s why you’re seeing more of them. Websites use AVIF to load faster, so when you save an image from a page, it may come down as a .avif file.

What makes AVIF different

AVIF WebP JPG PNG
Typical size for a photo Smallest Small Medium Large
Transparency Yes Yes No Yes
HDR and wide colour Yes No No Limited
Lossless option Yes Yes No Always lossless
Opens everywhere Most modern apps and browsers Most modern apps and browsers Everywhere Everywhere
Speed to save Slow Fast Fast Fast

The catch is compatibility. Every current browser shows AVIF, but some older apps, upload forms and Windows PCs don’t open it yet. That’s when you need to convert.

How to open an AVIF file on a Mac

Recent versions of macOS open AVIF files in Safari, Preview and Quick Look. Double-click the file and it should open in Preview. If it doesn’t, update macOS or drag the file into a browser window.

How to convert AVIF to JPG on a Mac

  1. Open the AVIF file in Preview.
  2. Choose File > Export.
  3. Set Format to JPEG, or PNG to keep a transparent background.
  4. Click Save.

For a few files, select them in Finder, Control-click and choose Quick Actions > Convert Image.

For a folder of them, drop it into Squash, choose JPEG and click Export Images. Squash imports and exports AVIF, so it converts both ways.

Should you use AVIF on your website?

For photos, yes: AVIF is supported by every major browser and usually makes the smallest files. Keep WebP or JPG for older systems if your audience needs them. In Squash, choose AVIF as the export format and a maximum width, and compare the result with WebP using the before and after view. Our web image sizes guide covers dimensions.

Questions about AVIF files

Is AVIF better than WebP?

AVIF usually makes smaller files at the same quality, and supports HDR. WebP saves faster and is slightly better supported in older software. For website photos, AVIF is a good default; for graphics and screenshots, try both.

Is AVIF the same as JPEG?

No. Both are lossy image formats, but AVIF uses newer compression, so files are smaller, and it supports transparency, which JPEG doesn’t.

Why are images saving as AVIF?

The website served the image as AVIF to make the page load faster, and your browser saved it in that format.

Is it safe to open AVIF files?

Yes, it’s an ordinary image format, like JPEG or PNG.

All Squash guides →

Get Squash for Mac

Compress, resize and convert whole batches of images on your Mac. Free to download, with no watermark.

Download

Confirm your email and we'll send your code. Unsubscribe any time. Privacy policy