What Is AVIF?
AVIF (AV1 Image File Format) is a modern, open, royalty-free image format developed by the Alliance for Open Media (AOMedia). It is based on the AV1 video codec and uses the HEIF container format (ISO/IEC 23008-12). AVIF supports lossy and lossless compression, alpha transparency, HDR with 10-bit and 12-bit color depth, wide color gamut, and — crucially — animation.
Compared to older formats like JPEG and PNG, AVIF achieves dramatically better compression ratios at similar visual quality. At low to medium bitrates, AVIF typically produces files 50% smaller than JPEG and 20–30% smaller than WebP, while maintaining perceptually equivalent or superior image quality.
Animated AVIF Explained
Animated AVIF works by storing multiple image frames within a single AVIF file, using the HEIF sequence structure. Each frame is compressed independently using AV1 intra-frame coding, which gives animated AVIF a massive quality-per-byte advantage over GIF and animated WebP.
Animated AVIF files typically use the .avif extension (same as still images) and the
image/avif MIME type. Some tools and systems may use the .avifs extension
to distinguish animated files from still images, but this is not standardized and most browsers
handle both with the same .avif extension.
Key advantages over GIF and animated WebP:
- Much smaller file sizes — AV1 compression is generations ahead of GIF's LZW and substantially better than WebP's VP8 codec.
- Full color support — Unlike GIF's 256-color palette, animated AVIF supports millions of colors with 8, 10, or 12-bit depth.
- Alpha transparency — Smooth, full-range transparency without the dithered edges of GIF.
- HDR and wide gamut — Supports high dynamic range content and wide color gamuts like Display P3 and BT.2020.
- Configurable quality — Lossy compression with fine-grained quality control, so you can optimize for size or fidelity.
Browser Support for Animated AVIF
Still AVIF images now enjoy near-universal browser support. Animated AVIF support is also widespread, though Safari was the last major holdout. Here's the current state:
| Browser | Still AVIF | Animated AVIF | Notes |
|---|---|---|---|
| Google Chrome | 85+ | 93+ | Full support since August 2021 |
| Mozilla Firefox | 93+ | 113+ | Animated support since May 2023 |
| Microsoft Edge | 93+ | 93+ | Same engine as Chrome (Chromium) |
| Apple Safari (macOS) | 16+ | 18.2+ | Animated support added in late 2024 |
| iOS Safari | 16+ | 18.2+ | Follows macOS Safari timeline |
| Opera | 79+ | 79+ | Chromium-based, full support |
For the most up-to-date compatibility data, check caniuse.com/avif.
Software Support
Beyond browsers, many desktop applications and image processing libraries now support AVIF, including animated AVIF to varying degrees.
Image Editors
GIMP
GIMP 2.10.32+ can open and export still AVIF files via the libheif plugin. Animated AVIF import/export is limited — individual frames can be exported and then assembled with external tools.
Adobe Photoshop
Native AVIF support was added in Photoshop 25.7+ (2024). Earlier versions can use third-party plugins. Animation support is not native to Photoshop's workflow.
XnView MP
XnView MP supports viewing and batch-converting AVIF files. It can display animated AVIF sequences and is a useful tool for previewing and organizing AVIF collections.
Paint.NET
Paint.NET supports AVIF via the AV1 Image File Format plugin. Still images are well supported; animated AVIF playback requires Windows 11's built-in AV1 decoder.
Command-Line Tools
ImageMagick
ImageMagick 7.1+ supports AVIF encoding and decoding when compiled with libheif and the AOM AV1 codec. You can convert between AVIF and other formats, resize, apply filters, and process images in batch. Animated AVIF can be assembled from individual frames:
magick frame1.png frame2.png frame3.png -delay 25 animated.avif
ImageMagick is available on Linux, macOS, and Windows, and is widely used in server-side image processing pipelines.
libavif / avifenc
libavif is the
reference AVIF library maintained by AOMedia. Its avifenc command-line tool
is the most capable encoder for creating animated AVIF files, with fine-grained control
over quality, speed, frame timing, and loop count.
FFmpeg
FFmpeg can encode video to AVIF sequences and supports AV1 encoding via libaom, SVT-AV1, or rav1e. It's the go-to tool for converting video clips to animated AVIF with precise control over codec parameters.
Operating System Support
Windows 11 includes native AVIF support through the AV1 Video Extension from the Microsoft Store, allowing AVIF files to be viewed in Photos, File Explorer thumbnails, and other system apps. Windows 10 can add support by installing the same extension. macOS gained native AVIF support in macOS Ventura (13.0+). Linux desktop environments support AVIF through libraries like libavif and libheif — most modern file managers, image viewers (Eye of GNOME, Gwenview), and thumbnailers handle AVIF natively.
Online Tools for Animated AVIF
If you don't want to install software, several online tools can create and convert animated AVIF files directly in your browser or on the server side:
EZ AVIF (this site)
Our own Animated AVIF Maker lets you create animated AVIF files from individual frames directly in your browser. You can also convert video clips to AVIF, convert images to still AVIF, or convert AVIF back to JPG or PNG. All processing happens client-side — no uploads.
Ezgif.com
Ezgif.com is a popular online tool for creating and editing animated images. It supports animated AVIF creation from uploaded frames, GIF to AVIF conversion, AVIF optimization, and various editing operations like cropping, resizing, and adjusting frame timing. Processing happens on the server, so it can handle larger files and older browsers.
Squoosh
Squoosh by Google Chrome Labs is a browser-based image compression tool that supports AVIF encoding. It's excellent for comparing quality vs. file size for still images, but does not support animated AVIF creation.
AVIF.io
AVIF.io offers bulk AVIF conversion with a focus on still images. It provides a simple drag-and-drop interface for converting JPEG, PNG, and WebP files to AVIF format.
Working with Animated AVIF in Practice
Using animated AVIF on the web is straightforward. Simply use an <img> tag
just like you would for any other image:
<img src="animation.avif" alt="My animated AVIF">For progressive enhancement with fallback for older browsers, use the
<picture> element:
<picture>
<source srcset="animation.avif" type="image/avif">
<source srcset="animation.webp" type="image/webp">
<img src="animation.gif" alt="My animation">
</picture>This approach ensures that browsers will use the best format they support — AVIF first, then WebP, and GIF as the universal fallback.
Creating animated AVIF with ImageMagick
If you have ImageMagick 7.1+ installed with AVIF support, you can create animated AVIF files from the command line:
# Convert a GIF to animated AVIF
magick input.gif -quality 60 output.avif
# Create animated AVIF from individual frames
magick frame_*.png -delay 10 -loop 0 animation.avif
# Convert animated WebP to AVIF
magick input.webp -quality 50 output.avifCreating animated AVIF with avifenc
The avifenc tool from libavif provides more control:
# Encode frames into animated AVIF (each frame gets 250ms display time)
avifenc --min 20 --max 40 --speed 6 \
frame01.png frame02.png frame03.png \
-o animation.avifAVIF Animation vs. Other Formats
| Feature | Animated AVIF | Animated WebP | GIF | APNG |
|---|---|---|---|---|
| Compression | Excellent (AV1) | Good (VP8) | Poor (LZW) | Fair (Deflate) |
| Color depth | 8 / 10 / 12-bit | 8-bit | 8-bit (256 colors) | 8-bit (truecolor) |
| Alpha transparency | Yes (full) | Yes (full) | Yes (1-bit only) | Yes (full) |
| HDR support | Yes | No | No | No |
| Lossy + Lossless | Both | Both | Lossless only | Lossless only |
| Browser support | Very good | Very good | Universal | Good (no IE) |
| Encoding speed | Slow | Moderate | Fast | Fast |
Tips and Best Practices
- Use progressive enhancement — Always provide WebP or GIF fallbacks using
the
<picture>element for maximum compatibility. - Optimize quality settings — For most animations, a quality setting of 40–60 provides an excellent balance of visual quality and file size savings.
- Keep dimensions reasonable — AVIF encoding is CPU-intensive. Very large animated AVIF files can be slow to encode and decode. Keep dimensions under 1000px for animations when possible.
- Test on target browsers — While support is now widespread, always verify your animated AVIF files render correctly in your target browsers, especially Safari.
- Consider encoding speed — AVIF encoding is slower than GIF or WebP. For real-time or bulk workflows, consider using faster speed presets at the cost of slightly larger files.
- Use the right tool for the job — For quick one-off conversions, online tools like EZ AVIF or ezgif.com are convenient. For automation and batch processing, use ImageMagick or avifenc in scripts.
Useful Resources
- AVIF Specification — AV1 Image File Format (AVIF) specification by AOMedia.
- libavif on GitHub — github.com/AOMediaCodec/libavif — reference encoder/decoder library.
- Can I Use: AVIF — caniuse.com/avif — always up-to-date browser support data.
- ImageMagick AVIF Docs — imagemagick.org/script/formats.php — format support reference.
- Ezgif AVIF Tools — ezgif.com — online animated AVIF conversion and editing.
- Web.dev AVIF Guide — web.dev — Google's guide on using next-gen image formats.