AVIF ISOBMFF Minimum Container Overhead

The AV1 Image File Format (AVIF) encapsulates compressed image data inside the ISO Base Media File Format (ISOBMFF) container. While AVIF provides superior compression efficiency compared to older formats, the ISOBMFF architecture imposes a fixed structural cost. This article breaks down the minimum byte overhead required by the ISOBMFF structure in a standalone AVIF file, examines the mandatory boxes responsible for this footprint, and highlights the performance implications for ultra-small web assets.

The Minimum Overhead: 200 to 250 Bytes

In a fully compliant, minimally structured single-frame AVIF file, the ISOBMFF container introduces approximately 200 to 250 bytes of fixed overhead before accounting for any actual AV1 image bitstream data. Standard production encoders (such as libavif or cavif) typically produce container overhead closer to 250 to 350 bytes due to optional metadata, padding, and explicit color profile tags.

Breakdown of Required ISOBMFF Boxes

An AVIF image relies on the HEIF specification, which utilizes specific ISOBMFF structures called "boxes" (or atoms). Each box consists of a 4-byte size integer, a 4-byte four-character code (FourCC), and optional version/flags fields.

To construct the smallest possible valid AVIF file, the following boxes must be present:

Practical Implications for Small Images

Because the ISOBMFF structure requires over 200 bytes of mandatory metadata, AVIF exhibits diminishing returns for micro-assets such as 16x16 favicons, tiny icons, and low-quality image placeholders (LQIP).

For example, if an AV1-encoded 16x16 image frame consumes only 60 bytes of raw image data, the final .avif file will still measure around 280 to 320 bytes due to the container requirements. In such scenarios, alternative formats with lighter headers (such as WebP, which introduces an overhead of roughly 30 to 40 bytes via RIFF) can yield smaller overall file sizes despite having less efficient compression algorithms.