Skip to content

MIME Type Lookup

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

Runs in your browserNo account neededFree
Loading tool…

Processing: This tool runs entirely in your browser. Your input and any file you open stay on your device — nothing is uploaded to a server.

How to use the mime type lookup

  1. Type an extension, a MIME type or a format name.
  2. Read the matching rows.
  3. Copy the type you need for a header or a config file.

About this tool

A MIME type tells software what a file is, independently of its name. The browser uses it to decide whether to render, download or refuse a response, which is why a JSON API served as text/plain behaves oddly and a font served with the wrong type may be rejected outright.

The extension is only a hint. Renaming a file changes nothing about its contents, so anything accepting uploads should determine the type by inspecting the bytes rather than trusting the name or the declared Content-Type. Treating a user-supplied type as fact is a well-worn route to an upload vulnerability.

Common uses

  • Setting the right Content-Type on a response.
  • Configuring a server or upload filter.
  • Identifying what a type refers to.

Frequently asked questions

Can I trust a file's extension?
No. It is metadata anyone can change. Check the file's actual contents before acting on it.
Why is JavaScript sometimes application/javascript?
Both existed for years. text/javascript is now the standard, and both are widely accepted.

Related tools