MIME Type Lookup
Find the MIME type for any file extension, and vice versa.
MIME Type Lookup
Developer tool running locally in browser
What does MIME Type Lookup do?
Look up the correct Content-Type for a file extension, or find which extensions a MIME type covers. Serving the wrong type is a frequent cause of files downloading instead of displaying, or of a browser refusing to run a script.
How to Use MIME Type Lookup
- 1Type an extensionWith or without the dot.
- 2Read the MIME typePlus any charset guidance.
- 3Search in reverseEnter a MIME type to see its extensions.
Key Features
- Search by extension or by MIME type
- Several hundred types covering images, video, audio, documents, fonts and archives
- Notes on which types need a charset parameter
- Flags obsolete types that have been superseded
- Ready-to-paste Content-Type header for each result
Frequently Asked Questions
What is a MIME type?
A two-part label such as text/html or image/png that tells a client what a file actually is. Servers send it in the Content-Type header, and browsers use it to decide whether to render, download or refuse the file.
Why does my file download instead of displaying?
Usually because it is served as application/octet-stream, the generic "unknown binary" type. Configure your server with the correct type for that extension and the browser will render it.
Should I include a charset?
Yes for text types. text/html; charset=utf-8 avoids the browser guessing the encoding, which is a common cause of mojibake. Binary types have no charset.
Can I trust a file’s MIME type?
Not from a client. An uploaded file’s declared type is set by the browser from the extension and is trivially spoofed. Always verify server-side by inspecting the file’s magic bytes.
Your data and files are processed strictly inside your browser. No data is stored, logged or uploaded to any server.
Related Tools
HTTP Status Code Lookup
Search every HTTP status code with what it means and when to use it.
User Agent Parser
Break a user agent string into browser, OS and device.
Image Metadata Viewer
Read EXIF data: camera, settings, date and GPS location.
URL Encoder
Percent-encode text for safe use in URLs and query strings.
