MIME Types (Reference)
Searchable MIME type table — search by extension (.json, .pdf) or MIME (application/json, image/png). Includes common formats for web, audio, video, fonts and documents. Everything in your browser.
—
| Extensão | MIME |
|---|
The right Content-Type for each extension
The browser downloads a file instead of displaying it, a stylesheet gets ignored with a MIME warning, or an upload is rejected because the Content-Type does not match: the cause is almost always a wrong MIME type in server config or code. This table gathers 70 common formats, from documents and images to audio, video, fonts and packages, and filters as you type, by extension (.json) or by part of the MIME string (application/json).
On the web the Content-Type header wins, not the file extension: if the server declares text/plain for a .css file, the browser refuses the stylesheet. A few details catch even experienced people: the current type for JavaScript is text/javascript (application/javascript was demoted), .svg only renders as image/svg+xml, and application/octet-stream is the generic type that makes browsers download a file rather than display it.
Use the table when configuring a server (Nginx mime.types, Apache AddType), filling the accept attribute of an upload field or validating Content-Type in an API. Just do not confuse lookup with detection: an extension proves nothing about what is really inside a file; that requires reading its first bytes (magic numbers). The list covers everyday formats, not the full IANA registry, and the search runs entirely in your browser.
Frequently asked questions
What is the correct MIME type for JavaScript?
Why does my file download instead of opening in the browser?
Does the MIME type guarantee what is inside the file?
Related Tools
MIME Type por Extensão
Retorna o MIME type oficial para uma extensão de arquivo.
Cache-Control max-age Explained
Convert the Cache-Control max-age value (in seconds) into a readable time in hours and days. Useful for understanding and debugging HTTP cache and CDNs.
Markdown Cheatsheet
Quick reference for Markdown syntax, filterable by keyword: headings, lists, links, tables, code and more. Shows the raw syntax next to what it does.