Developer tools

MIME Type Lookup

MIME Type Lookup

Find the MIME type for a file extension, or the extensions for a MIME type.

About this tool

About MIME Type Lookup

Servers send a Content-Type with every file, and getting it wrong breaks things: a script served as text/plain is blocked, a font with the wrong type fails in some browsers, and an upload form that checks types rejects valid files. Type an extension such as .webp, .docx or .mjs to see its MIME type, or type a MIME type such as application/vnd.ms-excel to see every extension that uses it. The bundled table maps nearly 500 extensions to some 370 types across web files, images, audio, video, fonts, documents, office formats, archives, code and data, and marks the preferred type when an extension has more than one in use. You can also drop a file to check it: the tool shows the type implied by its extension, the type your browser reports, and the type detected from the file's first bytes for common formats like PDF, PNG, JPEG, ZIP and MP4, so you can spot a renamed file. Files are read locally and never uploaded.

Built and maintained by Abhi JainUpdated

How to Find a MIME Type

  1. 1

    Search

    Type an extension (pdf or .pdf) or a MIME type (image/avif) into the search box.

  2. 2

    Narrow down

    Filter by group, such as Images, Fonts or Documents, if you are browsing.

  3. 3

    Check a file

    Drop a file onto the drop zone to compare the type from its extension, the browser and its bytes.

MIME Type Lookup: questions and answers

What is a MIME type?

A MIME type, also called a media type or content type, is a label like text/html or image/png that tells software what kind of data a file contains. Web servers send it in the Content-Type header and browsers use it to decide how to handle the response.

What is the MIME type for JavaScript?

text/javascript is the current standard (RFC 9239) for .js and .mjs files. application/javascript still works but is obsolete.

What MIME type should I use for an unknown binary file?

application/octet-stream. It tells the browser the data is arbitrary binary, which normally triggers a download.

What is the MIME type of a .docx file?

application/vnd.openxmlformats-officedocument.wordprocessingml.document. Old .doc files use application/msword.

Can a file's extension lie about its type?

Yes. The extension is just part of the name. Dropping a file here reads its first bytes (its magic number) to detect common formats, so a PNG renamed to .jpg shows up as a mismatch.