DevKits

image/*

image/avif

File extensions: .avif

Next-generation image format based on AV1 video encoding.

What is image/avif?

image/avif is the media type for AVIF — an image format based on the AV1 video codec. It typically produces files 50% smaller than JPEG at similar perceived quality, with full transparency and HDR support.

Typical usage

Photographs on modern sites where every byte matters, hero images.

Common gotchas

AVIF encoding is CPU-heavy. Pre-generate at build time rather than encoding on request. Older browsers (pre-2022) do not support it — provide WebP or JPEG fallbacks.

HTTP header example

Response header

Content-Type: image/avif

Frequently asked questions

What is the image/avif MIME type?

image/avif is the media type for AVIF — an image format based on the AV1 video codec. It typically produces files 50% smaller than JPEG at similar perceived quality, with full transparency and HDR support.

What file extension does image/avif use?

Files served as image/avif typically use the extension .avif. The most common is .avif.

How do I set the Content-Type for image/avif?

Send the HTTP response header Content-Type: image/avif. Photographs on modern sites where every byte matters, hero images.

Is image/avif an official MIME type?

Yes. image/avif is officially registered with IANA, so standards-conformant clients recognize it.

What are common mistakes with image/avif?

AVIF encoding is CPU-heavy. Pre-generate at build time rather than encoding on request. Older browsers (pre-2022) do not support it — provide WebP or JPEG fallbacks.

Related MIME types

Handle image/avif with these tools