What is MIME Type Lookup?
MIME Type Lookup tells you the media type, also called the MIME type or Content-Type, for a file extension. A MIME type such as application/json or image/png tells browsers and HTTP clients how to treat a file: whether to render it, parse it, play it or download it. Serving a file with the wrong type causes blank pages, blocked scripts and broken downloads.
Search by extension (.webp), by a whole file name (report.final.xlsx), by type (image/svg+xml) or by category to find the right value for a Content-Type header, a server configuration file or an accept attribute on a file input. The reference covers more than 100 entries across web, data, image, audio, video, font, document, archive, code and certificate formats, plus the content types used in HTTP requests that have no file extension, such as multipart/form-data and text/event-stream.
How to use MIME Type Lookup
- Type a file extension such as .json or webp, a file name such as photo.HEIC, or part of a MIME type such as font/.
- The list filters instantly; click a category to narrow it further.
- Copy the MIME type for your Content-Type header or server configuration.
- Check the category to confirm you have the right kind of file.
Key features
- More than 100 file extensions and content types
- Search by extension, file name, MIME type or category
- Web, data, image, audio, video, font, Office, archive and certificate formats
- HTTP-only content types such as multipart/form-data and text/event-stream
- Copy button for every MIME type
- Standard IANA media type names
Common use cases
- Setting the Content-Type header in an API or file download response
- Configuring MIME types in Nginx, Apache, S3 or a CDN
- Restricting uploads with the accept attribute of a file input
- Debugging files that download instead of displaying, or scripts blocked by nosniff
- Building data: URIs, which start with a MIME type
Technical details & standards
Media types are registered with IANA and written as type/subtype, optionally with parameters such as text/html; charset=utf-8. The top-level type (text, image, audio, video, application, font) describes the general kind of data, and a +suffix such as image/svg+xml or application/ld+json names the underlying syntax. Office formats use long vnd. names, such as application/vnd.openxmlformats-officedocument.spreadsheetml.sheet for .xlsx.
Some types have historical aliases: JavaScript is officially text/javascript (RFC 9239), although application/javascript is still common, and YAML is application/yaml since RFC 9512. Files with no registered type are usually served as application/octet-stream, which makes browsers download them. Browsers sniff content in some cases, but sending an explicit, correct Content-Type, together with X-Content-Type-Options: nosniff, is the reliable approach.
Frequently asked questions
What is a MIME type?
A MIME type (media type) is a label like image/png or application/json that tells software what kind of data a file contains. Web servers send it in the Content-Type header so browsers know how to handle the response.
What is the MIME type for JSON?
application/json. JSON is always UTF-8 according to RFC 8259, so a charset parameter is not required, although application/json; charset=utf-8 is also accepted.
Is the JavaScript MIME type text/javascript or application/javascript?
text/javascript is the official type since RFC 9239 (2022). application/javascript is an older alias that browsers still accept, but new configurations should use text/javascript.
What MIME type should I use for an unknown file?
application/octet-stream, the generic type for binary data. Browsers download such files instead of displaying them, which is usually what you want for an unknown or proprietary format.
What happens if a file is served with the wrong MIME type?
Browsers may refuse to run a script or apply a stylesheet (especially with X-Content-Type-Options: nosniff), display text instead of rendering a page, or download a file that should open in the browser. Fix the Content-Type in your server or CDN configuration.
Is my data safe?
Processing happens locally in your browser. Tool input is not sent to CodeUnpack servers.
Does it work offline?
Once the page has loaded, this tool can process input without an internet connection.