MIME Type Lookup

MIME Type Lookup

Search by file extension (e.g. pdf) or MIME type (e.g. application/json). All data is embedded — no network request needed.

About the MIME Type Lookup

A MIME type (or media type) such as application/json or image/webp tells browsers, servers and email clients what kind of data they are dealing with. It travels in the Content-Type header and decides whether a browser displays a file, downloads it or refuses to run it.

This reference lets you search common MIME types by file extension (pdf, svg, woff2) or by type (application/json), and filter by category: text, image, audio and video, documents and other. The data is built into the page, so results appear instantly.

Common uses

  • Setting the correct Content-Type for an API response or file download.
  • Configuring a web server or CDN to serve new file types such as .webp, .avif or .wasm.
  • Restricting accepted file types in an upload form (accept attribute) or in server-side validation.
  • Debugging files that download instead of displaying, or vice versa.

How to use it

  1. Type an extension or MIME type into the search box.
  2. Optionally filter by category.
  3. Copy the MIME type or extension you need.

Example

Searching by extension:

Input
woff2
Output
font/woff2  —  .woff2  (Web Open Font Format 2)

Tips and common pitfalls

  • Add X-Content-Type-Options: nosniff so browsers trust your declared types instead of guessing — guessing can turn uploaded files into scripts.
  • For text types, include the character set: text/html; charset=utf-8.
  • Use application/octet-stream with Content-Disposition: attachment to force a download for unknown binary files.
  • Never trust the MIME type a user's browser sends with an upload. Check the file's actual contents on the server.

Frequently asked questions

What is the difference between a MIME type and a file extension?

The extension is part of a file name and can be anything; the MIME type is the label sent with the data. Servers usually map extensions to MIME types, but the two can disagree.

Which MIME type should a JSON API return?

application/json. Older types such as text/json are not standard.

Why is JavaScript text/javascript?

The current standard (RFC 9239) made text/javascript the official type, replacing application/javascript.

What does the x- prefix mean?

Types such as application/x-zip-compressed were unregistered or experimental. Many have since been registered under standard names.

Related