📎Extension to MIME Type Lookup

Find a MIME type and Content-Type header by extension

MIME typeExtensionsKind

This page carries 66 types common on the web and nothing more. The IANA media types registry lists thousands, which cannot all be embedded here, so look up anything missing in the IANA media types registry itself. Extensions and types are not one to one: .xml is served as both application/xml and text/xml, and .ico appears as the registered image/vnd.microsoft.icon and the customary image/x-icon.

You Might Also Need

Finding the Content-Type that matches an extension

When a download opens as text, a font refuses to load or an image breaks, a wrong Content-Type header is usually behind it. Type an extension or part of a type name and you get the matching types with their extensions and purpose, plus a ready-to-paste header line and a copy button.

The scope here is 66 types that are common on the web. The IANA media types registry holds thousands of entries, which cannot fit on one page, so anything missing has to be looked up in the registry itself. As of October 2026 the standard type for JavaScript is text/javascript, and application/javascript is obsolete.

Extensions and types are not one to one. One extension can be served as several types, and one type can own several extensions. This tool does not sniff file contents to detect a type; it matches on names only. Your server configuration has the final say, so check the response headers of a real request.

Frequently Asked Questions

When should I add charset?

The charset parameter is defined for text types, so add it to text/html or text/css. JSON is fixed to UTF-8 and defines no such parameter, and binary types such as images and fonts take none either.

An extension maps to several types, so which one wins?

Pick by purpose. An .xml file meant for machines goes out as application/xml, while one treated as readable text goes out as text/xml. The extension alone does not settle it.

How do I find a type that is not listed here?

Look it up in the IANA media types registry. This page keeps only the 66 types common on the web rather than a copy of the whole registry.