MIME Type Lookup
Look up MIME types by file extension (or vice versa). Includes common web/server types for Content-Type headers — offline, in-browser.
What is a MIME type?
A MIME type (also called a media type or Content-Type) is a label that tells a browser or server what kind of data a file contains. For example, text/html means an HTML page and image/webp means a WebP image. Every HTTP response includes a Content-Type header with the MIME type so the receiver knows how to handle the payload.
MIME type lookup
Use this tool to look up a MIME type by file extension, or find common file extensions for a given MIME type. Useful for server configs, CDNs, upload validation, and debugging incorrect Content-Type headers.
How to use
- Type a file extension (like webp or index.html) to see the matching MIME type(s).
- Or type a MIME type (like application/json) to see which file extensions map to it.
- Copy the result directly into your server or CDN config.
Common web MIME types
- text/html — HTML pages (.html, .htm)
- text/css — CSS stylesheets (.css)
- text/javascript — JavaScript files (.js, .mjs)
- application/json — JSON data (.json)
- image/svg+xml — SVG images (.svg)
- image/webp — WebP images (.webp)
- application/wasm — WebAssembly modules (.wasm)
- font/woff2 — Web fonts (.woff2)
When MIME types matter
- Server misconfiguration — browsers may refuse to execute scripts or render images served with a wrong Content-Type
- CDN and cache rules — many CDNs set cache headers based on MIME type
- File upload validation — APIs often accept or reject files based on their declared MIME type
- Cross-origin requests — CORS preflight behavior depends partly on Content-Type
Examples
- svg → image/svg+xml
- wasm → application/wasm
- application/json → .json