MIME Type Lookup

Look up the MIME type for a file extension, and the extensions for a MIME type.

Telling systems what a file is

A MIME type is the label that tells a browser or server what kind of file something is — text/html, image/png, application/json — and it matters because systems rely on it, not the file extension, to decide how to handle a file. This looks up the MIME type for an extension and the extensions for a type, so you can set the right one when configuring a server or debugging a download.

Enter an extension or a MIME type to see the mapping.

When the MIME type is the bug

A surprising number of web problems come down to a wrong or missing MIME type. A file served as the wrong type can be downloaded instead of displayed, a font or script can be rejected by the browser, or a download can misbehave. When something loads incorrectly for no obvious reason, the Content-Type header the server is sending is well worth checking. Knowing the correct MIME type for a file is exactly what lets you configure a server to serve it properly.

Frequently asked questions

What is a MIME type?

A label like image/png or application/json that tells a browser or server what kind of file something is, so it handles it correctly.

Why would a wrong MIME type cause a bug?

Systems trust the type over the extension, so a wrong one can make a file download instead of display, or be rejected outright.

Is anything uploaded?

No. It is a reference that runs in your browser.

More Developer tools