MIME Types List
Look up the Content-Type for a file extension, or the reverse.
About MIME types
A MIME type, or media type, names the format of a file or message body, such as text/html, application/json or image/png. Servers send it in the Content-Type header so browsers know how to handle a response, and clients send it with request bodies so APIs know how to parse them. It has a type and a subtype, optionally with a suffix (+json, +xml) and parameters such as charset=utf-8.
The official list is the IANA Media Types registry. Names starting with x- and a few common names such as application/rss+xml were never registered but are widely used; they're marked as such below. When a server doesn't know a file's type it should send application/octet-stream, which makes browsers download the file rather than display it. Send X-Content-Type-Options: nosniff so browsers trust the type you declare instead of guessing.
124 entries
Text and web
| Extension | MIME type | Format |
|---|---|---|
| .html, .htm | text/html | HTML document |
| .css | text/css | CSS stylesheet |
| .js, .mjs | text/javascript | JavaScript (RFC 9239; application/javascript is obsolete) |
| .txt | text/plain | Plain text |
| .log | text/plain | Log file (served as plain text) |
| .csv | text/csv | Comma-separated values (RFC 4180) |
| .tsv | text/tab-separated-values | Tab-separated values |
| .md, .markdown | text/markdown | Markdown (RFC 7763) |
| .ics | text/calendar | iCalendar event or calendar |
| .vcf, .vcard | text/vcard | vCard contact |
| .vtt | text/vtt | WebVTT subtitles |
| .srt | application/x-subrip | SubRip subtitles (unregistered, widely used) |
| .rtf | application/rtf | Rich Text Format (text/rtf is also registered) |
| .xml | application/xml | XML document (text/xml is also accepted) |
| .xhtml | application/xhtml+xml | XHTML document |
| .xsl, .xslt | application/xslt+xml | XSLT stylesheet |
| .dtd | application/xml-dtd | XML document type definition |
| .sh | application/x-sh | Shell script (unregistered, widely used) |
| .py | text/x-python | Python source (unregistered convention) |
Application and data
| Extension | MIME type | Format |
|---|---|---|
| .json | application/json | JSON data (RFC 8259) |
| .jsonld | application/ld+json | JSON-LD linked data, used for structured data |
| .geojson | application/geo+json | GeoJSON geographic data (RFC 7946) |
| .webmanifest | application/manifest+json | Web app manifest |
| .map | application/json | JavaScript or CSS source map |
| .yaml, .yml | application/yaml | YAML (RFC 9512) |
| .sql | application/sql | SQL script (RFC 6922) |
| .wasm | application/wasm | WebAssembly module |
| .bin | application/octet-stream | Arbitrary binary data; the default for unknown files |
| .exe, .dll | application/vnd.microsoft.portable-executable | Windows executable or library |
| .msi | application/x-msi | Windows Installer package (unregistered, widely used) |
| .dmg | application/x-apple-diskimage | macOS disk image (unregistered, widely used) |
| .apk | application/vnd.android.package-archive | Android app package |
| .jar | application/java-archive | Java archive |
| .sqlite, .db | application/vnd.sqlite3 | SQLite database |
| .rss | application/rss+xml | RSS feed (widely used, not registered) |
| .atom | application/atom+xml | Atom feed (RFC 4287) |
| .rdf | application/rdf+xml | RDF/XML |
| .gpx | application/gpx+xml | GPS exchange format track |
| .kml | application/vnd.google-earth.kml+xml | Google Earth KML |
| .kmz | application/vnd.google-earth.kmz | Zipped KML |
| .ogx | application/ogg | Ogg container (generic) |
| .ps, .eps, .ai | application/postscript | PostScript |
| .cer, .crt, .der | application/pkix-cert | X.509 certificate (DER, RFC 2585) |
| .p12, .pfx | application/pkcs12 | PKCS #12 key and certificate bundle |
| .m3u8 | application/vnd.apple.mpegurl | HLS streaming playlist |
| .mpd | application/dash+xml | MPEG-DASH manifest |
Documents
| Extension | MIME type | Format |
|---|---|---|
| application/pdf | PDF document | |
| .doc | application/msword | Word 97-2003 document |
| .docx | application/vnd.openxmlformats-officedocument.wordprocessingml.document | Word document |
| .dotx | application/vnd.openxmlformats-officedocument.wordprocessingml.template | Word template |
| .xls | application/vnd.ms-excel | Excel 97-2003 workbook |
| .xlsx | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet | Excel workbook |
| .xlsm | application/vnd.ms-excel.sheet.macroEnabled.12 | Excel macro-enabled workbook |
| .ppt | application/vnd.ms-powerpoint | PowerPoint 97-2003 presentation |
| .pptx | application/vnd.openxmlformats-officedocument.presentationml.presentation | PowerPoint presentation |
| .odt | application/vnd.oasis.opendocument.text | OpenDocument text |
| .ods | application/vnd.oasis.opendocument.spreadsheet | OpenDocument spreadsheet |
| .odp | application/vnd.oasis.opendocument.presentation | OpenDocument presentation |
| .odg | application/vnd.oasis.opendocument.graphics | OpenDocument drawing |
| .epub | application/epub+zip | EPUB e-book |
| .mobi | application/x-mobipocket-ebook | Mobipocket e-book (unregistered) |
| .vsdx | application/vnd.ms-visio.drawing.main+xml | Visio drawing |
| .pages | application/vnd.apple.pages | Apple Pages document |
| .numbers | application/vnd.apple.numbers | Apple Numbers spreadsheet |
| .key | application/vnd.apple.keynote | Apple Keynote presentation |
Archives and compression
| Extension | MIME type | Format |
|---|---|---|
| .zip | application/zip | ZIP archive |
| .gz | application/gzip | Gzip-compressed file (RFC 6713) |
| .tar | application/x-tar | Tar archive (unregistered, widely used) |
| .tgz, .tar.gz | application/gzip | Gzip-compressed tar archive |
| .bz2 | application/x-bzip2 | Bzip2-compressed file (unregistered) |
| .xz | application/x-xz | XZ-compressed file (unregistered) |
| .zst | application/zstd | Zstandard-compressed file (RFC 8878) |
| .br | application/x-brotli | Brotli-compressed file (unregistered; on the web Brotli is a Content-Encoding) |
| .7z | application/x-7z-compressed | 7-Zip archive (unregistered) |
| .rar | application/vnd.rar | RAR archive |
| .iso | application/x-iso9660-image | ISO disc image (unregistered) |
Images
| Extension | MIME type | Format |
|---|---|---|
| .svg | image/svg+xml | SVG vector graphic |
| .png | image/png | PNG image |
| .jpg, .jpeg | image/jpeg | JPEG image |
| .gif | image/gif | GIF image |
| .webp | image/webp | WebP image (RFC 9649) |
| .avif | image/avif | AVIF image |
| .ico | image/vnd.microsoft.icon | Icon file; browsers also accept image/x-icon |
| .bmp | image/bmp | Bitmap image |
| .tif, .tiff | image/tiff | TIFF image |
| .heic | image/heic | HEIC image (iPhone photos) |
| .heif | image/heif | HEIF image |
| .psd | image/vnd.adobe.photoshop | Photoshop document |
Audio
| Extension | MIME type | Format |
|---|---|---|
| .mp3 | audio/mpeg | MP3 audio |
| .m4a | audio/mp4 | AAC or ALAC audio in an MP4 container |
| .aac | audio/aac | Raw AAC audio (ADTS) |
| .wav | audio/wav | WAV audio (common unregistered name; IANA lists audio/vnd.wave) |
| .ogg, .oga | audio/ogg | Ogg audio (Vorbis or Opus) |
| .opus | audio/opus | Opus audio |
| .flac | audio/flac | FLAC lossless audio (also seen as audio/x-flac) |
| .weba | audio/webm | WebM audio |
| .mid, .midi | audio/midi | MIDI (unregistered; also audio/x-midi) |
| .aif, .aiff | audio/aiff | AIFF audio (unregistered; also audio/x-aiff) |
Video
| Extension | MIME type | Format |
|---|---|---|
| .mp4 | video/mp4 | MP4 video |
| .webm | video/webm | WebM video |
| .ogv | video/ogg | Ogg video |
| .mov | video/quicktime | QuickTime video |
| .mkv | video/matroska | Matroska video (RFC 9559; video/x-matroska is common) |
| .avi | video/x-msvideo | AVI video (unregistered, widely used) |
| .mpeg, .mpg | video/mpeg | MPEG-1 or MPEG-2 video |
| .ts | video/mp2t | MPEG transport stream (not TypeScript) |
| .3gp | video/3gpp | 3GPP mobile video |
| .flv | video/x-flv | Flash video (unregistered, legacy) |
| .wmv | video/x-ms-wmv | Windows Media video (unregistered) |
Fonts
| Extension | MIME type | Format |
|---|---|---|
| .woff2 | font/woff2 | Web Open Font Format 2 (RFC 8081) |
| .woff | font/woff | Web Open Font Format |
| .ttf | font/ttf | TrueType font |
| .otf | font/otf | OpenType font |
| .ttc | font/collection | Font collection |
| .eot | application/vnd.ms-fontobject | Embedded OpenType (legacy Internet Explorer) |
Request and response bodies
| Extension | MIME type | Format |
|---|---|---|
| (form body) | application/x-www-form-urlencoded | Default HTML form encoding: key=value&key2=value2 |
| (form body) | multipart/form-data | Form with file uploads; parts separated by a boundary (RFC 7578) |
| (stream) | text/event-stream | Server-sent events |
| (error body) | application/problem+json | Problem details for HTTP APIs (RFC 9457) |
| (token) | application/jwt | JSON Web Token (RFC 7519) |
| (stream) | application/x-ndjson | Newline-delimited JSON (unregistered, widely used) |
| (patch) | application/json-patch+json | JSON Patch operations (RFC 6902) |
| (patch) | application/merge-patch+json | JSON Merge Patch (RFC 7396) |
| (GraphQL) | application/graphql-response+json | GraphQL over HTTP response |
Good to know
Text types and charset
For text formats add the character encoding: Content-Type: text/html; charset=utf-8. JSON is always UTF-8 (RFC 8259), so application/json needs no charset parameter.
JavaScript
RFC 9239 (2022) made text/javascript the one standard type for JavaScript and marked application/javascript and others obsolete. Browsers accept either for scripts, but module scripts are rejected if served with a non-JavaScript type.
More references
- HTTP status codesEvery HTTP status code and what it means
- ASCII tableAll 128 ASCII codes in dec, hex, octal and binary
- HTML entitiesNamed HTML entities with their codes
- Regex cheat sheetRegular expression syntax at a glance
- Cron examples30 common cron schedules explained
- Chmod examplesCommon Unix permissions like 644 and 755
- Unix timestamp referenceNotable epochs, the 2038 problem and code
- Git cheat sheetEveryday Git commands in one place
- Markdown cheat sheetMarkdown and GitHub Flavored syntax