AV1 Image File Format (.avif)

ISO/IEC Tiêu chuẩn

AVIF is a next-generation open image format derived from the AV1 video codec, delivering cutting-edge compression efficiency, high dynamic range (HDR), and wide color gamuts.

Chuyển đổi AVIF sang JPG

Trình chuyển đổi từ AVIF sang JPG miễn phí trên trình duyệt. Chuyển đổi tệp ngay lập tức trên thiết bị của bạn.

Nén AVIF trực tuyến

Nén riêng tư 100% trong trình duyệt – tệp không bao giờ rời khỏi thiết bị của bạn

Kiểm tra & Siêu dữ liệu

Các hệ điều hành và trình phân tích tệp nhận dạng tệp AVIF bằng cách kiểm tra chuỗi byte nhị phân đầu tệp:

Chọn hoặc kéo tệp

Chọn hoặc thả tệp vào đây

Chuyển đổi 100% riêng tư trong trình duyệt - tệp không bao giờ rời khỏi thiết bị của bạn

hoặc dán Ctrl+V
Cam kết bảo mật không truyền tải qua mạng: 0 byte được tải lên máy chủ bên ngoài. Toàn bộ quá trình xử lý diễn ra cục bộ trong hộp cát trình duyệt của bạn.

Chữ ký tiêu đề ở cấp độ Byte (Magic Bytes)

Các hệ điều hành và trình phân tích tệp nhận dạng tệp AVIF bằng cách kiểm tra chuỗi byte nhị phân đầu tệp:

CHỮ KÝ HEX (OFFSET 4):

66 74 79 70 61 76 69 66

BIỂU DIỄN ASCII: ftypavif

Tiêu chuẩn hóa: ISO/IEC 23000-22 (MIAF) / AOMedia Specification

Thông số kỹ thuật

Kiến trúc ContainerISO Base Media File Format (ISOBMFF / MP4 container architecture)
NénAV1 intra-frame video compression with directional spatial prediction & tile divisions
Thứ tự byte EndiannessBig-Endian for ISOBMFF atom/box sizes and fourCC codes
Không gian màuBT.2020, DCI-P3, sRGB, Full ICC Profiles, NCLX Color Primaries
Kênh & Cấu trúcMonochrome, YUV 4:2:0, 4:2:2, 4:4:4, and auxiliary Alpha channel
Kích thước tối đa65,536 x 65,536 pixels per grid tile (unlimited via multi-tile composition)
Độ trong suốtFull 8, 10, or 12-bit alpha transparency channel
Truyền phát & Tăng dầnProgressive rendering supported via multi-layer spatial tiling

Ma trận so sánh kỹ thuật: AVIF so với các đối thủ

Thuộc tính kỹ thuậtAVIF (Hiện tại)WebPJPEGJPEG XL
Compression EfficiencyHighest compression efficiency for photographic imageryGood (25%-35% over JPEG)Baseline standardHigh efficiency + lossless focus
Color Depth & HDR8, 10, 12-bit native HDR & BT.2020 color gamut8-bit sRGB only8-bit standardUp to 32-bit floating point HDR
Encoding SpeedSlow / CPU-heavy (requires sophisticated AV1 heuristics)Fast to moderateExtremely fastModerate to fast
LicensingRoyalty-free Open Source (AOMedia)Royalty-free (Google)Free standardRoyalty-free (ISO)
Browser Support93%+ modern browsers (Chrome, Firefox, Safari, Edge)97%+100%Experimental in Chromium

Các chế độ hỏng hóc phổ biến & Hướng dẫn khôi phục Hex

⚠️ AVIF file fails to render with error 'Invalid ISOBMFF container'.

Nguyên nhân gốc rễ: Missing or malformed 'ftyp' box or missing 'avif' brand identifier at offset 0x04.

Khắc phục: Inspect file with MP4Box or hex editor to ensure bytes 4-11 contain 'ftypavif' or compatible brand 'mif1'.

Phân tích bảo mật & Các vectơ tấn công bộ phân tích cú pháp

AVIF relies on complex AV1 video bitstream decoders (dav1d / libaom). Secure implementations isolate decoders in restricted sandboxes.

Các Véc-tơ Tấn công Đã biết

  • Complex bitstream parsing exploits in AV1 arithmetic coding or film grain synthesis logic.
  • Out-of-memory denial-of-service via huge multi-tile grid declarations.

Thực tiễn Tốt nhất về Phòng thủ: Use modern sandboxed Rust decoders (ravif) or updated libavif with dav1d.

Nguồn gốc lịch sử & Các cột mốc

2024Apple iOS 16 and macOS Ventura complete native system-wide AVIF adoption.
2020Google Chrome 85 ships default native AVIF decoding support.
2019Alliance for Open Media (AOMedia) finalizes AVIF 1.0.0 specification.

Ưu điểm & Lợi ích chính

  • Industry-leading lossy compression efficiency (up to 50% smaller than JPEG and 20% smaller than WebP).
  • Native 10-bit and 12-bit High Dynamic Range (HDR) and Wide Color Gamut (WCG) support.
  • Backed by major tech giants (Google, Apple, Microsoft, Netflix, Mozilla) with zero royalty fees.

Hạn chế & Nhược điểm kỹ thuật

  • Encoding is significantly more CPU-intensive and slower than JPEG or WebP.
  • Requires modern hardware or updated operating systems for hardware-accelerated decode.
  • Lossless mode is generally less efficient than PNG or WebP lossless for simple UI graphics.

Thông tin kỹ thuật thú vị

  • AVIF is packaged inside the exact same ISOBMFF container structure used by MP4 video files.
  • Netflix uses AVIF for their global catalog UI thumbnails, saving terabytes of daily network bandwidth.
  • AVIF supports film grain synthesis, artificially generating pleasing texture without storing heavy high-frequency noise.

Các câu hỏi kỹ thuật thường gặp

Is AVIF better than WebP?

For photographic images, AVIF offers substantially better compression than WebP (often 20% smaller at identical quality) and supports 10-bit and 12-bit HDR color. However, AVIF takes longer to encode than WebP.

Why does AVIF take longer to encode?

AVIF uses the AV1 video codec's intra-frame compression algorithms, which evaluate thousands of spatial prediction angles, transform block sizes (from 4x4 to 64x64), and loop filters to find the mathematically optimal compression.

Can AVIF replace JPEG for everyday web images?

Yes. All major web browsers (Chrome, Safari, Firefox, Edge) now support AVIF natively. Using AVIF with HTML5 '<picture>' fallbacks is an industry best practice.