MIME type lookup

Type an extension like png or a file name like report.docx to get its MIME type for Content-Type headers, uploads and HTML attributes. You can also search by type, such as image or application/json. Copy the type with one click.

1 / 68

  • image/png

    .png PNG image

Runs in your browser: nothing you enter is sent anywhere.

How to use it

  1. Type an extension (png, .pdf), a whole file name (report.final.docx) or part of a type (image/, font).
  2. Matches are listed with the type, the extensions and a short name. An exact extension match comes first.
  3. Use Copy type to put the MIME type on your clipboard.

How it works

The extension is taken from the text after the last dot and compared with the table, ignoring case. The same text is also matched against the type and the format name, so searching video lists all video formats.

Example

Searching docx gives application/vnd.openxmlformats-officedocument.wordprocessingml.document. In an HTML file input you can then limit uploads with accept="application/vnd.openxmlformats-officedocument.wordprocessingml.document" or simply accept=".docx".

Tips

An extension is only a hint. A server should send the type that matches the real content, and for user uploads you should check the content, not just the file name. Add X-Content-Type-Options: nosniff so browsers do not guess a different type.

Frequently asked questions

What is a MIME type?

A MIME type, also called a media type or content type, names a format in the form type/subtype, for example image/png or text/html. Servers send it in the Content-Type header so the browser knows how to treat a file, and upload forms and APIs use it to describe a file.

Which MIME type should I use for JavaScript?

text/javascript. The standard (RFC 9239) made it the official type and marked application/javascript and others obsolete, although old servers may still send them.

What does application/octet-stream mean?

It means arbitrary binary data with no known format. Browsers usually download such a file instead of showing it. Servers send it when they do not know the real type.

Why are some types marked as not in the IANA registry?

Types starting with x-, such as application/x-tar, were never registered with IANA but are widely used. They work in practice, but a registered alternative is preferred when one exists.

Is this list complete?

No. It holds the formats met most often on the web. The full list is the IANA media types registry, which has well over a thousand entries, many of them vendor formats.

More in Developer

All tools in this category: Developer ·Updated November 3, 2026

Privacy choices

Google Analytics shows us which tools are used and whether they work. It may set cookies. Your choice is kept in this browser.