DEV Community

Cover image for Is AVIF Ready for Production in 2026? Browser Support and Real Trade-offs
swapfileio
swapfileio

Posted on • Originally published at swapfile.io

Is AVIF Ready for Production in 2026? Browser Support and Real Trade-offs

Every six months or so, someone on the team brings up the same question: is AVIF finally ready to use everywhere? And every time we go through the same audit — which browsers, which versions, what breaks for users on older OS. The answer keeps creeping toward "yes," but it's not all the way there yet.

This is what we found when we looked again in June 2026, with actual numbers and the gotchas you won't see on most "AVIF is the future" blog posts.

TL;DR — Support by Browser, June 2026

Browser AVIF support since Current adoption
Chrome / Edge / Brave Chrome 85 (Aug 2020) ~99%
Firefox Firefox 93 (Oct 2021) ~97%
Safari (macOS) Safari 16.4 (Mar 2023) ~94%
Safari (iOS) iOS 16.4 (Mar 2023) ~91%
Samsung Internet v16 (Dec 2022) ~96%
Android Chrome Chrome 85+ (2020) ~98%

Aggregate global support sits around 95–96% per caniuse as of this writing. That's better than WebP was in 2021 when people called WebP "ready." The remaining 4–5% is mostly older iPhones still on iOS 15 or earlier (no software update path on the iPhone 6s and similar), plus the long tail of corporate Windows 8 machines on EOL Edge versions.

So Is It Ready?

Short answer: yes for almost every product, with a one-line fallback you write once and forget. The cases where AVIF is not ready are narrower than you'd think — but they exist and they're worth knowing about.

We'll spend the rest of this post on the actual trade-offs, not the marketing version. If you just want the takeaway: ship AVIF with a JPG fallback via <picture>, skip the WebP middle layer, and move on with your life. Read on if you want the why.

The Safari Delay Nobody Talks About

Chrome shipped AVIF in August 2020. Safari shipped it in March 2023. That's two years and seven months. For most of that period, web developers building for the iOS-heavy markets (US consumer, design, ecommerce) had to keep WebP as the "modern" fallback layer because Safari users couldn't decode AVIF at all.

That delay shaped how a lot of older articles still treat AVIF. They'll tell you to ship a three-layer fallback: AVIF → WebP → JPG. In 2026 that's overkill. Safari users have had AVIF for over three years. The iOS 15 holdout group is small enough that JPG fallback covers them just fine.

When AVIF Actually Saves You Money

The pitch you've heard: AVIF is 50% smaller than JPG. The pitch is mostly true, but it depends a lot on what you're encoding.

  • Photographic content (large hero images, gallery thumbnails): 40–55% smaller than JPG at equivalent visual quality. This is the AVIF sweet spot.
  • Mixed content (screenshots with text): 20–35% smaller. The savings drop because sharp edges and text don't benefit as much from AV1's compression model.
  • Icons and logos: Don't use AVIF. Use SVG. If you can't use SVG, PNG with proper compression beats AVIF at small sizes (< 50KB).
  • Animated images: AVIF supports it, but the tooling is rough. WebP animation has better encoder support and broader browser compatibility for animation specifically.

If your site is mostly photography, switching to AVIF will likely cut your image bandwidth by a third or more. Netflix reported about a 30% reduction on their hero images when they migrated in 2022. That number lines up with what we've seen on photography-heavy sites in our own measurements.

Implementation: Two Realistic Options

You've got two paths depending on how much control you have over your build pipeline.

Option A: Plain <picture> Element

The boring, reliable way. Works everywhere, no build step assumptions, no CDN magic required:

<picture>
  <source srcset="hero.avif" type="image/avif">
  <img src="hero.jpg" alt="Mountain landscape" width="1200" height="800">
</picture>
Enter fullscreen mode Exit fullscreen mode

If the browser doesn't support AVIF, it falls back to the JPG. No WebP middle layer because at this point WebP doesn't buy you anything that JPG fallback doesn't also cover — and you save yourself an extra encode + storage cost.

Option B: Server-Side Content Negotiation

If you control the server (or use a CDN like Cloudflare, Vercel, or Bunny), you can serve the right format based on the Accept header:

