What Is AVIF? The Next-Generation Image Format Explained

AVIF is the newest major image format on the web — and by most technical measures, it is the best one. It produces files roughly 50% smaller than JPEG and 20–30% smaller than WebP at equivalent visual quality, while supporting HDR, wide colour gamut, transparency, and animation.

This guide explains what AVIF is, how it works, how it compares to JPEG and WebP, which browsers support it, and when you should (and should not) use it.

~50%
smaller than JPEG
~30%
smaller than WebP
90%+
browser support

What Is AVIF?

AVIF stands for AV1 Image File Format. It is a still-image format derived from keyframes of AV1 video — the same codec used by YouTube, Netflix, and most modern video streaming. The format was developed by the Alliance for Open Media (AOM), a consortium including Google, Apple, Microsoft, Mozilla, Netflix, and Amazon.

The AV1 codec was designed to outperform H.264 and VP9 at video compression — and those same algorithms, applied to still images, produce files dramatically smaller than anything JPEG or WebP can achieve.

AVIF was finalized as a standard in 2019 and first gained browser support in Chrome 85 (2020). As of 2026, it is supported in all major browsers.

What Makes AVIF Different?

AVIF is not just a marginally better JPEG. It is a fundamentally more capable format:

  • Lossy and lossless compression — like WebP, unlike JPEG
  • Transparency (alpha channel) — supports full 8-bit alpha, unlike JPEG
  • Animation — supports multi-frame sequences, like GIF and WebP
  • HDR (High Dynamic Range) — preserves the wide brightness range of HDR photos
  • Wide colour gamut — supports Display P3 and Rec. 2020 colour spaces
  • Up to 12-bit colour depth — vs JPEG's 8-bit, enabling smoother gradients
  • No patents — fully royalty-free and open standard

Browser Support for AVIF

🟡
Chrome
Since v85 (2020)
🦊
Firefox
Since v93 (2021)
🔵
Edge
Since v88 (2021)
🧭
Safari
Since v16 / iOS 16 (2022)
📱
Chrome Android
Since v85 (2020)
🌐
Opera
Since v71 (2021)

Global AVIF support is approximately 90–93% as of 2026. The main gaps are older Safari (iOS 15 and earlier) and Samsung Internet older versions. For a safe fallback strategy, use the HTML <picture> element:

<picture>
  <source srcset="photo.avif" type="image/avif">
  <source srcset="photo.webp" type="image/webp">
  <img src="photo.jpg" alt="Description">
</picture>

This serves AVIF to browsers that support it, WebP as the first fallback, and JPEG to any browser that supports neither.

AVIF vs WebP vs JPEG — Full Comparison

PropertyAVIFWebPJPEG
Typical file size (photo)Smallest (~50% vs JPEG)~35% smaller than JPEGBaseline
Lossy compressionYesYesYes
Lossless compressionYesYesNo
Transparency (alpha)YesYesNo
AnimationYesYesNo
HDR / wide colourYes (full HDR)LimitedNo
Colour depthUp to 12-bit10-bit8-bit
Browser support~90–93%~97%100%
Encoding speedSlowFastVery fast
Open standard / royalty-freeYesYesYes
Email client supportVery limitedLimitedUniversal

Real File Size Comparison

The same 4000×3000 pixel photograph at different quality levels:

Format & QualityFile Sizevs JPEG
JPEG 80%950 KB
WebP 80%620 KB35% smaller
AVIF 60 (equivalent quality)470 KB51% smaller
JPEG 90%1.8 MB
WebP 90%1.2 MB33% smaller
AVIF 80 (equivalent quality)890 KB51% smaller

