MIME type lookup
Search by file extension or type to find the Content-Type header a server should send.
| Extension | MIME 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/javascriptstill works but is outdated. - Unknown binary files should be
application/octet-stream, which makes browsers download them. - Add
; charset=utf-8to 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:
.mjsand.js(JavaScript ES modules): Must be served astext/javascript(RFC 9239, supersedingapplication/javascript). If a server sendstext/plainwithX-Content-Type-Options: nosniff,<script type="module">fails with a strict MIME error..wasm(WebAssembly binaries): Must be served asapplication/wasmsoWebAssembly.instantiateStreaming()can compile the bytecode while downloading..woff2(Web Open Font Format 2): Must be served asfont/woff2(notapplication/octet-stream)..webmanifest(PWA manifest): Official IANA registration isapplication/manifest+json..avifand.webp(Modern images): Must be served asimage/avifandimage/webpso browser picture elements select the right source track without downloading fallback JPEGs..csv(Comma-separated values): Official RFC 4180 type istext/csv; charset=utf-8.
Limits and what this tool cannot do
- Extension lookup only (does not inspect binary file magic bytes): Typing
.pngorimage/pngsearches the IANA media-type table by name. It does not inspect a local file's first bytes to detect if a.jpgfile is actually a misnamed WebP image. - Does not send HTTP
HEADrequests to check a live URL's headers: To see whatContent-Typeheader 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.