1001Ferramentas
📚 Dev

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ãoMIME

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?
text/javascript. application/javascript was the recommendation for a while, but current standards (WHATWG and IANA) point back to text/javascript as canonical.
Why does my file download instead of opening in the browser?
The server is probably sending application/octet-stream or a Content-Disposition attachment header. Set the correct MIME type for the format and the browser will display it inline when it can.
Does the MIME type guarantee what is inside the file?
No. Extension and Content-Type are declarations; a renamed .png is still whatever it was before. Real validation means checking the file's first bytes.

Related Tools