When to Use AVIF

  • Performance-critical websites — if page speed is a priority and your audience is on modern browsers, AVIF will deliver the smallest files possible.
  • E-commerce product images — high-quality photos at minimal file size means faster product page loads and better conversion rates on mobile.
  • HDR photography — AVIF is the only mainstream web format that properly preserves HDR and wide colour gamut data from modern cameras and phones.
  • Next.js / Astro / Nuxt projects — these frameworks support automatic AVIF generation via their built-in image optimization components.
  • When you want the best future-proofing — AVIF is the direction the web is heading. Adopting it now positions you ahead of the curve.

When Not to Use AVIF

  • Email images — no major email client renders AVIF. Use JPEG for anything shared by email.
  • When encoding speed matters — AVIF encoding is significantly slower than JPEG or WebP. For real-time image processing pipelines, WebP is faster.
  • When you need 100% browser coverage — if your site has significant traffic from older iOS devices (pre-iOS 16), use WebP with a JPEG fallback instead.
  • Printing — JPEG remains the standard for print workflows.

Convert Images to AVIF — Free, No Upload

Convert JPG, PNG, or WebP to AVIF instantly in your browser. Files never leave your device.

How to Convert Images to AVIF

Method 1 — Free Online Converter (Recommended)

  1. Open convertlo.pro/jpg-to-avif.html (or any AVIF converter on the site).
  2. Drop your JPG, PNG, or WebP file onto the converter.
  3. Conversion runs entirely in your browser — no file is uploaded.
  4. Download your AVIF file instantly.

Method 2 — Using Sharp (Node.js)

const sharp = require('sharp');
sharp('input.jpg')
  .avif({ quality: 60 })
  .toFile('output.avif');

Sharp uses libvips under the hood and is fast enough for production use. Quality 50–65 is typically the sweet spot for AVIF — it produces smaller files than JPEG at 80% with equivalent visible quality.

Method 3 — Using ImageMagick (Command Line)

magick input.jpg -quality 60 output.avif

ImageMagick 7.1+ supports AVIF natively. Install with brew install imagemagick on Mac or via your Linux package manager.

Frequently Asked Questions

What is AVIF?
AVIF (AV1 Image File Format) is an open image format derived from the AV1 video codec. It produces files approximately 50% smaller than JPEG at equivalent visual quality, supports HDR, wide colour gamut, transparency, and animation. It was developed by the Alliance for Open Media and finalized in 2019.
Is AVIF better than WebP?
For file size and quality, yes — AVIF produces 20–30% smaller files than WebP at equivalent quality and supports better HDR and colour depth. The trade-off is slower encoding speed and slightly lower browser support (~90% vs WebP's ~97%). For most new web projects in 2026, AVIF with a WebP fallback is the optimal choice.
Do all browsers support AVIF?
Chrome (88+), Firefox (93+), Edge (88+), and Safari (16+ / iOS 16+) all support AVIF. Global support is approximately 90–93%. The gaps are older Safari and Samsung Internet versions. Use the HTML picture element to serve a WebP or JPEG fallback for unsupported browsers.
How do I convert an image to AVIF?
Use Convertlo to convert JPG, PNG, WebP, or BMP to AVIF for free in your browser — no upload required. For batch or programmatic conversion, use Sharp (Node.js) or ImageMagick from the command line.
Should I use AVIF or WebP for my website?
Use AVIF if your audience is primarily on modern browsers (Chrome, Firefox, Edge, Safari 16+) and you want the smallest possible files. Use WebP if you need broader compatibility or faster server-side encoding. The HTML picture element lets you serve AVIF first and fall back to WebP automatically — you get the best of both.
Does AVIF support transparency?
Yes. AVIF supports a full 8-bit alpha channel for transparency, making it capable of replacing both JPEG (for photos) and PNG (for transparent graphics) with smaller files.
Why is AVIF encoding slow?
AVIF uses the AV1 codec, which was designed to maximize compression at the cost of encoding complexity. Encoding an AVIF can take 10–50× longer than JPEG. For websites, this is solved by pre-encoding images at build time. Real-time AVIF encoding for user-uploaded content requires hardware acceleration or a trade-off in quality settings.