Category: Image
image/avif
image/avif is the next-generation image codec derived from AV1 video frames. Delivers up to 50% better compression efficiency than JPEG with HDR and wide color gamut support.
MIME / CONTENT-TYPE
image/avif
ASSOCIATED EXTENSIONS
.avif
PRIMARY CATEGORY
Image
HTTP Headers & Web Server Configurations
Standard HTTP Response Header
Content-Type: image/avifSend this exact header in HTTP responses to instruct browsers how to decode and render the payload.
Node.js / Express / Web API
<picture>
<source srcset="hero.avif" type="image/avif">
<source srcset="hero.webp" type="image/webp">
<img src="hero.jpg" alt="Hero">
</picture>NGINX Configuration (mime.types)
types {
image/avif avif;
}Apache (.htaccess / httpd.conf)
AddType image/avif .avifSecurity Advisory & Hardening
Ensure Nginx and Apache mime.types mappings are updated to recognize `.avif` files to prevent browsers from downloading them as octet-stream.
Frequently Asked Questions
image/avif Questions & Answers
Common questions regarding MIME types, Content-Type headers, and web server configurations.
The standard HTTP response header is: "Content-Type: image/avif".