AVIF to JPG: How to Convert AVIF Images to JPG or PNG on Mac

By Hieu Dinh

AVIF to JPG: The Short Answer

To convert AVIF to JPG on a Mac, open the file in Preview, choose File > Export, set Format to JPEG, and click Save. That works on macOS Ventura (13) and later, needs no extra software, and takes a few seconds. For PNG, pick PNG in the same menu.

For a folder of AVIFs, Terminal does the whole batch in one line with the built-in sips tool:

mkdir -p jpg && sips -s format jpeg -s formatOptions 85 *.avif --out jpg/

One thing you can't do is rename the file. Unlike a .jfif file, which is a JPEG with an odd extension, an AVIF holds completely different image data. It has to be decoded and re-encoded.

Below: why browsers hand you AVIF files, every method we tested, JPG vs PNG, and what happens to transparency, HDR and metadata. All commands were run on macOS 27.2 with sips-316, FFmpeg 9.1 and libavif 1.4.2.


Why Do Websites Give You AVIF Files?

AVIF, the image version of the AV1 video codec, makes much smaller files than JPEG at the same visual quality. (Our AVIF format explainer covers the details, and AVIF vs WebP compares it with the other modern option.)

Most sites don't publish separate .avif links, though. They rely on content negotiation. Every browser request for an image carries an Accept header listing the formats the browser can decode, and current Chrome, Firefox and Safari all include image/avif. Image CDNs such as Cloudflare (with format=auto), imgix and Fastly read that header and send AVIF when it's listed, WebP when it isn't, and JPEG as the fallback, all from one URL.

We checked this with a single Unsplash image URL, changing nothing but the Accept header:

Accept header sentContent-Type returnedSize
image/avif,image/webp,... (like a browser)image/avif60 KB
image/webp,*/*image/webp108 KB
*/*image/jpeg136 KB

So when you choose Save Image As, the browser saves the AVIF bytes it received and names the file .avif, even if the URL ends in .jpg. The same mechanism is why you sometimes get WebP files instead (see WebP to JPG).

Get the original JPEG instead of converting

If the server has a JPEG version, downloading that is better than converting, because you skip one round of lossy compression. Ask for it explicitly with curl:

curl -H "Accept: image/jpeg" -o photo.jpg "https://example.com/image-url"

In our test the Unsplash URL above returned a genuine JPEG this way (file reported "JPEG image data"). It won't work for every site: some only store AVIF, and some block command-line clients. When it doesn't work, convert the file you have.


Can a Mac Open AVIF Files?

Apple added AVIF support to the system image frameworks in macOS Ventura (13), released in October 2022 alongside Safari 16, so every app built on those frameworks picks it up. On our Mac:

  • Finder and Quick Look show AVIF thumbnails and previews. qlmanage generated thumbnails for an ordinary photo, a transparent logo and a 10-bit file.
  • Preview is registered as the default viewer for the public.avif type, so double-clicking an AVIF opens it in Preview.
  • sips reads AVIF and reports the details: sips -g format -g bitsPerSample -g hasAlpha image.avif returned format: avif, the bit depth and whether there's an alpha channel.
  • Spotlight types the file as public.avif, a kind of public.image, so apps that take "any image" take AVIF.

On macOS Monterey or Big Sur, Safari 16.4 and later can display AVIF images on web pages, but Preview and Finder can't open AVIF files. On those Macs use FFmpeg or avifdec (below), or move the files to a newer Mac.


Method 1: Preview, for One File or a Batch

Preview is the easiest route for one file or a handful.

  1. Double-click the AVIF to open it in Preview.
  2. Choose File > Export.
  3. Set Format to JPEG and drag the Quality slider. About three quarters of the way to Best is plenty for a photo that's already been compressed once.
  4. Choose a name and location and click Save.

Batch convert in Preview

  1. Select all the AVIFs in Finder, right-click and choose Open With > Preview. They open in one window with a thumbnail sidebar.
  2. Click a thumbnail in the sidebar and press Command-A to select them all.
  3. Choose File > Export Selected Images.
  4. Pick a destination folder, click Options, set Format to JPEG (or PNG) and click Choose.

