.AVIF AV1 Image File Format
.avif

AV1 Image File Format

Convert AVIF images to JPG, PNG, or WebP directly in your browser — no upload, no server, no quality loss beyond the format transition. FileDex decodes AV1 locally and re-encodes to your chosen format in seconds, keeping your images private.

بنية الصيغة
Header signature
Meta dimensions · color
Pixels image data
AV1 CompressionRoyalty-Free10/12-bit HDRISO BMFF2019
بواسطة FileDex
غير قابل للتحويل

This format is not currently supported for conversion in FileDex.

أسئلة شائعة

Is AVIF better than WebP for web images?

AVIF achieves 20-30% smaller files than WebP at equivalent visual quality and supports 10/12-bit HDR, wide color gamut, and film grain synthesis. The trade-off is slower encoding speed and slightly less browser support. For most web use cases, AVIF is the better choice when browser coverage is acceptable.

Why are AVIF files slow to encode compared to JPEG?

AV1 encoding uses advanced prediction, transform selection, and rate-distortion optimization that require significantly more computation than JPEG DCT. A typical 12-megapixel image takes 2-10 seconds to encode in AVIF at medium speed versus milliseconds for JPEG. Hardware AV1 encoders are emerging to address this.

Can I use AVIF on my website right now?

Yes. Chrome, Firefox, Safari 16+, and Edge all support AVIF. Use the HTML picture element with AVIF as the preferred source and JPEG/WebP as fallbacks: the browser automatically selects the best supported format. CDNs like Cloudflare and Fastly can serve AVIF automatically via content negotiation.

Does AVIF support transparency and animation?

Yes. AVIF supports full alpha channel transparency in both lossy and lossless modes, plus animation via AVIF sequences (avis brand). Animated AVIF produces significantly smaller files than animated GIF or WebP with better color depth and quality.

Is AVIF royalty-free?

Yes. AVIF uses the AV1 codec developed by the Alliance for Open Media under a royalty-free patent license. Unlike HEIC (which requires HEVC licensing from MPEG LA), AVIF can be used freely in open-source and commercial projects without patent fees.

ما يميز .AVIF

What is an AVIF file?

AVIF (AV1 Image File Format) is a royalty-free image format ratified in 2019 by the Alliance for Open Media. It uses the AV1 video codec in intra-frame mode for image compression, stored within an ISO BMFF (HEIF) container. AVIF achieves approximately 50% smaller file sizes than JPEG and 20-30% smaller than WebP at equivalent visual quality.

اكتشف التفاصيل التقنية

How to open AVIF files

  • Chrome 85+ (2020) — Native support
  • Firefox 93+ (2021) — Native support
  • Safari 16+ (2022) — Native support
  • Windows 10/11 — Install AV1 Video Extensions from Microsoft Store
  • Adobe Photoshop 2022+ — Native support
  • GIMP 2.10.32+ — Native support via libavif

Technical specifications

Property Value
Compression AV1 intra-frame (lossy and lossless)
Bit Depth 8-bit, 10-bit, 12-bit
Color Spaces sRGB, Display P3, Rec. 2020, HDR10, PQ, HLG
Transparency Full alpha channel support
Animation Supported (AVIS sequences)
Container ISO BMFF (HEIF variant)
Max Dimensions 65,536 x 65,536 pixels (AV1 level 6.3)
Licensing Royalty-free (AOM patent license)

Common use cases

  • Web delivery: Best-in-class compression for images served via CDN with picture element fallbacks
  • HDR photography: Native 10/12-bit depth with PQ and HLG transfer functions
  • App assets: Smaller image bundles for mobile and progressive web applications
  • Archival: Lossless mode provides efficient long-term storage with modern compression

المرجع التقني

نوع MIME
image/avif
المطوّر
Alliance for Open Media
سنة التقديم
2019
معيار مفتوح
نعم — عرض المواصفات

البنية الثنائية

AVIF uses the ISO Base Media File Format (ISOBMFF / ISO 14496-12) container, the same box-based structure as MP4, MOV, and HEIC. The file opens with an ftyp box declaring the 'avif' brand. Image data is stored as AV1 intra-frame (keyframe-only) bitstream in the mdat box. The meta box contains iloc (item location), iprp (item properties including color profile and codec configuration), and pitm (primary item) boxes. AVIF sequence files use the 'avis' brand and contain a moov box with track structure for animated content.

