A short companion for MIME Types: when it is useful, what it expects, and what to check before using the result.
What it does
Look up the MIME type for a file extension, or work backwards from a type to the extensions it covers.
Use the tool
Open MIME Types, add the input the tool asks for, run it, and check the output before using it elsewhere.
Input and output
- Input: text.
- Output: text.
- Category: Web.
Privacy and processing
Processing happens locally in your browser. This tool does not upload the input to ilham.dev.
Questions
Why does one extension have two types?
Because of history. .js is text/javascript today, but application/javascript still appears in older configurations, and servers generally accept both.
Related guide
For broader background, see HTTP and API Debugging.