Image Toolkit

JPG to AVIF Converter

Convert Photos to AVIF

Convert JPG photos to AVIF, the newest web image format, for much smaller files at the same visual quality. A real AVIF encoder runs in your browser, so nothing is uploaded.

Smaller fileBetter quality

AVIF offers ~50% better compression than JPEG. Supported in Chrome, Firefox, Safari 16+, and Edge.

Supports HEIC/HEIF files from iPhone - they'll be automatically converted.

Drop images here or click to select

Will be converted to AVIF

Guide by Ashley Whitehair, web designer at Norwich Website Design

How to convert JPG to AVIF

  1. Add your photos

    Drop JPG files onto the box above, or click it to choose them; PNG, WebP and iPhone HEIC photos work too. AVIF is already selected, and its encoder starts loading as soon as you add them.

  2. Press Process and give it a moment

    AVIF takes longer to create than other formats, so a progress bar counts through the batch. If the encoder is still downloading, you’ll see Loading AVIF encoder first.

  3. Download

    Save each file with its download button, or press Download ZIP to get them all. photo.jpg becomes photo.avif.

How much smaller is AVIF than JPG?

For photos, AVIF usually needs about 40% fewer bytes than a JPG that stays as close to the original, and about 20% fewer than WebP. Measured with this converter on 22 detailed photos saved as high-quality JPGs (3.0 MB in total):

QualityAVIFWebPJPG
85% (default)AVIF: 983 KB (68% smaller)WebP: 1.2 MBJPG: 1.4 MB
80%AVIF: 802 KB (74% smaller)WebP: 1.0 MBJPG: 1.2 MB
75%AVIF: 685 KB (78% smaller)WebP: 855 KBJPG: 1.05 MB
70%AVIF: 625 KB (80% smaller)WebP: 804 KBJPG: 975 KB

At 70%, the AVIF files were as close to the originals, on average, as JPGs saved at 75%, at 58% of their size. Smooth pictures do even better: a 1600 × 1200 landscape with a clear sky went from 193 KB as JPG to 12 KB as AVIF at 85%.

AVIF is slow to create

AVIF squeezes photos so well because the encoder tries many ways of compressing each part of the image, and that takes time. It runs in the background, so the page stays usable, but expect to wait. On a recent, fast laptop in Chrome:

ImageAVIFWebPJPG
1600 × 1200 photoAVIF: 0.8 secondsWebP: 0.2 secondsJPG: 0.1 seconds
Detailed 12-megapixel photoAVIF: about 5½ secondsWebP: about 1.3 secondsJPG: under half a second

Phones and older computers take longer, and photos are converted one at a time, so a folder of 100 phone photos can take several minutes. Photos with less fine detail encode faster. Resizing big photos to the size they’re shown at first saves time as well as bytes.

The one-time encoder download

Browsers can display AVIF but have no built-in way to create it, so this page brings its own encoder: libavif, the open-source AVIF library, running on your device. It’s about 1 MB, downloaded from this site the first time you add images here, and then kept by your browser, so later visits and offline use don’t fetch it again.

Your photos are encoded on your phone or computer and never uploaded. If the download fails, for example on a patchy connection, you’ll see an error; press Process again to retry.

Choosing the AVIF quality

  • 85% (the default): for photos you care about. Still about a fifth smaller than WebP at 85%.
  • 70–80%: the best balance for most websites, from the table above.
  • 60% and below: only for thumbnails and backgrounds. AVIF smooths fine texture first: at 60%, the fine lines in an owl’s eyes in one test photo had visibly smoothed away.
  • 90–100%: not lossless, and the files grow fast. The 22 test photos were 1.1 MB at 90% and 1.9 MB at 100%.

To check a setting before converting a whole folder, open one original and its AVIF in Compare Two Images.

Using AVIF on a website

All current browsers display AVIF: Chrome since 2020, Firefox since 2021, Safari since iOS 16 and macOS Ventura in 2022, and Edge since January 2024. Apps have been slower: Windows 11 and macOS have only opened AVIF out of the box since 2022, and WordPress accepts AVIF uploads from version 6.5 if the server supports it (check Tools → Site Health → Info → Media Handling). For email, printing and upload forms, send JPGs.

To cover older browsers, list AVIF first in a picture element, then WebP, with the JPG in the img. Each browser loads the first format it supports:

<picture>
  <source srcset="photo.avif" type="image/avif">
  <source srcset="photo.webp" type="image/webp">
  <img src="photo.jpg" alt="Describe the photo" width="1200" height="800">
</picture>

Make the WebP copies with the JPG to WebP converter. If someone sends you an AVIF that won’t open, AVIF to JPG turns it back.

Frequently asked questions

Is AVIF better than WebP?

For photos, AVIF is usually smaller at a similar quality: 22 test photos were 983 KB as AVIF and 1.2 MB as WebP at 85%. WebP is several times faster to create and opens in more apps. Many sites offer both and let the browser choose.

Why is converting to AVIF so slow?

AVIF compresses harder than JPG or WebP, trying many options for each part of the image. A detailed 12-megapixel photo took about 5½ seconds on a fast laptop, against about 1.3 seconds for WebP. Resizing photos first makes it quicker.

Why does this page download an AVIF encoder?

Browsers can show AVIF images but can’t save them, so the converter uses its own encoder, about 1 MB. It’s downloaded once from this site and runs on your device; your photos aren’t sent anywhere.

Does AVIF support transparency?

Yes. Convert a PNG with a transparent background and the AVIF keeps it. JPGs have no transparency, so photos simply stay as they are.

Can I upload AVIF images to WordPress?

Yes, from WordPress 6.5, as long as your hosting’s image library supports AVIF. To check, go to Tools, Site Health, Info and look for AVIF under Media Handling.

Can I convert iPhone HEIC photos to AVIF?

Yes. Add them here like JPGs and they’re converted straight to AVIF on your device. Both formats are much smaller than JPG, but AVIF displays in every current browser, which HEIC doesn’t.

Will AVIF photos open on my phone?

iPhones with iOS 16 or later and Android phones with Android 12 or later can show AVIF, but some apps on them can’t. To share photos with people, send JPGs; use AVIF for websites.