Developer tools
Practical guide: MIME Type Lookup
Use MIME Type Lookup when you need a quick way to work through this task. Look up the MIME type for a file extension, or vice versa. This guide walks through a small example and the checks to make before you use the result.
A server uses Content-Type to describe the format of an HTTP response. Looking up common extensions is useful when setting upload rules or debugging a file served with the wrong content type.
How to use the tool
- Open the tool and start with the worked example below.
- Search a file extension to find its MIME type, or search a MIME type to find matching extensions.
- Verify the result against the example before using it in your project.
Try a small example
Example input or settings
Look up .png and image/png in both directions.
What to check
Search png and confirm image/png; then search image/png for extensions. Check the actual response header in your application.
Does a file extension prove the actual file format?
No. A file can be renamed with a misleading extension. Validate the bytes and apply separate upload security checks.
When this is useful
For a real task, replace the sample with your own input and check the output in its final context. Keep a copy of the original if the change is hard to reverse.
Before you rely on the result
Validate the output in your own environment. Formatting or conversion does not prove that data or code is safe or correct.