The main image MIME types are image/jpeg for .jpg and .jpeg files, image/png for PNG, image/webp for WebP, image/avif for AVIF, image/gif for GIF, image/svg+xml for SVG and image/heic or image/heif for HEIC and HEIF photos. Every type in the table below was checked against the IANA media types registry and the MDN image format guide on 23 November 2026.
Common image MIME types
| Format | MIME type | File endings (MDN) | Registered with IANA | Reference listed by IANA |
|---|---|---|---|---|
| JPEG | image/jpeg | .jpg, .jpeg, .jfif, .pjpeg, .pjp (also .jpe, .jif) | Yes | RFC 2045, RFC 2046 |
| PNG | image/png | .png | Yes | W3C PNG Working Group |
| APNG (animated PNG) | image/apng | .apng, .png | Yes | W3C PNG Working Group |
| WebP | image/webp | .webp | Yes | RFC 9649 |
| AVIF | image/avif | .avif | Yes | Alliance for Open Media |
| GIF | image/gif | .gif | Yes | RFC 2045, RFC 2046 |
| SVG | image/svg+xml | .svg | Yes | W3C |
| JPEG XL | image/jxl | .jxl | Yes | ISO/IEC JTC 1/SC 29/WG 1 |
| BMP | image/bmp | .bmp | Yes | RFC 7903 |
| TIFF | image/tiff | .tif, .tiff | Yes | RFC 3302 |
| ICO (icons) | image/x-icon in MDN; image/vnd.microsoft.icon in IANA | .ico, .cur | Only as image/vnd.microsoft.icon | IANA registration by Simon Butcher |
MDN lists the JPEG endings in two places with slightly different sets, so both are shown above. The format and the MIME type are the same whichever ending a JPEG file uses; our guide to JPEG vs JPG explains why there are several.
Image types for photos from phones and specialist formats
| Format | MIME type | Notes |
|---|---|---|
| HEIC (single image) | image/heic | Registered by ISO/IEC JTC 1 |
| HEIC sequence | image/heic-sequence | Image sequences in HEIC |
| HEIF (single image) | image/heif | The wider HEIF container that HEIC belongs to |
| HEIF sequence | image/heif-sequence | Image sequences in the HEIF container |
| JPEG 2000 | image/jp2 | Registered with RFC 3745; not shown in MDN browser tables |
None of the HEIC or HEIF types appear in the MDN browser support tables, so do not rely on them for images shown on a web page. Convert them first with HEIC to JPG or HEIC to WebP.
Which image types browsers show
MDN lists APNG, AVIF, GIF, JPEG, PNG, SVG and WebP as supported by Chrome, Edge, Firefox, Opera and Safari, and JPEG XL as supported by Chrome, Edge, Firefox and Safari. It advises giving AVIF and JPEG XL a fallback with the picture element. In the same guide, BMP and ICO show in all the major browsers, while TIFF is listed for Safari only.
Using image MIME types in an upload form
The HTML file input takes an accept attribute. MDN says it can contain file endings that start with a period, full MIME types, or the wildcard image/*, separated by commas. A form for profile photos might use:
<input type="file" accept="image/jpeg,image/png,image/webp,.jpg,.jpeg,.png,.webp">
Listing both the MIME type and the endings helps when a device reports a type the form does not expect. MDN also warns that accept is only a hint to the file picker and does not validate the files, so the server must still check every upload.
Common mistakes
- image/jpg is not a registered type. IANA lists only image/jpeg, so use that in code and server settings.
- image/svg without +xml is not registered either; SVG is image/svg+xml.
- image/x-icon vs image/vnd.microsoft.icon: MDN uses the first and IANA registers the second, so accept both when checking icon uploads.
- image/heic for websites: registered, but not in the MDN browser tables, so serve JPG, WebP or AVIF to visitors.
Sources and dates
| Page | Checked | Used for |
|---|---|---|
| IANA media types registry: image (CSV export) | 23 November 2026 | Which image types are registered and the reference for each |
| MDN: image file type and format guide | 23 November 2026 | File endings, browser support, image/x-icon |
| MDN: the accept attribute | 23 November 2026 | Accepted specifier forms and the warning about validation |
Frequently asked questions
What is the MIME type for JPG?
image/jpeg. It covers both .jpg and .jpeg files. image/jpg is not registered with IANA, so avoid it in code and server settings.
What is the MIME type for PNG?
image/png. Animated PNG files have their own registered type, image/apng, although MDN notes they can also use the .png ending.
What is the MIME type for WebP?
image/webp, registered with IANA through RFC 9649. The file ending is .webp.
What is the MIME type for HEIC photos?
image/heic for a single image and image/heic-sequence for an image sequence, both registered by ISO/IEC JTC 1. The wider container uses image/heif.
What is the MIME type for an ICO favicon?
IANA registers image/vnd.microsoft.icon, while MDN lists image/x-icon. Accept both when checking icon uploads, because either label can be reported.