App-Kit
App-Kit
HomeTeamBlog
Imagesavifhow-to

How to convert AVIF to JPG (3 ways)

Written by Dmitry Chernenko
Jun 26, 2026 · 6 min read · Guide
866.1k18

To convert AVIF to JPG, open the file in Preview on a Mac or in Paint on Windows and save it as JPEG. For a whole folder, one command does it: sips, avifdec or ffmpeg. In our test a 4096×4096 image took under half a second. One catch: JPG drops transparency.

What AVIF is and why apps reject it

AVIF is an image format built on the AV1 video codec from the Alliance for Open Media. Browsers handle it fine: Chrome since version 85, Firefox since 93, Safari on iOS since 16. Per caniuse, 95.4% of users can view AVIF.

The trouble starts outside the browser. Old versions of image editors, office apps, some CMSs and print services expect JPG or PNG and refuse an .avif file.

Most AVIF files land on your disk the same way. A site or CDN serves AVIF instead of JPG, and "Save image as" saves exactly that. iPhone photos are a different case: they are HEIC, built on the HEVC codec, not AVIF.

Don't trust the file extension: whoever saved the file picked the name, not the format inside. If an app refuses a "JPG", check the contents with file photo.jpg on macOS or Linux. For AVIF, it prints "ISO Media, AVIF Image" — we tested it on a file renamed to .jpg.

Way 1 — Preview on a Mac or Paint on Windows

For one file, the built-in apps are enough. On macOS 13 Ventura and later, Preview opens AVIF:

  • Open the .avif file in Preview
  • Choose File → Export
  • Set Format to JPEG and pick the quality with the slider
  • Click Save, and a .jpg appears next to the original

On Windows 10 and 11, Photos and Paint open AVIF once the AV1 Video Extension from the Microsoft Store is installed. In Paint, choose File → Save as → JPEG picture.

Preview handles a few files too: open them together, select the thumbnails in the sidebar and choose File → Export Selected Images.

Way 2 — one terminal command

The command line beats any window on speed and fits into scripts. Every Mac ships with sips, avifdec comes with the libavif library, and ffmpeg is in almost every Linux distro:

bashavif → jpg
# macOS, nothing to install
sips -s format jpeg -s formatOptions 85 photo.avif --out photo.jpg

# libavif
avifdec -q 85 photo.avif photo.jpg

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

We timed all three on the same file: a 4096×4096 AVIF of 2.44 MB made with our converter. The machine was a Mac with an M1 Max, best of three runs:

ToolTimeJPG sizeTransparent areas
sips, quality 850.19 s3.53 MBBlack
avifdec, -q 850.26 s2.05 MBBlack
ffmpeg, -q:v 30.37 s1.70 MBHidden pixel color

The same "quality 85" gave 3.53 MB in sips and 2.05 MB in avifdec. Each tool has its own quality scale, so compare the output files, not the number in the setting. At 1600×1600, all three tools finished in 0.11 s or less.

How to install avifdec and ffmpeg

macOS ships with sips. The others take one command: Homebrew on a Mac, the standard repo on Debian and Ubuntu, winget on Windows:

bashinstall
# macOS
brew install libavif ffmpeg

# Debian / Ubuntu
sudo apt install libavif-bin ffmpeg

# Windows
winget install Gyan.FFmpeg

Then check the version with avifdec --version or ffmpeg -version. If the output mentions dav1d or aom, the AV1 decoder is in place and AVIF files will open.

Way 3 — batch-convert a folder

For hundreds of files, wrap the command in a loop. The first option runs on any Mac as is. The second uses ImageMagick with an explicit white background, which you need when files have transparency.

bashbatch
# macOS: every AVIF in the folder → JPG
for f in *.avif; do
  sips -s format jpeg -s formatOptions 85 "$f" --out "${f%.avif}.jpg"
done

# ImageMagick: transparency → white background
magick mogrify -format jpg -quality 85 -background white -alpha remove -alpha off *.avif
JPG has no transparency. In our test sips and avifdec filled transparent areas with black, and ffmpeg exposed the color of the hidden pixels. Want white? Set it explicitly, as in the ImageMagick command. Need transparency? Save as PNG.

Which way to pick

JobWayWhy
One or two filesPreview or PaintNothing to install
A folder now and thenA loop with sips or avifdecOne line, a fraction of a second per file
Files with transparencyImageMagick with -background whiteYou set the background
Conversion in a script or CIavifdec or ffmpegBoth run on Linux and in Docker
0.19 s
sips on a 4096×4096 image
+45%
JPG weight vs the source AVIF
95.4%
of browsers show AVIF
3
ways without online services

The bigger file is the price of compatibility: the 2.44 MB AVIF became a 3.53 MB JPG in sips. So convert only the copies that a JPG-only app needs, and keep the light formats on your site.

The reverse job: light images for your site

If you run a site, JPG is only a fallback. On the page, WebP or AVIF pays off: in our test WebP was 45% lighter than JPG. Our converter takes JPG, PNG and HEIC and saves WebP or AVIF. The mini version below turns a JPG, PNG or GIF into WebP.

embedded tool · same engine as /tools/image-converter
Convert to WEBPOpen the full tool →

Drop your image here

or click to browse

JPG · PNG · WebP · GIF · up to 100 MB · 1 file

FAQ

Can your tools convert AVIF to JPG?

No. Our converter and compressor save WebP and AVIF, since their job is faster sites. For AVIF to JPG, use the ways above: they are free and take seconds.

Does AVIF to JPG lose quality?

Yes, a little: JPG runs a new lossy pass. At quality 85 and up, the eye usually sees no change. If the file will be edited again, save a PNG copy.

Why is the JPG bigger than the AVIF?

AVIF compresses better than JPG. In our test a 2.44 MB file became 3.53 MB in sips and 2.05 MB in avifdec. The size depends on the tool and its quality scale.

How do I save AVIF as PNG and keep transparency?

Use the .png extension: avifdec photo.avif photo.png, or sips -s format png. In our test both commands kept transparent areas transparent. The cost is size: the 4096×4096 photo took 16.66 MB as PNG versus 2.44 MB as AVIF.

How do I open AVIF without converting it?

Drag the file into Chrome, Firefox or Safari and the browser shows it right away. That is enough for viewing. You only need to convert for apps that do not know AVIF.

Next: formats and sources

Dmitry Chernenko
Senior Full-Stack Engineer · App-Kit

Ships App-Kit tools end to end — from the widget UI to the processing core. Writes about practical image workflows.

Join the discussion

Comments are coming to the App-Kit blog soon. Got a correction or a question?

Send feedback

Read also