Look up the right MIME type for any file. Type an extension like .webp or .woff2 to get its Content-Type, or a MIME type like application/json to see which extensions use it. Text types come with the charset to add, and extensions with more than one type in use show them all. It's free, runs in your browser, and nothing is sent anywhere.
| Extension | MIME type |
|---|---|
| .html | text/html |
| .css | text/css |
| .js | text/javascript |
| .json | application/json |
| .svg | image/svg+xml |
| .webp | image/webp |
| .woff2 | font/woff2 |
| application/pdf |
A label like image/png that tells the browser how to handle a file. It's sent in the Content-Type header.
text/javascript — it's the current standard, replacing application/javascript.
Serve unknown binary files as application/octet-stream, which makes browsers download them.
Without it, browsers may guess the text encoding and show garbled characters.
No. The lookup runs in your browser.
A server tells a browser what a file is through the Content-Type header, using a MIME type such as image/webp or application/json; get it wrong and a script won't run, a font won't load or a download opens as text. The lookup covers about a hundred common types — web formats, modern images like AVIF, HEIC and JPEG XL, video and audio containers, web fonts, office documents, archives, 3D models and code — and searches in both directions: an extension (with or without the dot) returns its type, and a type or partial type such as video/ returns the matching extensions. Where more than one type is in real use for an extension, such as .xml as application/xml or text/xml and .ico as image/vnd.microsoft.icon or image/x-icon, all are listed with the registered IANA name first. Each type is marked text or binary, and text types are copied with ; charset=utf-8 because omitting the charset is a common cause of garbled characters.