How to Batch Convert AVIF to JPG (Windows, macOS, Linux)

Three routes: no install, one short script, or the full command line. Pick by how many files you have — and whether you will still be doing this next month.

Last updated: 2026-11-01 · Tested on macOS 26.6.2 with sips and ImageMagick 7.1.2-35 · By Yilin Xu

Which route should you use?

MethodWorks onInstallBest for
Browser converterAnyNone5–50 files, one-off jobs, locked-down machines
sips loopmacOS 13 Ventura or laterNoneA folder on a Mac, no software to install
ImageMagickWindows, macOS, LinuxOne packageHundreds of files, repeated jobs, size targets

There is no built-in batch path on Windows: the Photos app converts one image at a time, and PowerShell has no AVIF decoder of its own. Windows users choose between the browser and ImageMagick.

Route 1: the browser (no install)

  1. Open the AVIF to JPG converter.
  2. Select all the AVIF files in the folder and drag them onto the drop zone — or click it and use the file picker.
  3. Choose a quality. Best (92%) for photos you will keep, High (85%) for everyday use.
  4. Click Convert to JPG. Each file gets its own row and its own download button.

Two limits worth knowing. Browsers cap canvas dimensions (the converter scales anything beyond 8192 px), and very large batches are bounded by your device's memory — a few hundred files in one go can exhaust a phone. Split large jobs into batches of 50.

One convenience trade-off: dropping a folder may not work in every browser, because folder drag-and-drop does not always expose the files inside. Open the folder and select the files instead.

Route 2: macOS, with sips (Ventura or later)

sips is preinstalled and reads AVIF through the system image framework on macOS 13 and later. Open Terminal, type cd with a trailing space, drag the folder into the window, press Return, then run:

mkdir -p jpg
for f in *.avif; do
  out="jpg/${f%.*}.jpg"
  [ -e "$out" ] && continue
  sips -s format jpeg -s formatOptions best "$f" --out "$out" \
    || echo "FAIL $f" >> failed.txt
done

What it does: creates a jpg subfolder, converts every .avif in the current folder, skips files that were already converted, and writes the names of failures to failed.txt. The originals are never modified.

If you prefer clicking to typing, the Shortcuts app can do the same thing: create a shortcut with Repeat with Each → Convert Image (set to JPEG) → Save File, then run it on a selection in Finder. It uses the same system decoder, so it works on Ventura and later and fails on Monterey.

Route 3: ImageMagick (all platforms)

The fastest route once you have more than a few dozen files. Install it once — see the ImageMagick guide for the AVIF-enabled build on your platform — then:

mkdir -p jpg
magick mogrify -path jpg -format jpg -quality 92 *.avif

mogrify -path does not create the output directory. If jpg is missing, you get mogrify: unable to open image 'jpg/a.jpg': No such file or directory — which looks like a decode failure but is only a missing folder. The mkdir -p line is not optional.

That single line converts the whole folder into a separate jpg directory. To walk subfolders and keep the directory structure, use find:

find . -name "*.avif" -print0 | while IFS= read -r -d '' f; do
  out="${f%.*}.jpg"
  [ -e "$out" ] && continue
  magick "$f" -auto-orient -quality 92 "$out" \
    || echo "$f" >> failed.txt
done

-auto-orient is worth including: it applies the EXIF rotation flag, which prevents the sideways-photo problem that affects some phone images.

Windows PowerShell equivalent:

New-Item -ItemType Directory -Force -Path jpg | Out-Null
Get-ChildItem -Filter *.avif | ForEach-Object {
  $out = Join-Path "jpg" ($_.BaseName + ".jpg")
  if (-not (Test-Path $out)) {
    magick $_.FullName -quality 92 $out
  }
}

Housekeeping that saves you later

Choosing a quality for a whole batch

92% is a good default for photos you will keep or print. 85% is visually identical at normal viewing size and roughly a third smaller; it is the better choice for a website or an archive you will never print. Below 70%, gradients and skin tones start to show blocking, which is obvious when the image is displayed large.

If a destination imposes a size limit — an upload form, an email server — set the limit directly rather than guessing:

magick input.avif -define jpeg:extent=500KB output.jpg

Frequently asked questions

Can I convert a whole folder on Windows without installing anything?Not with a built-in tool — Windows has no command-line AVIF decoder. The browser converter is the no-install option; ImageMagick is the fast one.
Does sips work on macOS Monterey?No. The system image framework in Monterey cannot decode AVIF, so sips and Shortcuts both fail. Use the browser or ImageMagick.
Will batch conversion preserve filenames?Yes in all three routes — the extension changes from .avif to .jpg and the rest of the name is untouched. Watch out for folders that already contain a .jpg with the same base name; the scripts above overwrite it, so convert into a separate folder.
How many files can the browser handle at once?Practically, 50–100 per batch on a laptop and far fewer on a phone. It is a memory limit, not an arbitrary cap.
Can I convert in parallel to go faster?With ImageMagick you can, but AVIF decoding is CPU-bound and already uses multiple cores. Running four conversions in parallel usually helps less than expected and makes failures harder to trace.

Related guides