MIME Type Lookup
Look up MIME types by file extension or find extensions for any MIME type. 200+ types covered.
What Are MIME Types?
MIME types (Multipurpose Internet Mail Extensions) are standardized identifiers used to describe the nature and format of data. Originally defined for email attachments, MIME types are now central to the web — they appear in the Content-Type HTTP header, HTML <link> and <script> tags, and file upload validation. Every MIME type follows the pattern type/subtype, optionally followed by parameters like ; charset=utf-8.
MIME Type Categories
- image/* — image/jpeg, image/png, image/webp, image/svg+xml, image/gif, image/avif
- audio/* — audio/mpeg (MP3), audio/ogg, audio/wav, audio/flac, audio/aac
- video/* — video/mp4, video/webm, video/ogg, video/quicktime
- text/* — text/html, text/css, text/javascript, text/csv, text/plain, text/xml
- application/* — application/json, application/pdf, application/zip, application/wasm, application/octet-stream
- font/* — font/woff2, font/woff, font/ttf, font/otf
- multipart/* — multipart/form-data, multipart/mixed
Content-Type Header
Servers set the Content-Type response header to tell browsers how to handle the response body. If a server sends a JavaScript file with Content-Type: text/plain, the browser will display it as text rather than execute it. Getting the Content-Type right is essential for security — sending HTML with the wrong MIME type and without X-Content-Type-Options: nosniff can enable MIME-sniffing attacks. Use our HTTP Header Inspector to check headers on any response.
MIME Types for Web Assets
Common web asset MIME types and their correct values:
- HTML:
text/html; charset=utf-8 - CSS:
text/css - JavaScript:
text/javascript(the official type;application/javascriptis also accepted) - JSON:
application/json - WebAssembly:
application/wasm - SVG:
image/svg+xml - Web fonts:
font/woff2,font/woff - Source maps:
application/json
Binary vs. Text MIME Types
MIME types can be classified as binary or text. Text types (text/html, text/css, application/json) contain human-readable characters and should be served with a charset parameter. Binary types (image/jpeg, audio/mpeg, application/pdf) contain raw byte data that should not be modified by line-ending normalization. When serving files, always use the correct binary/text classification to avoid data corruption. The application/octet-stream type is a safe default for unknown binary data and causes browsers to trigger a download rather than attempting to display the content.