MIME Type Lookup
Find the right MIME type for any file extension, or look up which extensions a MIME type covers.
| Extension | MIME type | Description | |
|---|---|---|---|
| .json | application/json | JSON data | |
| .html | text/html | HTML document | |
| .css | text/css | Stylesheet | |
| .js | text/javascript | JavaScript | |
| .mjs | text/javascript | JavaScript module | |
| .txt | text/plain | Plain text | |
| .csv | text/csv | Comma separated values | |
| .xml | application/xml | XML document | |
| application/pdf | PDF document | ||
| .zip | application/zip | ZIP archive | |
| .gz | application/gzip | Gzip archive | |
| .tar | application/x-tar | Tar archive | |
| .png | image/png | PNG image | |
| .jpg | image/jpeg | JPEG image | |
| .jpeg | image/jpeg | JPEG image | |
| .gif | image/gif | GIF image | |
| .webp | image/webp | WebP image | |
| .avif | image/avif | AVIF image | |
| .svg | image/svg+xml | SVG vector image | |
| .ico | image/x-icon | Icon file | |
| .mp3 | audio/mpeg | MP3 audio | |
| .wav | audio/wav | WAV audio | |
| .ogg | audio/ogg | Ogg audio | |
| .mp4 | video/mp4 | MP4 video | |
| .webm | video/webm | WebM video | |
| .mov | video/quicktime | QuickTime video | |
| .woff | font/woff | Web font | |
| .woff2 | font/woff2 | Web font (compressed) | |
| .ttf | font/ttf | TrueType font | |
| .otf | font/otf | OpenType font | |
| .doc | application/msword | Word document (legacy) | |
| .docx | application/vnd.openxmlformats-officedocument.wordprocessingml.document | Word document | |
| .xls | application/vnd.ms-excel | Excel spreadsheet (legacy) | |
| .xlsx | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet | Excel spreadsheet | |
| .ppt | application/vnd.ms-powerpoint | PowerPoint (legacy) | |
| .pptx | application/vnd.openxmlformats-officedocument.presentationml.presentation | PowerPoint | |
| .wasm | application/wasm | WebAssembly module | |
| .md | text/markdown | Markdown | |
| .yaml | application/yaml | YAML | |
| .toml | application/toml | TOML | |
| .epub | application/epub+zip | EPUB ebook | |
| .apk | application/vnd.android.package-archive | Android package | |
| .bin | application/octet-stream | Arbitrary binary data | |
| .jsonld | application/ld+json | JSON-LD | |
| .ics | text/calendar | Calendar file |
About the MIME Type Lookup
Every HTTP response declares what kind of content it carries in the Content-Type header, and every upload form, CDN configuration, and file API needs the right MIME type for the files it handles. Get it wrong and browsers download pages instead of rendering them, refuse to run scripts, or block fonts.
This is a searchable table of the MIME types developers actually need, from the obvious (.json, .png) to the ones nobody remembers (.docx and its 70 character type, .woff2, .wasm). Search by extension, by type, or by what the file is, and copy the exact string.
The ones that cause the most bugs: JavaScript should be served as text/javascript, SVG needs image/svg+xml or it will not render as an image, and anything served as application/octet-stream will download rather than display. When in doubt about a binary format, application/octet-stream is the honest fallback.
Reach developers and designers who use these tools every day. Privacy-first, no trackers.
Frequently asked questions
What happens if I serve the wrong MIME type?
Depends on the type. Browsers refuse to execute scripts and stylesheets with wrong types (due to X-Content-Type-Options: nosniff), images may download instead of rendering, and fonts get blocked by CORS rules. Wrong MIME types are a common cause of "works locally, broken in production".
What is application/octet-stream?
The generic type for arbitrary binary data. It tells the browser "do not try to interpret this, just download it." It is the right choice for unknown binary files and the wrong choice for anything you want displayed or executed.
Is it text/javascript or application/javascript?
text/javascript. It was deprecated for years in favor of application/javascript, then the standard reversed course in 2022 and made text/javascript the official type again. Browsers accept both.