MIME Type Lookup
Find the MIME type for any file extension, and vice versa.
The leading dot is optional. Search works in both directions.
| Extension | MIME type | Description | Charset |
|---|---|---|---|
| .html | text/html | HTML document | Yes |
| .htm | text/html | HTML document | Yes |
| .css | text/css | Cascading style sheet | Yes |
| .js | text/javascript | JavaScript | Yes |
| .mjs | text/javascript | JavaScript module | Yes |
| .json | application/json | JSON data | No |
| .jsonld | application/ld+json | JSON-LD structured data | No |
| .xml | application/xml | XML document | Yes |
| .csv | text/csv | Comma-separated values | Yes |
| .txt | text/plain | Plain text | Yes |
| .md | text/markdown | Markdown | Yes |
| .yaml | application/yaml | YAML | Yes |
| .yml | application/yaml | YAML | Yes |
| .png | image/png | PNG image | No |
| .jpg | image/jpeg | JPEG image | No |
| .jpeg | image/jpeg | JPEG image | No |
| .gif | image/gif | GIF image | No |
| .webp | image/webp | WebP image | No |
| .avif | image/avif | AVIF image | No |
| .svg | image/svg+xml | SVG vector image | No |
| .ico | image/x-icon | Icon file | No |
| .bmp | image/bmp | Bitmap image | No |
| .tiff | image/tiff | TIFF image | No |
| .heic | image/heic | HEIC image | No |
| .mp4 | video/mp4 | MP4 video | No |
| .webm | video/webm | WebM video | No |
| .mov | video/quicktime | QuickTime video | No |
| .avi | video/x-msvideo | AVI video | No |
| .mkv | video/x-matroska | Matroska video | No |
| .mp3 | audio/mpeg | MP3 audio | No |
| .wav | audio/wav | WAV audio | No |
| .ogg | audio/ogg | Ogg audio | No |
| .m4a | audio/mp4 | M4A audio | No |
| .flac | audio/flac | FLAC audio | No |
| .aac | audio/aac | AAC audio | No |
| application/pdf | PDF document | No | |
| .doc | application/msword | Word document (legacy) | No |
| .docx | application/vnd.openxmlformats-officedocument.wordprocessingml.document | Word document | No |
| .xls | application/vnd.ms-excel | Excel workbook (legacy) | No |
| .xlsx | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet | Excel workbook | No |
| .ppt | application/vnd.ms-powerpoint | PowerPoint presentation (legacy) | No |
| .pptx | application/vnd.openxmlformats-officedocument.presentationml.presentation | PowerPoint presentation | No |
| .odt | application/vnd.oasis.opendocument.text | OpenDocument text | No |
| .ods | application/vnd.oasis.opendocument.spreadsheet | OpenDocument spreadsheet | No |
| .rtf | application/rtf | Rich text format | No |
| .epub | application/epub+zip | EPUB e-book | No |
| .zip | application/zip | ZIP archive | No |
| .gz | application/gzip | Gzip archive | No |
| .tar | application/x-tar | TAR archive | No |
| .7z | application/x-7z-compressed | 7-Zip archive | No |
| .rar | application/vnd.rar | RAR archive | No |
| .woff | font/woff | Web Open Font Format | No |
| .woff2 | font/woff2 | WOFF2 font | No |
| .ttf | font/ttf | TrueType font | No |
| .otf | font/otf | OpenType font | No |
| .eot | application/vnd.ms-fontobject | Embedded OpenType font | No |
| .wasm | application/wasm | WebAssembly module | No |
| .webmanifest | application/manifest+json | Web app manifest | No |
| .bin | application/octet-stream | Arbitrary binary data | No |
Never trust a client-supplied MIME type
What does MIME Type Lookup do?
Look up the correct Content-Type for a file extension, or find which extensions a MIME type covers. Serving the wrong type is a frequent cause of files downloading instead of displaying, or of a browser refusing to run a script.
How to Use MIME Type Lookup
- 1Type an extensionWith or without the dot.
- 2Read the MIME typePlus any charset guidance.
- 3Search in reverseEnter a MIME type to see its extensions.
Key Features
- Search by extension or by MIME type
- Several hundred types covering images, video, audio, documents, fonts and archives
- Notes on which types need a charset parameter
- Flags obsolete types that have been superseded
- Ready-to-paste Content-Type header for each result
Frequently Asked Questions
What is a MIME type?
A two-part label such as text/html or image/png that tells a client what a file actually is. Servers send it in the Content-Type header, and browsers use it to decide whether to render, download or refuse the file.
Why does my file download instead of displaying?
Usually because it is served as application/octet-stream, the generic "unknown binary" type. Configure your server with the correct type for that extension and the browser will render it.
Should I include a charset?
Yes for text types. text/html; charset=utf-8 avoids the browser guessing the encoding, which is a common cause of mojibake. Binary types have no charset.
Can I trust a file’s MIME type?
Not from a client. An uploaded file’s declared type is set by the browser from the extension and is trivially spoofed. Always verify server-side by inspecting the file’s magic bytes.
Explore Related Workflows & Utilities
More tools in Developer Tools and related problem-solving tools
Direct Workflow Extensions
Search every HTTP status code with what it means and when to use it.
Verify downloads with SHA-256, SHA-1, MD5 and CRC-32 checksums.
Encode any file as Base64 or a data URI.
Break a user agent string into browser, OS and device.
Read EXIF data: camera, settings, date and GPS location.
Percent-encode text for safe use in URLs and query strings.
Complementary Utilities across Categories
Topical Deep Dives & Guides
Everything you enter here is processed on your own device. Nothing is uploaded to a server, so there is nothing for us to store or log.
Related Tools
HTTP Status Code Lookup
Search every HTTP status code with what it means and when to use it.
File Hash Generator
Verify downloads with SHA-256, SHA-1, MD5 and CRC-32 checksums.
File to Base64 Converter
Encode any file as Base64 or a data URI.
User Agent Parser
Break a user agent string into browser, OS and device.