Web
MIME Types
Look up a selected set of media types and extensions when preparing HTTP responses or upload fixtures.
About this tool
When to use it
Look up a selected set of media types and extensions when preparing HTTP responses or upload fixtures.
How to use it
Search by extension, media type, or description. Compare the entry with the actual file format and set the response Content-Type in your server or framework. Use the current registry for less common formats.
Guide updated . Examples checked against this implementation.
Worked examples
A JSON response
Input
Search: jsonExpected output
application/json — .json — JSON dataThe search may also show related entries such as JSON-LD. Choose the type that describes the actual representation rather than the filename alone.
Errors and unsupported input
A renamed file has the expected extension but fails to loadCheck the file bytes and server header. Changing an extension does not transcode the content or establish its correct media type.
Continue this workflow
- HTTP Status Codes: Interpret a 415 response when the server rejects a request media type.
Format references
Questions
Frequently asked questions
Does this detect a file's MIME type?
No. It searches a table. Detection or verification requires inspecting the actual content and its serving context.