HTTP Status Code Reference
A searchable reference for every HTTP status code, with practical guidance.
Find the right content type for any file extension.
| Extension | MIME type | Notes |
|---|
MIME Type Lookup answers the question that comes up whenever a file downloads instead of displaying, or displays as plain text instead of running: what Content-Type header should this extension be served with.
Search works in both directions. Type an extension to get its type, or type part of a content type to see every extension that uses it. Each entry notes whether the type is text-based, whether it should carry a charset parameter, and whether browsers typically display it inline or download it.
For the common web types, the tool also generates the server configuration line, for Apache, nginx and Express, which is usually what you actually need once you have the answer. A font or a WebP image served with the wrong type is one configuration line away from working.
The mime type lookup is used by writers, developers, students, marketers and anyone else who needs the job done once without installing software. Common cases include:
Usually the wrong Content-Type, or a Content-Disposition header set to attachment. A browser decides what to do with a response from its type, so a PDF served as application/octet-stream downloads rather than opening.
Text-based types: HTML, CSS, JavaScript, JSON, XML and plain text. Without charset=utf-8, browsers fall back to a default that mangles accented characters. Binary types do not take a charset.
On a server, yes, almost always by an extension-to-type mapping. Browsers mostly trust the header rather than the extension, and will sniff the content in some cases. Setting the header correctly is the reliable route.
The generic fallback meaning unknown binary data. A browser given it will download rather than display. Seeing it is a sign your server has no mapping for that extension.
They need text/javascript and must be served over a correct type, because browsers refuse to execute a module served as plain text. This is a common cause of a module that loads but never runs.
No. It is a reference table. Check your server's actual headers with your browser's network panel or a command-line request.
If the mime type lookup is not quite what you need, these other free tools solve closely related problems.
A searchable reference for every HTTP status code, with practical guidance.
Parse any user agent string, or inspect your own browser's.
Generate .htaccess rules for redirects, caching, compression and security headers.
Build security header configuration for Apache, nginx, Netlify or Vercel.
Convert images between JPG, PNG and WebP with quality control.