What Is AVIF Format and How to Use It

Which image format should you ship in 2026? AVIF. The catch is older browsers, which I'll get to. It was born inside the AV1 video codec, and a photo saved this way comes out lighter than the same photo as WebP, JPEG or PNG, with no drop in quality you'd notice. Transparency works. So does animation, and HDR with 10-bit color if you ever need them.
So why bother? Weight. A lighter page paints its biggest element sooner, which is what Largest Contentful Paint (LCP) measures, and Google does look at LCP.
This guide covers what AVIF is, how it stacks up against WebP and JPEG, who can open it, how to convert it, and where I'd use it. I'll also point out the places it lets you down, because it does.
What is AVIF, exactly?
The name means AV1 Image File Format. It was lifted from AV1, a video codec the Alliance for Open Media put together, and the same compression now squeezes single frames. Netflix, Google and Mozilla are all members. So no, it isn't somebody's weekend experiment.
In practice you get the same picture in far fewer bytes. Gradients come out smoother than JPEG manages, and transparent edges get a real alpha channel. Animation works too, which means AVIF can replace those bloated old GIFs.
One more thing worth knowing. AVIF isn't a new idea you have to take on faith. Browsers have shipped support for several years now, and many image CDNs can serve it automatically to browsers that ask for it.
How does AVIF compare with WebP and JPEG?
| Format | Compression | Transparency | Animation | Browser support | Best for |
|---|---|---|---|---|---|
| AVIF | Excellent, roughly 20 to 50% smaller than WebP | Yes | Yes | About 93 to 94% of users | Photos, graphics, HDR |
| WebP | Good | Yes | Yes | Nearly 100% | General web use, fallback |
| JPEG | Moderate | No | No | 100% | Legacy compatibility |
AVIF gives you the smallest file. WebP is the format nobody's browser chokes on. JPEG is the old reliable. Mine is a picture tag with AVIF on top and WebP underneath.
If you want the long version of that match-up, our AVIF vs WebP comparison runs through it, and the WebP explainer covers the format that sits in the middle.
The gap against JPEG is the big one. A JPEG is a thirty-year-old design. It does one thing well, which is photos on a screen in the early 1990s, and everything since has been bolted on around it. AVIF was built with today's screens and today's bandwidth in mind.
Which browsers can open AVIF?
Browser support is good these days: Chrome, Edge, Firefox and Safari all read it, on phones and desktops. Only the old ones can't, and that's why the markup below has a chain of fallbacks:
<picture>
<source srcset="image.avif" type="image/avif">
<source srcset="image.webp" type="image/webp">
<img src="image.jpg" alt="Description" loading="lazy">
</picture>
Browsers read that top to bottom, grab the first format they can handle, and ignore the rest. An ancient one ends up with the JPEG.
People forget the alt text here. It belongs on the img tag at the bottom, since the source lines can't carry one, and an empty alt means the whole set goes undescribed. Serving several sizes as well? The guide to srcset, sizes and the picture element shows how the two ideas fit together.
That fallback costs you three files per image. Annoying, yes. Still cheaper than losing the roughly one visitor in fifteen whose browser can't read AVIF.
How do I open an AVIF file?
People hit one snag. Windows 10 and 11 won't show an AVIF in Photos until the AV1 or HEVC extension is installed. Mac Preview has coped since Big Sur. iPhones since iOS 16. Android's gallery and Chrome open them with no fuss, and so does every major browser.
Stuck with a file that won't open? Try dragging it onto a browser tab first, since browsers often display what the system viewer refuses. If that fails too, convert it to JPEG or WebP.
Editing tools lag behind as well. Some older photo software won't import AVIF at all, which strands anyone who only kept the AVIF. So hold on to the original JPEG or PNG and call the AVIF a delivery copy.
How do I convert AVIF files?
The MeloTools converters do the work in your browser, so nothing gets uploaded anywhere. Which one you want depends on which way you're going:
- AVIF to JPG for anyone on old software.
- AVIF to WebP when you want something smaller than JPEG that nearly everything opens.
- JPG to AVIF for photos going on your own site.
The steps are the same each time.
- Drag the file in.
- Pick the output format.
- Download.
A few hundred files? Skip the browser. avifenc comes with libavif, and ImageMagick works if your build has AVIF support. Basic commands:
avifenc --speed 6 -q 60 photo.jpg photo.avif
magick photo.jpg -quality 60 photo.avif
Check avifenc --help on your machine, since quality flags have shifted between releases. Slower speed settings take longer and make smaller files. Fine for an overnight batch, painful for a one-off.
Whatever you use, look at the result next to the original before you ship. Quality 60 is fine for plenty of photos. Push it lower and skies and skin start to band.
Why does AVIF help page speed?
Speed is the real payoff. Images make up over 60% of a typical page, and AVIF takes 20 to 50% off them compared with JPEG at the same quality. Heroes appear sooner, phones download less, and the CDN bill drops. Add srcset and sizes too, so a phone never gets the desktop file.
LCP is the time until the biggest thing on screen finishes painting, and on most pages that's a photo. Google calls 2.5 seconds or under good. Take 400 KB off a hero image and the browser has that much less to fetch first, which on a slow mobile connection can push you under the line.
Lighter pages also go easy on metered mobile data, and visitors feel that even if they never mention it. If you pay for bandwidth, you'll see it on the invoice too.
For the wider picture, the guide on how image optimization improves Core Web Vitals connects image weight to the other two metrics as well.
Compression isn't the only lever, of course. Dimensions matter just as much, so resize before you convert, and run the result through an image compressor if the file is still heavy. Format is one choice among several. It's just the one people most often skip.
Which format for which job?
| Use case | Format |
|---|---|
| Hero images, LCP candidates | AVIF with WebP fallback |
| Product photos | AVIF |
| Logos, icons with transparency | SVG or WebP |
| Simple photos, no compatibility worries | JPEG |
| Animated images | AVIF or WebP |
Here's the reasoning behind each row.
Heroes and anything likely to be the LCP element get AVIF with a WebP fallback, because that's the image where a few hundred kilobytes decide your score. Product photos get AVIF too. A shop page shows dozens of them, so the savings multiply.
Logos and icons play by other rules. A flat shape belongs in SVG, which beats any bitmap on size and stays sharp at every zoom level. Need a bitmap with transparency? WebP.
JPEG isn't dead. Email attachments, upload forms that only take JPEG, a client with an ancient viewer: in those cases I just send the JPEG.
Animation is messier. AVIF can do it, but exporting animated WebP is easier in a lot of tools, so go with what your pipeline supports. Either one beats a GIF.
If you're comparing AVIF with newer formats too, our JPEG XL vs AVIF breakdown covers where the next contender stands.
Where does AVIF let you down?
Honestly, in three places. Encoding is slow. A batch that finishes in seconds as WebP can drag on as AVIF. Plan for that, because deploy day is a bad time to find out.
Second, push the settings hard and fine texture, like film grain or woven fabric, goes smooth. Test a few detailed photos before you settle on a number.
Third, the tooling around it is younger. Some image editors, content systems and email clients still don't handle it, which is why I keep a JPEG or PNG master and generate the AVIF from that.
None of these is a reason to avoid the format. They're reasons to test first.
FAQ
Is AVIF better than JPEG?
For most web use, yes. Same quality, smaller file, plus transparency and animation. JPEG keeps two advantages: it works in ancient browsers, and it opens in software that can't read anything newer. So treat JPEG as the safe fallback, not the default.
Can I open AVIF on my phone?
Yes. Any iPhone on iOS 16 or newer will, in Photos and in Safari. So do recent Android phones, via the gallery app or Chrome. A stubborn file can go into a browser tab, or through an online JPEG converter.
Does AVIF support transparency?
It does. The alpha channel behaves like the one in PNG and WebP, so cutouts and logos are fine, and the file usually beats the PNG on size. For a flat logo, SVG can be lighter again, so check both.
Is AVIF good for SEO?
Not on its own, since the format isn't a ranking signal. Speed is the route: a lighter file loads sooner, Google measures loading, and a hero image that paints faster can improve your Core Web Vitals. File format is only one piece of image SEO, next to sizing, alt text and lazy loading.
Why is AVIF smaller than WebP?
AV1 is a newer codec than the VP8 design behind lossy WebP, and newer tools find more redundancy in a picture, so equal quality needs fewer bytes. The saving depends on the image, which is why it's always quoted as a range.
How do I convert AVIF to JPEG?
Pick an online converter, add the file, set the output to JPEG, then save it. MeloTools does it all in your browser, which means the image stays on your device. For a big batch, a command line tool such as ImageMagick will do the same job in one pass.
Related Guides
Image Sitemap XML: A Complete Guide to Getting Your Images Indexed by Google
Build an image sitemap Google will process, wire it into Next.js or WordPress, and check whether it moved the needle on image indexing in Search Console.
Wix Image Optimization: What Wix Does Automatically and What You Must Do Yourself
Wix handles more image optimization than most platforms, but it's not enough on its own. Learn exactly what Wix does automatically and the pre-upload steps that still matter.
Webflow Image Optimization: Pre-Upload Workflow and Built-In Settings
Master Webflow image optimization in 2026. Learn the pre-upload workflow, WebP conversion settings, CMS image configuration, and Core Web Vitals impact in one guide.
How to Check Image File Size Before Uploading (and Why It Matters)
Learn how to check image file size before uploading and why it matters for speed, SEO, and Core Web Vitals. Includes size thresholds, Lighthouse audit steps, and a free pre-upload checker.
Free Image Converter: Convert JPG, PNG, WebP, AVIF Online
MeloTools is a free image converter that runs entirely in your browser — no upload, no watermark, no account. Convert JPG, PNG, WebP, AVIF, and HEIC instantly. Try it free.
Image Optimization for WordPress: Complete 2026 Guide
WordPress sites lose rankings due to unoptimised images. This complete 2026 guide covers WebP conversion, compression plugins, Core Web Vitals fixes, and the exact settings that make WordPress images fast.