MIME type lookup

Search by file extension or type to find the Content-Type header a server should send.

ExtensionMIME type

This free MIME type reference works offline once loaded. All inputs and calculations run locally on your device without server uploads; details on browser processing and storage are set out in the privacy policy.

Why MIME types matter

Browsers decide what to do with a file from its Content-Type header, not its name. A wrong type makes a video download instead of playing, a stylesheet be ignored, or a font fail to load. With the X-Content-Type-Options: nosniff header, which most secure sites send, the browser will not guess, so the type must be right.

Common mistakes

  • JavaScript should be text/javascript; application/javascript still works but is outdated.
  • Unknown binary files should be application/octet-stream, which makes browsers download them.
  • Add ; charset=utf-8 to text types like HTML, CSS and JSON when your server does not.

Worked example: Configuring HTTP Content-Type headers for WOFF2, WASM, and JSON

Misconfigured Content-Type headers cause browsers to refuse to execute modules or decode fonts. Here are four extensions where legacy servers frequently send the wrong MIME type:

  • .mjs and .js (JavaScript ES modules): Must be served as text/javascript (RFC 9239, superseding application/javascript). If a server sends text/plain with X-Content-Type-Options: nosniff, <script type="module"> fails with a strict MIME error.
  • .wasm (WebAssembly binaries): Must be served as application/wasm so WebAssembly.instantiateStreaming() can compile the bytecode while downloading.
  • .woff2 (Web Open Font Format 2): Must be served as font/woff2 (not application/octet-stream).
  • .webmanifest (PWA manifest): Official IANA registration is application/manifest+json.
  • .avif and .webp (Modern images): Must be served as image/avif and image/webp so browser picture elements select the right source track without downloading fallback JPEGs.
  • .csv (Comma-separated values): Official RFC 4180 type is text/csv; charset=utf-8.

Limits and what this tool cannot do

  • Extension lookup only (does not inspect binary file magic bytes): Typing .png or image/png searches the IANA media-type table by name. It does not inspect a local file's first bytes to detect if a .jpg file is actually a misnamed WebP image.
  • Does not send HTTP HEAD requests to check a live URL's headers: To see what Content-Type header your server actually sends, open your browser's Developer Tools (F12 → Network tab), click the request, and inspect Response Headers.

Questions

What is the MIME type for JSON?

application/json.

What is the MIME type for .webp?

image/webp.

Why does my host serve .apk files wrong?

Add application/vnd.android.package-archive to the server’s MIME configuration.

What does 'application/octet-stream' mean?

application/octet-stream is the generic fallback MIME type for arbitrary binary data of unknown format. When a browser receives application/octet-stream (or Content-Disposition: attachment), it downloads the file to disk instead of trying to display it in the tab.

Why is text/javascript preferred over application/javascript now?

IETF RFC 9239 (published in 2022) officially obsoleted application/javascript and application/ecmascript in favor of text/javascript to match decades of real-world browser and HTML5 specification behavior.

Why do CSV uploads from Windows sometimes show 'application/vnd.ms-excel'?

When Microsoft Excel is installed on Windows, the Windows Registry often associates the .csv extension with application/vnd.ms-excel instead of the standard text/csv, so file-upload validators should accept both.

Last reviewed .

Related converters and guides