MIME Type Reference
Free web tool: MIME Type Reference
| Extension ↕ | MIME Type ↕ | Category | Description | Copy Header |
|---|---|---|---|---|
.html | Text | HTML Document | ||
.htm | Text | HTML Document | ||
.css | Text | CSS Stylesheet | ||
.js | Text | JavaScript | ||
.mjs | Text | JavaScript Module | ||
.json | Data | JSON Data | ||
.jsonld | Data | JSON-LD Linked Data | ||
.xml | Data | XML Data | ||
.csv | Data | CSV Data | ||
.yaml | Data | YAML Data | ||
.yml | Data | YAML Data (short ext) | ||
.toml | Data | TOML Configuration | ||
.txt | Text | Plain Text | ||
.md | Text | Markdown Document | ||
.rtf | Documents | Rich Text Format | ||
.pdf | Documents | PDF Document | ||
.doc | Documents | Word Document (legacy) | ||
.docx | Documents | Word Document | ||
.xls | Documents | Excel Spreadsheet (legacy) | ||
.xlsx | Documents | Excel Spreadsheet | ||
.ppt | Documents | PowerPoint (legacy) | ||
.pptx | Documents | PowerPoint Presentation | ||
.png | Images | PNG Image | ||
.jpg | Images | JPEG Image | ||
.jpeg | Images | JPEG Image | ||
.gif | Images | GIF Image | ||
.webp | Images | WebP Image | ||
.svg | Images | SVG Vector Image | ||
.ico | Images | Icon Image | ||
.bmp | Images | BMP Image | ||
.tiff | Images | TIFF Image | ||
.avif | Images | AVIF Image | ||
.heic | Images | HEIC Image (Apple) | ||
.mp3 | Audio | MP3 Audio | ||
.wav | Audio | WAV Audio | ||
.ogg | Audio | OGG Audio | ||
.flac | Audio | FLAC Audio (lossless) | ||
.aac | Audio | AAC Audio | ||
.m4a | Audio | M4A Audio | ||
.opus | Audio | Opus Audio | ||
.midi | Audio | MIDI Audio | ||
.webm | Video | WebM Video | ||
.mp4 | Video | MP4 Video | ||
.avi | Video | AVI Video | ||
.mov | Video | QuickTime Video | ||
.mkv | Video | Matroska Video | ||
.wmv | Video | WMV Video | ||
.ts | Video | MPEG Transport Stream | ||
.flv | Video | Flash Video | ||
.zip | Archive | ZIP Archive | ||
.gz | Archive | Gzip Compressed | ||
.tar | Archive | TAR Archive | ||
.rar | Archive | RAR Archive | ||
.7z | Archive | 7-Zip Archive | ||
.bz2 | Archive | Bzip2 Compressed | ||
.zst | Archive | Zstandard Compressed | ||
.woff | Fonts | WOFF Web Font | ||
.woff2 | Fonts | WOFF2 Web Font | ||
.ttf | Fonts | TrueType Font | ||
.otf | Fonts | OpenType Font | ||
.eot | Fonts | EOT Font (IE) | ||
.wasm | Other | WebAssembly | ||
.bin | Other | Arbitrary Binary Data | ||
.exe | Other | Windows Executable | ||
.dmg | Other | macOS Disk Image | ||
.iso | Other | ISO Disk Image | ||
.ics | Other | iCalendar File | ||
.vcf | Other | vCard Contact | ||
.gpx | Other | GPX GPS Data | ||
.kml | Other | KML Geographic Data (Google Earth) | ||
.rss | Data | RSS Feed | ||
.atom | Data | Atom Feed | ||
.sql | Data | SQL Query | ||
.graphql | Data | GraphQL Query | ||
.msi | Other | Windows Installer Package | ||
.deb | Other | Debian Package | ||
.apk | Other | Android Package |
About MIME Type Reference
MIME types (Multipurpose Internet Mail Extensions) are the standard way browsers and servers communicate about the format of a file. When a web server sends a response, the Content-Type header — carrying a MIME type like "image/png" or "application/json" — tells the browser how to interpret the data. This reference covers over 60 of the most commonly used MIME types, organized across ten categories: Text, Data, Documents, Images, Audio, Video, Archive, Fonts, and Other.
Web developers, backend engineers, and system administrators rely on accurate MIME types when configuring servers, writing fetch() calls, building file upload forms, or setting HTTP response headers. Getting the wrong MIME type can cause browsers to refuse to render a file, trigger a download instead of displaying content, or block cross-origin requests. This tool provides an instant lookup table searchable by file extension (like ".webp"), the full MIME string (like "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"), or a plain-English description.
The reference includes both legacy formats (like .doc using application/msword) and modern standards (like .avif using image/avif and .woff2 using font/woff2). Each entry is displayed in a sortable table with a click-to-copy button on every MIME string, making it quick to paste a value directly into your code or configuration file. The entire tool runs in the browser with no network requests, so it works offline and your lookups are never logged.
Key Features
- Covers 60+ MIME types across Text, Data, Documents, Images, Audio, Video, Archive, Fonts, and Other categories
- Instant search by file extension, MIME type string, or description
- One-click copy for any MIME type value directly to the clipboard
- Category filter tabs for fast browsing within a specific file type group
- Includes both legacy formats (.doc, .xls) and modern formats (.avif, .woff2, .wasm)
- Shows exact IANA-registered MIME strings including long Office Open XML identifiers
- 100% client-side — no network requests, works offline, no logging
- Dark mode support and fully responsive table layout for mobile use
Frequently Asked Questions
What is a MIME type?
A MIME type (also called a content type or media type) is a two-part identifier in the format "type/subtype" — for example "text/html" or "image/jpeg". It tells browsers and servers what kind of data a file contains so they know how to process it. MIME types are used in HTTP Content-Type headers, HTML <input accept=""> attributes, and API responses.
What is the MIME type for a PNG image?
The correct MIME type for PNG images is "image/png". Use it in your Content-Type response header when serving PNG files from a server, or in an <img> tag's srcset when working with Blob URLs.
What MIME type should I use for JSON APIs?
Use "application/json" for JSON data. This is the standard type expected by fetch() calls and XMLHttpRequest, and it signals to the client that the response body should be parsed as JSON.
What is the difference between text/javascript and application/javascript?
"text/javascript" is the currently correct and IANA-registered MIME type for JavaScript files. "application/javascript" was historically used but has been deprecated. Modern servers and browsers accept both, but "text/javascript" is the recommended value per the WHATWG HTML specification.
What MIME type should I set for a file download?
To force a browser to download a file rather than render it, set the Content-Type to "application/octet-stream". You should also add the header "Content-Disposition: attachment; filename=yourfile.ext" to control the suggested filename.
Why does the Office Open XML MIME type look so long?
Modern Microsoft Office formats (.docx, .xlsx, .pptx) are part of the Open XML specification maintained by ECMA International. Their MIME types follow a structured naming pattern — for example, "application/vnd.openxmlformats-officedocument.wordprocessingml.document" — that encodes the vendor, specification name, and document type. The long string is intentional and precise.
What is the correct MIME type for SVG files?
The correct MIME type for SVG is "image/svg+xml". Because SVG is XML-based, the "+xml" suffix is required. Some older configurations incorrectly use "image/svg", which can cause rendering issues in some browsers.
How do I look up a MIME type for a file extension I do not see here?
This reference covers the most commonly used MIME types. For uncommon or vendor-specific types, consult the IANA Media Types registry at iana.org/assignments/media-types or your operating system's MIME database. On Linux, you can run "file --mime-type yourfile" to detect a file's type by content rather than extension.