If the Format menu doesn't show the option you want, hold Option while clicking it to reveal the full list.

Finder Quick Action and Shortcuts

Finder's Convert Image Quick Action (macOS Monterey and later) is even faster: right-click the selected files, choose Quick Actions > Convert Image, pick JPEG, PNG or HEIF and a size, and click Convert. It has a Preserve Metadata checkbox too. The Shortcuts app's Convert Image action does the same inside a shortcut. Both use the system image frameworks, so on Ventura or later they should read AVIF; we tested the Terminal methods directly, and the Preview steps follow Apple's documented export flow.


Method 2: sips in Terminal

sips ships with every Mac, so there's nothing to install. For one file:

sips -s format jpeg -s formatOptions 85 photo.avif --out photo.jpg

formatOptions sets the JPEG quality: a number from 0 to 100, or low, normal, high or best. Leave it out and sips uses its default, which in our test produced a larger file than quality 80 or 85.

Batch convert a folder of AVIFs

cd into the folder (type cd , drag the folder onto Terminal, press Return), then:

mkdir -p jpg
sips -s format jpeg -s formatOptions 85 *.[aA][vV][iI][fF] --out jpg/

The *.[aA][vV][iI][fF] pattern catches .avif, .AVIF and mixed case; zsh, the default macOS shell, is case-sensitive, so a plain *.avif skips photo.AVIF. When --out points at a folder, sips writes each file with a .jpg extension and prints "Output file suffix changed to jpg". We ran it on files named Image one.avif and b.AVIF; both came out as JPGs with the right names.

To include subfolders and write each JPG next to its original:

find . -type f -iname '*.avif' -exec sh -c 'sips -s format jpeg -s formatOptions 85 "$1" --out "${1%.*}.jpg"' _ {} \;

For more folder-wide recipes, see batch convert images on Mac.


Method 3: FFmpeg and avifdec

If you have Homebrew tools installed, both read AVIF directly.

FFmpeg (we used 9.1):

ffmpeg -i photo.avif -q:v 3 photo.jpg

-q:v controls JPEG quality, where 2 is the best and 31 the worst; 2 to 5 suits photos. A batch version:

for f in *.[aA][vV][iI][fF]; do ffmpeg -n -i "$f" -q:v 3 "${f%.*}.jpg"; done

-n tells FFmpeg not to overwrite existing files.

avifdec, from libavif (brew install libavif if you need it), is the reference decoder. Version 1.4.2 writes JPEG and PNG directly:

avifdec -q 85 photo.avif photo.jpg
avifdec photo.avif photo.png

Some guides say avifdec only outputs PNG or Y4M; current versions write JPEG too.

ImageMagick is commonly recommended with a "Homebrew includes AVIF by default" note. Our Homebrew ImageMagick 7.1.2-16 refused AVIF with "no decode delegate for this image format", because its HEIF module wasn't available. Check yours with magick identify -list format | grep -i avif before relying on it.

Online converters

Ezgif, CloudConvert, Convertio and similar sites work, but most upload your image to their servers to do a job your Mac can do locally. For anything personal, use Preview or sips.


AVIF to PNG: When It's the Better Choice

AVIF to PNG is just as easy. Choose PNG in Preview's Export menu, or:

sips -s format png photo.avif --out photo.png

and for a folder:

mkdir -p png
sips -s format png *.[aA][vV][iI][fF] --out png/

ffmpeg -i photo.avif photo.png and avifdec photo.avif photo.png work too.

PNG is the right target when:

  • The AVIF has a transparent background, such as a logo, sticker or product cutout. PNG keeps the alpha channel; JPG can't (more on this below).
  • You're going to edit the image and save it again. PNG is lossless, so repeated saves don't add new compression damage.
  • A tool only accepts PNG, such as some game mod tools, icon generators or design apps.

The cost is size. PNG can't use AVIF's lossy tricks, so photo files grow dramatically. If you only need a widely compatible photo, JPG is the better choice. Our JPEG vs PNG guide goes deeper, and the same trade-offs apply to WebP to PNG.


