J-Kit
Português

image mime types web webp avif

MIME types for modern image formats

With the proliferation of modern image formats like WebP, AVIF and HEIC, setting the correct Content-Type on the server has become even more important. This page documents the official MIME types for each format and how to add them to your server.

Modern formats and support

  • WebP (image/webp): universal support in modern browsers, ~30% smaller than JPEG. AVIF (image/avif): better compression than WebP, growing support. SVG (image/svg+xml): vector, scalable, plain text. HEIC (image/heic): Apple format, limited web support.

Format table

WebP

Input
.webp
Expected output
image/webp

Supported in Chrome, Firefox, Safari 14+, Edge.

AVIF

Input
.avif
Expected output
image/avif

Chrome 85+, Firefox 93+, Safari 16.4+.

Full tool FAQ

A MIME type (or media type) is a two-part identifier — type/subtype — that tells the receiver what format a piece of data is in. Originally created for email (Multipurpose Internet Mail Extensions, RFC 2045), it is now ubiquitous in HTTP, where the Content-Type header defines how the browser interprets content.

Frequently asked questions

Should SVG use image/svg+xml or text/xml?

Always use image/svg+xml, which is the official IANA MIME type for SVG. Using text/xml may prevent the browser from treating the SVG as an image in <img> tags and CSS background-image properties.

Does this page replace official or professional review?

No. It helps explain the scenario and use the tool more safely, but real decisions should consider official sources, full context and qualified guidance when needed.