This tool looks up the MIME type (Content-Type) for a file extension, and finds extensions for a given MIME type. It covers the common types you set in HTTP headers, uploads and email attachments — searched instantly and locally.
How to use it
- Type a file extension (like pdf) or a MIME type (like image/png).
- Matching results appear instantly.
- Copy the MIME type for your headers or config.
About MIME Type Lookup
The Content-Type header tells browsers and clients how to handle a file — serve the wrong MIME type and a PDF downloads as text, or a script refuses to run. When configuring a server, handling uploads, or sending attachments, you need the correct MIME type for an extension. This searchable reference covers the common mappings in both directions, so you can confirm the right value quickly. It runs entirely in your browser.
FAQ
What is the MIME type for a PDF?
application/pdf. Sending the right type ensures the browser opens it correctly rather than downloading raw text.
Why do MIME types matter?
They tell the client how to interpret a file. A wrong type can break downloads, image display, or script execution.
Why do MIME types matter?
A MIME type (like application/json or image/png) tells the browser how to handle a file. Serving the wrong type can cause downloads to fail, scripts to be blocked, or images not to display, so correct types are essential for web servers.