MIME type checker

Type a file extension to get its MIME type, type a MIME type to get its extensions, or choose a file to detect its MIME type from the content. It all runs in your browser.

  • Free
  • No sign-up
  • Runs in your browser

Type an extension such as “png” to get its MIME type, or a MIME type such as “image/png” to get its extensions.

Detect the MIME type of a file from its content

or drop a file here

Runs in your browser — nothing you enter is sent to our servers.

How to use MIME Type Checker

  1. Type an extension, file name or MIME type, for example png, report.pdf or image/webp.
  2. Read the result. An extension gives a MIME type, and a MIME type gives its extensions. Use Copy to keep it.
  3. To check a real file, choose it in the second box. You get the type from its content, from its extension and from the browser.
  4. If the content and the extension disagree, a warning appears.

Features

  • Extension to MIME type lookup for about 100 common extensions
  • MIME type to extension lookup, ignoring parameters such as charset
  • Detects a file's MIME type from its first bytes, not from its name
  • Shows what the browser reports for the same file, for comparison
  • Warns when content and extension disagree

Supported formats and limits

  • Up to 1 files at once

Examples

InputResult
pngimage/png
image/jpeg.jpg .jpeg .jpe
report.pdfapplication/pdf

Limitations

  • The lookup table covers common types only. An extension that is not listed is not necessarily invalid.
  • One MIME type can have several extensions, and a few extensions are used for more than one format in practice.
  • Content detection reads only the first 64 KB and recognises well-known binary formats, plus text, JSON, XML, HTML and SVG.
  • The table is a practical list, not the complete IANA registry.

Learn more

A MIME type, also called a media type or content type, describes the format of data. It has a top-level type such as image, audio, video, text or application, then a slash and a subtype, for example image/png or application/json. Web servers send it in the Content-Type header, and browsers use it to decide how to show a response.

The official list is the IANA media types registry, and the syntax rules are defined in RFC 6838. Extensions are not part of the standard, which is why one type can have many extensions, such as image/jpeg for .jpg, .jpeg and .jpe.

Getting the type wrong causes real problems: a server that sends a script as text/plain may not run it, and a wrong type on a download can make the browser show raw data. When you are unsure about a file, compare its content-based type with its extension and set the Content-Type header to match.

Frequently asked questions

What is a MIME type?

It is a label such as image/png or application/pdf that tells a browser or server what kind of data a file contains. It has a type, a slash and a subtype.

What MIME type should I use when I do not know?

Use application/octet-stream, the generic type for arbitrary binary data.

Why does the browser report an empty or different type?

Browsers guess from the extension and the operating system's settings. If the extension is missing or unusual, the value can be empty. Detecting from the content is more reliable.

Is my file uploaded?

No. Only the first 64 KB is read, in your browser.

Sources

Last reviewed: September 30, 2026