1. All tools
  2. MIME types

What MIME type does this file use?

Type an extension or a media type — .png, application/json, font — and the table narrows to the rows that match, each showing the extension, its MIME type and the broad group it belongs to. The whole list is part of the page, so it answers instantly and works with no network at all.

Runs entirely in your browser · nothing is sent · no account

  1. Type a file extension such as .webp, or a media type such as image/.
  2. Narrow the list to one group — image, audio, text — if you want.
  3. Click a row to copy its MIME type.

ExtensionMIME typeGroup

What this page can do

  • Find the MIME type for a file extension, from .pdf to .woff2
  • Go the other way — type a media type and see which extensions use it
  • Filter to one group: image, audio, video, text, application or font
  • Click any row to copy the MIME type to the clipboard
  • Answer instantly with no network, so it works offline and inside a locked-down network

When to use this page

  • You are writing an accept attribute, a Content-Type header or an upload allow-list.
  • An upload was rejected and you want to check the media type the browser sends for that extension.
  • You are mapping file types to icons or handlers and need the correct string, not a guess.

When to use something else

  • You need the full registry, including vendor and experimental types — see the IANA and MDN references.
  • You want to convert a file to another format — an image or document converter does that.
  • You are checking whether a MIME type is safe to serve — the Content-Type header, not this list, decides that.

How it compares with other options

The IANA media types registry and MDN both list more than any single page, and they are the authority to check when something looks wrong here. What they are not is fast: finding one extension usually means searching a long document. This page trades completeness for speed, keeps every row short enough to scan, and works with no connection, which matters when you are debugging a server whose network is already down.

Where your lookups go

Nowhere. The list ships with the page and the search runs in your browser, so the words you type are never sent anywhere — there is no lookup service behind this page. You can check it yourself: open your browser’s network panel, type in the box, and watch that no request leaves the page.

Questions about this tool

What is a MIME type?

A MIME type — also called a media type or content type — is a two-part label such as image/png or application/json. The part before the slash is the broad category; the part after names the exact format. Servers send it in a Content-Type header so the browser knows whether to display, play or download the thing it just received. Get it wrong and a PNG may download as a file instead of showing, or a stylesheet may be ignored.

What is the difference between text/plain and application/octet-stream?

text/plain says the bytes are readable text in no particular format — safe to show in the browser. application/octet-stream means an unknown stream of bytes, so the browser downloads it rather than trying to display it. When a server does not know a file’s format, it falls back to application/octet-stream, which is why an unfamiliar extension often downloads instead of opening.

Should I use text/javascript or application/javascript?

Use text/javascript. The older application/javascript still works everywhere and nobody breaks, but the IANA registry and the HTML standard settled on text/javascript, and that is what servers and bundlers emit today. The same idea applies to text/css: it replaced the early application/x-css.

Why does charset matter?

For text types, the optional charset parameter names the encoding — text/html; charset=utf-8. Without it the browser guesses, and for a language outside Latin-1 the guess is often wrong, so accents and non-Latin scripts turn into mojibake. Send charset=utf-8 for text and JSON, and leave it off binary types such as image/png, where it is meaningless.

Is this list complete?

It covers the media types you actually meet in headers, upload forms and file inputs. The official registry at IANA also lists application-specific, vendor and experimental types — video/x-ms-wmv and chemical/x-pdb, to name two — that you will rarely need. For anything not here, check the IANA media types registry or the MDN list, which track the standard more closely.

Other tools you may need