Converters

MIME Type Checker

Look up MIME type by file extension, or find extensions for a given MIME type.

About MIME Type

Looks up the MIME type associated with a file extension, or works in reverse to find which extensions correspond to a given MIME type. Getting a MIME type wrong in server config or an application's Content-Type header can cause a browser to render a file incorrectly, refuse to display it inline when it should, or trigger a download prompt for content meant to display directly. Useful when configuring a web server's MIME type mappings for an uncommon file extension.

Some browsers will still "sniff" the actual file content and override an incorrect declared MIME type as a compatibility fallback — but this is inconsistent across browsers, exactly the kind of inconsistency a correct Content-Type header avoids relying on.

📖 Read more in our Knowledge Base →

Types worth getting right

ExtensionMIME type
.htmltext/html
.csstext/css
.js, .mjstext/javascript (the standard type since RFC 9239; application/javascript is obsolete but still works)
.jsonapplication/json
.svgimage/svg+xml
.webpimage/webp
.woff2font/woff2
.wasmapplication/wasm
.webmanifestapplication/manifest+json
.pdfapplication/pdf

Why a wrong type breaks things

  • With the X-Content-Type-Options: nosniff header, browsers refuse to run a script or apply a stylesheet served with the wrong type. JavaScript served as text/plain simply doesn't load.
  • WebAssembly.instantiateStreaming() requires application/wasm.
  • Whether a file opens in the browser or downloads depends on its type and on the Content-Disposition header.
  • For text types, add a charset: text/html; charset=utf-8. A missing or wrong charset is a classic cause of garbled characters.

Set it on the server and check it

  • nginx: add the mapping in a types { } block, for example types { application/wasm wasm; }, or in mime.types.
  • Apache: AddType application/wasm .wasm
  • Check what is actually served: curl -sI https://example.com/app.wasm | grep -i content-type, or use the HTTP headers checker.