OffsetLengthFieldExampleDescription
0x00 4 bytes Box size 00 00 00 1C Size of the ftyp box in bytes (big-endian uint32). Typically 28 bytes for AVIF.
0x04 4 bytes Box type 66 74 79 70 ASCII 'ftyp' — file type box, always the first box in ISOBMFF files.
0x08 4 bytes Major brand 61 76 69 66 ASCII 'avif' for still image, 'avis' for image sequence/animation.
0x0C 4 bytes Minor version 00 00 00 00 Version of the brand specification. Typically 0.
0x10 variable Compatible brands 61 76 69 66 6D 69 66 31 List of compatible brands (avif, mif1, miaf) for reader compatibility detection.
variable variable meta box 6D 65 74 61 Contains pitm (primary item), iloc (item locations), iprp (item properties with av1C codec config), and optional iref (item references).
variable variable mdat box 6D 64 61 74 Media data box containing AV1 intra-frame compressed image bitstream.
2015Alliance for Open Media (AOM) founded by Google, Mozilla, Cisco, Microsoft, Netflix, Amazon, and Intel2018AV1 video codec specification finalized (v1.0), forming the compression basis for AVIF2019AVIF specification published as part of HEIF (ISO/IEC 23000-22) using AV1 as the image codec2020Chrome 85 adds AVIF support; Netflix publishes research showing AVIF superiority over JPEG and WebP2022Firefox 93 and Safari 16 add AVIF support, completing major browser coverage2023AVIF adoption grows on CDNs including Cloudflare, Fastly, and Akamai for automatic image optimization
Convert AVIF to JPG with avifdec أخرى
avifdec input.avif output.jpg -q 90

Uses the avifdec CLI from libavif to decode AVIF and encode to JPEG. Part of the libavif tools package. The -q flag controls JPEG output quality.

Encode image to AVIF with avifenc أخرى
avifenc -s 6 -j 4 --min 20 --max 35 input.png output.avif

Encodes to AVIF using AV1. -s 6 sets encoding speed (0=slowest/best, 10=fastest). -j 4 uses 4 threads. --min/--max set quantizer range (lower = higher quality). Part of the libavif tools package.

Convert AVIF to PNG with ImageMagick imagemagick
magick input.avif output.png

Decodes AVIF via libavif delegate and encodes to lossless PNG. Preserves all decoded pixel data. Requires ImageMagick compiled with AVIF delegate support.

Inspect AVIF file properties ffprobe
ffprobe -v error -show_entries stream=width,height,pix_fmt,color_range,color_space -of json input.avif

Reports AVIF dimensions, pixel format (yuv420p10le for 10-bit), color range, and color space without full image decode.

AVIF JPG transcode lossy JPEG provides universal compatibility across all devices, email clients, and legacy applications. Required when sharing images with systems that do not support AVIF, or for print workflows that accept only JPEG input.
AVIF PNG transcode lossless PNG lossless compression preserves decoded AVIF pixel data exactly. Ideal for archival, further editing in raster editors, or when the destination requires lossless input.
AVIF WEBP transcode lossy WebP offers broader compatibility than AVIF in legacy browsers and applications while still providing better compression than JPEG. Acts as a fallback format in picture element srcset chains.
منخفض

نقاط الضعف

  • AV1 decoder heap overflow — crafted AV1 bitstream can trigger memory corruption in decoder implementations (dav1d, libaom)
  • ISOBMFF box parsing integer overflow — deeply nested or oversized boxes can cause allocation errors in container parsers
  • Color profile injection — malicious ICC profile embedded in AVIF can exploit ICC parser vulnerabilities in downstream applications

الحماية: FileDex decodes AVIF in the browser sandbox via the native Canvas API. Browser AV1 decoders (dav1d in Chrome/Firefox) receive regular security patches. No server upload occurs.

libavif مكتبة
Reference AVIF codec library with avifenc/avifdec CLI tools
dav1d مكتبة
High-performance AV1 decoder by VideoLAN, used by Chrome, Firefox, and libavif
rav1e مكتبة
Rust-based AV1 encoder focused on speed and safety
aom مكتبة
AOM reference AV1 encoder/decoder (libaom), used for high-quality encoding
sharp مكتبة
High-performance Node.js image processing with AVIF support via libvips
Squoosh خدمة
Google's browser-based image optimizer with AVIF encoding via WASM