AVIF to JPG vs PNG: File Size, Transparency and HDR

File sizes we measured

We converted two AVIFs: the 1200x800 photo Unsplash served us, and a 2400x1350 photo we encoded with avifenc (4:2:0, quality 55).

SourceOutputSize
Unsplash AVIF, 60 KBServer's own JPEG (Accept: image/jpeg)136 KB
Unsplash AVIF, 60 KBsips JPG, quality 80154 KB
Unsplash AVIF, 60 KBsips JPG, default quality194 KB
Unsplash AVIF, 60 KBsips PNG788 KB
2400px AVIF, 183 KBFFmpeg JPG, -q:v 5298 KB
2400px AVIF, 183 KBFFmpeg JPG, -q:v 2510 KB
2400px AVIF, 183 KBsips JPG, quality 80611 KB
2400px AVIF, 183 KBsips JPG, default quality760 KB
2400px AVIF, 183 KBFFmpeg PNG2.8 MB
2400px AVIF, 183 KBsips PNG3.4 MB

Expect a JPG roughly one and a half to four times the size of the AVIF, and a PNG 13 to 18 times. That's normal: the picture hasn't gained anything, JPEG and PNG just need more bytes to describe it. Converting also can't recover detail the AVIF encoder threw away, so there's no point exporting at maximum quality. If the JPG is still too big for an upload form, see how to compress a JPEG.

Transparency: JPG turns it black

AVIF supports an alpha channel; JPG doesn't. Many guides stop at "JPG doesn't support transparency" without saying what you'll actually get. We converted a transparent 800x800 logo AVIF:

  • sips to PNG: transparency kept.
  • ffmpeg 9.1 to PNG: transparency kept.
  • sips to JPG: transparent areas became black.
  • ffmpeg to JPG: transparent areas became black.

A black box around a logo is rarely what you want. Convert to PNG instead, or, if you really need a JPG, flatten it onto white in two steps: sips to PNG (which keeps the alpha), then FFmpeg to fill the background:

sips -s format png logo.avif --out logo.png
ffmpeg -i logo.png -vf "split[a][b];[a]drawbox=c=white:t=fill[bg];[bg][b]overlay" -q:v 2 logo.jpg

We checked the corner pixels of the result: white background, logo colors unchanged. If you want to shrink the PNG afterwards, see reducing file size without losing transparency.

HDR and 10-bit AVIF

AVIF can store 10- or 12-bit color and HDR transfer curves (PQ or HLG). JPEG is 8-bit and, for most apps, SDR. A common claim is that converting simply gives you an 8-bit sRGB JPEG. Our test with a 10-bit BT.2020 PQ AVIF showed it depends on the tool:

  • sips to JPG wrote an 8-bit JPEG but kept the BT.2100 PQ color profile. Color-managed apps can read that profile, apps that ignore it may show the image washed out, and 8 bits for an HDR curve risks banding.
  • sips to PNG wrote a 16-bit PNG with the PQ profile, so nothing was rounded off.
  • FFmpeg to JPG produced an 8-bit JPEG tagged sRGB with no tone mapping, so real HDR content will look wrong.

For a JPG that looks predictable everywhere, ask sips to convert the colors into sRGB with -m:

sips -s format jpeg -s formatOptions 85 -m "/System/Library/ColorSync/Profiles/sRGB Profile.icc" hdr.avif --out hdr.jpg

That gave us an 8-bit sRGB JPEG. Bright highlights in a genuine HDR photo will lose some punch, because SDR can't show them; to keep the HDR data, export a 16-bit PNG instead (see HDR vs SDR). Most AVIFs saved from websites are ordinary 8-bit SDR anyway.


Keeping or Stripping Metadata

AVIF files can carry EXIF and XMP metadata, including camera details and GPS location, though image CDNs often strip it before serving. We made a test AVIF with EXIF camera and GPS tags and converted it:

ToolJPG outputPNG output
sipsEXIF and GPS keptEXIF and GPS kept
avifdec 1.4.2EXIF and GPS keptEXIF and GPS kept
FFmpeg 9.1EXIF removedEXIF kept

