Skip to content
Convertto

MIME Type Lookup

Find the correct MIME type for any file extension, and vice versa.

To find a MIME type, enter a file extension such as .webp or a type such as image/webp. Sending the correct Content-Type header matters because browsers with nosniff enabled will refuse to execute or render a mislabelled file.

Runs in your browser
Privacy
Runs entirely in your browser — nothing is uploaded
Cost
Free, unlimited, no sign-up

Frequently asked questions

Why does the MIME type matter if the extension is right?

Because the browser trusts the Content-Type header over the extension. Serving JavaScript as text/plain means it will not execute, and serving an upload as text/html means it will — which is how file uploads become cross-site scripting.

What is application/octet-stream?

The generic "unknown binary" type. Browsers download rather than display it, which makes it a safe default for arbitrary files but wrong for anything you want rendered inline.

How to use the mime type lookup

  1. 1Enter or paste your extension or mime type.
  2. 2The result appears immediately — copy or download it.

Embed this tool

Put the working mime type lookup on your own site. It runs in your visitors' browsers exactly as it does here — free, no account, nothing uploaded.

Share this tool

Last updated

More developer tools