Look up the right Content-Type fast
A MIME type (media type) is the label that tells a browser or server what
kind of data a file holds — image/png, application/json, video/mp4, and so
on. Sending the correct Content-Type header matters: get it wrong and browsers
may refuse to run scripts, fail to render images, or download files you wanted
displayed. This tool maps common file extensions to their registered MIME types
so you can copy the exact value you need.
How it works
Each entry pairs a file extension with the MIME type that the IANA media-types
registry assigns to it, alongside the value web servers and browsers use in
practice. A MIME type has two parts: a top-level type such as text,
image, audio, video, or application, and a subtype such as html,
png, or json. The search matches your query against the extension, the full
MIME type, and the description, so you can look up by any of them.
Tips and notes
Use application/octet-stream as the safe default for arbitrary binary data —
it tells the browser to download rather than guess. Modern Office formats
(.docx, .xlsx, .pptx) use long OpenXML types that differ from their legacy
counterparts (.doc, .xls, .ppt). JavaScript should be served as
text/javascript, and fonts use the font/* family (font/woff2,
font/ttf). When configuring a server, set the Content-Type header to the
value shown here. All lookups run locally in your browser.