MIME Type Lookup
Find the MIME type for a file extension, or the extensions for a MIME type.
Processing: This tool runs entirely in your browser. Your input and any file you open stay on your device — nothing is uploaded to a server.
How to use the mime type lookup
- Type an extension, a MIME type or a format name.
- Read the matching rows.
- Copy the type you need for a header or a config file.
About this tool
A MIME type tells software what a file is, independently of its name. The browser uses it to decide whether to render, download or refuse a response, which is why a JSON API served as text/plain behaves oddly and a font served with the wrong type may be rejected outright.
The extension is only a hint. Renaming a file changes nothing about its contents, so anything accepting uploads should determine the type by inspecting the bytes rather than trusting the name or the declared Content-Type. Treating a user-supplied type as fact is a well-worn route to an upload vulnerability.
Common uses
- Setting the right Content-Type on a response.
- Configuring a server or upload filter.
- Identifying what a type refers to.
Frequently asked questions
- Can I trust a file's extension?
- No. It is metadata anyone can change. Check the file's actual contents before acting on it.
- Why is JavaScript sometimes application/javascript?
- Both existed for years. text/javascript is now the standard, and both are widely accepted.
Related tools
HTTP Status Code Reference
Look up any HTTP status code, what it means and what it usually indicates in practice.
Base64 Encoder & Decoder
Encode text to Base64 or decode Base64 back to text, with UTF-8 and URL-safe support.
EXIF & Image Metadata Viewer
See the camera, exposure, date and location data hidden inside a photo.
URL Parser
Break any URL into protocol, host, port, path, query parameters and fragment.