So "converting cleans the metadata" isn't safe to assume. If you're sharing photos and want location data gone, Finder's Convert Image Quick Action with Preserve Metadata unchecked is the simplest built-in option, and our guide to removing EXIF data covers checking the result.


Where Compresto Fits

Compresto accepts AVIF files as input. It's a native Mac app that compresses and converts images, videos, GIFs and PDFs locally, with nothing uploaded. For a folder of AVIF downloads:

  • Drop the files in and pick JPG or PNG as the output format. Compresto also writes WebP and AVIF. With the format left on "Same as input", AVIF files come out as JPGs.
  • Set the quality, resize, or set a target file size for the JPGs in the same pass, useful for upload forms with limits.
  • Keep or drop metadata with the "Retain image metadata" setting. It's off by default, so the JPGs come out without EXIF; turn it on to copy EXIF, IPTC and XMP from the originals.

One limitation: Compresto's JPG and PNG output is meant for ordinary opaque images. For AVIFs with a transparent background, do the PNG conversion with Preview or sips as shown above.


Frequently Asked Questions

How do I convert AVIF to JPG on a Mac?

Open the AVIF in Preview (macOS Ventura 13 or later), choose File > Export, set Format to JPEG, pick a quality and click Save. In Terminal, the built-in sips tool does the same thing: sips -s format jpeg -s formatOptions 85 image.avif --out image.jpg. For a folder, run sips on all the files at once with --out pointing at an output folder.

Can I just rename a .avif file to .jpg?

No. Unlike JFIF, which really is a JPEG, an AVIF file contains AV1-compressed image data in a HEIF container. Renaming it changes the label, not the contents. In our test macOS then called the file public.jpeg while the file command still reported an AVIF image, and any app or upload form that checks the actual bytes will reject it or show it as broken. You have to re-encode it.

Why do images save as AVIF when I right-click and save them?

Many sites and image CDNs use content negotiation: the same image URL returns AVIF to browsers that list image/avif in their Accept header, and JPEG to clients that don't. Chrome, Firefox and Safari all advertise AVIF, so Save Image As receives AVIF data and names the file .avif, even when the URL ends in .jpg. In our test one Unsplash URL returned AVIF, WebP or JPEG depending only on that header.

Should I convert AVIF to JPG or PNG?

Choose JPG for photos you want to upload, email or open anywhere; it keeps the file reasonably small. Choose PNG when the AVIF has a transparent background, when you plan to edit the image further, or when a tool only accepts PNG. PNG is lossless but much bigger: in our tests a 183 KB AVIF photo became a 2.8 to 3.4 MB PNG.

Why is the JPG so much bigger than the AVIF?

AVIF compresses far more efficiently than JPEG, so the same picture needs more bytes as a JPEG. Converting can't make it look better than the AVIF, because the detail the AVIF encoder removed is gone. In our tests a 183 KB AVIF became a 298 to 760 KB JPG depending on the quality setting. Lower the JPEG quality to 75 or 80 if size matters; it rarely shows on a photo that was already compressed once.

Can my Mac open AVIF files?

Yes, if it runs macOS Ventura (13) or later. Apple added AVIF to the system image frameworks in Ventura, so Preview, Quick Look, Photos and the sips command can read AVIF files. On macOS Monterey or Big Sur, Safari 16.4 and later can display AVIF on web pages, but Preview can't open AVIF files, so use a newer Mac, FFmpeg, or avifdec from libavif.


The Short Version

Websites send AVIF because browsers ask for it, so "Save Image As" gives you a .avif even when the URL says .jpg. To convert AVIF to JPG on a Mac running Ventura or later, export from Preview or run sips -s format jpeg on one file or a whole folder. Renaming doesn't work. Convert AVIF to PNG instead when the image has transparency (JPG turns it black) or you'll keep editing it. Expect the JPG to be roughly 1.5 to 4 times bigger than the AVIF, use sips -m with the sRGB profile for HDR files, and don't assume conversion strips location data.

Download Compresto for Mac →


Ready to compress your files? Join thousands of creators using Compresto ⚡