ImageBinary
image/avif
AVIF
Reference for image/avif, the AV1-based image format offering excellent compression, HDR, and wide color gamut support.
MIME Type Detector
Drop a file to detect its MIME type — no upload, runs in your browser
📄
Drop any file here or click to choose
Expected extensions: .avif
HTTP Content-Type Header
HTTP Header
Content-Type: image/avifAssociated File Extensions
.avif
Quick Facts
| MIME Type | image/avif |
| Category | Image |
| Type | Binary |
| Extensions | .avif |
Common Usage
AVIF provides significantly better compression than JPEG and WebP, especially at low bitrates. It supports HDR, wide color gamut, and transparency.
Supported by Chrome, Firefox, and Safari, AVIF is the most efficient modern image format for web delivery.
Code Examples
HTML
<!-- Link or embed with explicit type -->
<link rel="stylesheet" href="file.avif" type="image/avif">
<!-- Or for script/media elements -->
<script type="image/avif" src="file.avif"></script>Node.js
// Express.js
app.get('/file', (req, res) => {
res.type('image/avif');
res.send(data);
});
// Node.js http
res.writeHead(200, { 'Content-Type': 'image/avif' });nginx
# nginx.conf — add to types block or use default
types {
image/avif avif;
}
# Or set for a specific location
location /api/ {
default_type image/avif;
}Related MIME Types
More Image MIME Types
Other image types in the Image family
Related Tools
Explore More MIME Types
Browse our complete reference of 185 MIME types with usage examples, HTTP headers, and code snippets.