MIME Type Lookup
Maps file extensions to Content-Type values and back, with notes on the ones people get wrong.
Loading the tool…
How to use this tool
- Type extensions, media types, or a mix of both.
- Select Look up.
- Read the note column — several of these types are commonly served wrongly, and the note says how.
- Set the type in the Content-Type header, not just on the filename. The header is the part the browser obeys.
What mime type lookup does
Search by extension or by media type, several at once, in either direction. The notes are the reason to use this rather than a bare list: JSON takes no charset parameter, CSV usually needs one, SVG is XML that can carry script and should never be served unsanitised from a user upload, and Parquet is registered but still commonly served as octet-stream.
What the browser obeys is the Content-Type header, not the file extension. That is the whole explanation for a correctly named .csv that downloads as a text file, or a stylesheet the browser silently refuses to apply — the name on disk was right and the header was wrong. Unknown types fall back to application/octet-stream, which is what makes a browser offer a download.