Accept: image/avif,image/webp,image/png,image/jpeg,*/*
Enter fullscreen mode Exit fullscreen mode

The browser tells you what it can decode. You serve AVIF if it's in the list, JPG otherwise. Cloudflare's Polish feature does this automatically, as does Vercel's image optimization. If you're using one of these, you've already shipped AVIF — you just might not have noticed.

Where AVIF Falls Short

The honest list:

  1. Encoding is slow. AV1's encoder is computationally expensive. Encoding a 4MB JPG to AVIF on a typical build server takes 3–8 seconds versus <1 second for WebP. For build-time conversion of large catalogs (e-commerce with 100K product images), this matters. We've seen build times triple after AVIF migration on sites that didn't switch to a parallel encoder like libavif.

  2. Decoding takes more CPU. On older mobile devices (anything below iPhone X or equivalent Android), decoding 4K AVIF images is noticeably slower than JPG. You won't notice on a hero image. You'll notice on a 50-image gallery scroll.

  3. Tooling gaps. Photoshop added AVIF export as a plugin in 2023. GIMP shipped it natively in 2024. But a lot of agency workflows still hand off JPG/PNG files. If your team isn't comfortable saying "we'll convert at build time," AVIF can feel like a step backward in the design handoff.

  4. Limited animation ecosystem. AVIF can do animation, but no major editor exports animated AVIF cleanly. If you're serving animated content (icons, micro-interactions, social previews), stick with WebP for animation and use AVIF only for static images.

Three Sites Doing This Right

If you want to see what production AVIF actually looks like:

  • Netflix. Hero images on the homepage have been AVIF since 2022. They use server-side negotiation and fall back to JPG. Open DevTools, look at the Content-Type header on the hero image — it'll say image/avif if you're on a recent browser.
  • YouTube thumbnails. Migrated to AVIF for most thumbnail sizes in 2023. The savings on YouTube's scale are absurd — they don't publish numbers, but at the bandwidth they push, even single-digit percentage improvements translate to petabytes.
  • GitHub avatars. Since 2024, GitHub serves AVIF for avatar images via their CDN. You can verify by inspecting any user avatar URL — the response will be AVIF on supported browsers.

If three of the most cautious, scale-sensitive engineering organizations on the web have shipped AVIF in production, "is it ready" is mostly answered.

Migration Path: WebP to AVIF

If you're already running WebP and wondering whether to add AVIF:

  1. Don't rip out WebP. If you have a working WebP pipeline, just add an AVIF source above it: <source type="image/avif"> first, then the WebP source, then the JPG fallback. Three-layer is fine if you've already built it.
  2. If you're starting fresh: skip WebP, use AVIF + JPG. Less storage, less build cost, same end-user experience.
  3. For dynamic content (user uploads): generate AVIF asynchronously after upload. Don't make users wait for the encode. Serve JPG on upload, swap in AVIF once it's done. We do exactly this in our backend pipeline.

For existing JPG-heavy archives you want to bulk-convert, our JPG to AVIF tool handles single files in browser-friendly chunks. For batch automation, sharp (Node.js) or libvips (Python) are the standard libraries.

FAQ

Should I use AVIF or stick with WebP for now?

If you're starting from scratch or doing a fresh image pipeline build in 2026, skip WebP entirely. Use AVIF with a JPG fallback. The browser coverage gap that justified WebP as a middle layer in 2022–2023 is gone. If you already have a WebP pipeline that works, no rush to migrate — but new sites shouldn't add WebP today.

Does AVIF work on iPhone Safari?

Yes, since iOS 16.4 (March 2023). About 91% of active iPhone users in 2026 have iOS 16.4 or higher. The remaining 9% are mostly iPhone 6s/SE first-gen owners on iOS 15, who'll fall through to the JPG fallback automatically.

How much smaller is AVIF vs JPG actually?

For photographic content at high quality (Q90 equivalent), expect 40–55% smaller files. For mixed content (UI screenshots, text-heavy images), 20–35%. For icons and small graphics, AVIF often loses to PNG — don't use it there. The bandwidth savings on a content-heavy site are real and material.

Will AVIF break older browsers?

Not if you use <picture> with a <source type="image/avif"> declaration. The browser checks the type and either uses the AVIF source or falls through to the <img> fallback. No JavaScript needed, no feature detection, no client-side parsing of headers. This is one of the cleanest fallback systems on the web platform.

Is AVIF SEO-friendly? Does Google index AVIF images?

Yes. Googlebot has supported AVIF since 2022. Image search results include AVIF images. The performance benefit (smaller files = faster LCP) also helps Core Web Vitals, which feeds into rankings. There's no SEO reason to avoid AVIF in 2026.

The 2026 Recommendation

For a typical content site, e-commerce, or SaaS marketing site building today:

  1. Ship AVIF for all photographic content.
  2. JPG fallback via <picture> — skip WebP unless you already have it.
  3. SVG for icons and logos, not AVIF.
  4. Animated content stays on WebP until the AVIF animation ecosystem matures.
  5. Use a CDN with auto-AVIF (Cloudflare Polish, Vercel image, Bunny optimizer) if you don't want to manage encoding yourself.

If your honest answer to "is AVIF ready" is still "I'm not sure," ship it on one section of your site (the homepage hero, the blog cover images, the product grid) and measure for a week. Check Web Vitals before/after. The bandwidth and LCP improvements are usually obvious enough to settle the question.

To convert existing JPG files for testing: SwapFile.io JPG to AVIF — no signup, files auto-delete in 1 hour.


Originally published on SwapFile.io. Part 6 of the "Image Format Issues" series.

Top comments (0)