MIME types list & lookup
Updated Free mock REST & WebSocket APIs
Find the right Content-Type for any file. Type an extension (or a whole file name) to get its MIME type instantly, or a MIME type to see which extensions use it.
Type an extension to get its MIME type instantly, or a MIME type to find its extensions. 148 common types included.
| Extension | MIME type | Kind |
|---|---|---|
| .html .htm | text/htmlHTML document | HTML document |
| .css | text/cssCascading Style Sheets | Cascading Style Sheets |
| .js .mjs .cjs | text/javascriptJavaScript | JavaScript |
| .ts .mts .cts | video/mp2tMPEG transport stream video (.ts is also TypeScript — serve source as text/plain) | MPEG transport stream video (.ts is also TypeScript — serve source as text/plain) |
| .txt .text | text/plainPlain text | Plain text |
| .csv | text/csvComma-separated values | Comma-separated values |
| .tsv | text/tab-separated-valuesTab-separated values | Tab-separated values |
| .md .markdown | text/markdownMarkdown | Markdown |
| .xml | application/xmlXML document | XML document |
| .xhtml .xht | application/xhtml+xmlXHTML document | XHTML document |
| .rtf | application/rtfRich Text Format | Rich Text Format |
| .ics .ifb | text/calendariCalendar event | iCalendar event |
| .vcf .vcard | text/vcardvCard contact | vCard contact |
| .yaml .yml | application/yamlYAML | YAML |
| .toml | application/tomlTOML | TOML |
| .jsx | text/jsxJavaScript XML (React) | JavaScript XML (React) |
| .tsx | text/tsxTypeScript JSX (React) | TypeScript JSX (React) |
| .py | text/x-pythonPython source | Python source |
| .java | text/x-java-sourceJava source | Java source |
| .c .h | text/x-cC source / header | C source / header |
| .cpp .cc .cxx .hpp | text/x-c++srcC++ source | C++ source |
| .cs | text/x-csharpC# source | C# source |
| .go | text/x-goGo source | Go source |
| .rs | text/x-rustRust source | Rust source |
| .rb | text/x-rubyRuby source | Ruby source |
| .php | application/x-httpd-phpPHP source | PHP source |
| .sh | application/x-shShell script | Shell script |
| .sql | application/sqlSQL | SQL |
| .vtt | text/vttWebVTT subtitles | WebVTT subtitles |
| .srt | application/x-subripSubRip subtitles | SubRip subtitles |
| .map | application/jsonSource map | Source map |
| .diff .patch | text/x-diffDiff / patch | Diff / patch |
| .log | text/plainLog file | Log file |
| .ini .conf .cfg | text/plainConfiguration file | Configuration file |
| .json | application/jsonJSON | JSON |
| .jsonld | application/ld+jsonJSON-LD (linked data, schema.org) | JSON-LD (linked data, schema.org) |
| .geojson | application/geo+jsonGeoJSON | GeoJSON |
| .ndjson .jsonl | application/x-ndjsonNewline-delimited JSON | Newline-delimited JSON |
| .webmanifest | application/manifest+jsonWeb app manifest | Web app manifest |
| .wasm | application/wasmWebAssembly binary | WebAssembly binary |
| .bin | application/octet-streamArbitrary binary data | Arbitrary binary data |
| .exe .dll | application/vnd.microsoft.portable-executableWindows executable | Windows executable |
| .msi | application/x-msiWindows installer | Windows installer |
| .dmg | application/x-apple-diskimagemacOS disk image | macOS disk image |
| .pkg | application/octet-streammacOS installer package | macOS installer package |
| .deb | application/vnd.debian.binary-packageDebian package | Debian package |
| .rpm | application/x-rpmRPM package | RPM package |
| .apk | application/vnd.android.package-archiveAndroid app (APK) | Android app (APK) |
| .ipa | application/octet-streamiOS app archive | iOS app archive |
| .jar | application/java-archiveJava archive | Java archive |
| .class | application/java-vmJava class file | Java class file |
| .swf | application/x-shockwave-flashAdobe Flash (obsolete) | Adobe Flash (obsolete) |
| .sqlite .db | application/vnd.sqlite3SQLite database | SQLite database |
| .parquet | application/vnd.apache.parquetApache Parquet | Apache Parquet |
| .avro | application/avroApache Avro | Apache Avro |
| .pb .proto | application/x-protobufProtocol Buffers | Protocol Buffers |
| .msgpack | application/msgpackMessagePack | MessagePack |
| .rss | application/rss+xmlRSS feed | RSS feed |
| .atom | application/atom+xmlAtom feed | Atom feed |
| .pem .crt .cer | application/x-pem-filePEM certificate / key | PEM certificate / key |
| .der | application/x-x509-ca-certDER certificate | DER certificate |
| .p12 .pfx | application/x-pkcs12PKCS#12 keystore | PKCS#12 keystore |
| .torrent | application/x-bittorrentBitTorrent file | BitTorrent file |
| .gpx | application/gpx+xmlGPS exchange format | GPS exchange format |
| .kml | application/vnd.google-earth.kml+xmlGoogle Earth KML | Google Earth KML |
| .kmz | application/vnd.google-earth.kmzGoogle Earth KMZ | Google Earth KMZ |
| .glb | model/gltf-binaryglTF binary 3D model | glTF binary 3D model |
| .gltf | model/gltf+jsonglTF 3D model | glTF 3D model |
| .obj | model/objWavefront OBJ 3D model | Wavefront OBJ 3D model |
| .stl | model/stlSTL 3D model | STL 3D model |
| .usdz | model/vnd.usdz+zipUSDZ 3D model (Apple AR) | USDZ 3D model (Apple AR) |
| .png | image/pngPNG image | PNG image |
| .jpg .jpeg .jpe .jfif | image/jpegJPEG image | JPEG image |
| .gif | image/gifGIF image | GIF image |
| .webp | image/webpWebP image | WebP image |
| .avif | image/avifAVIF image | AVIF image |
| .svg .svgz | image/svg+xmlSVG vector image | SVG vector image |
| .ico | image/vnd.microsoft.iconIcon (favicon) | Icon (favicon) |
| .bmp | image/bmpBitmap image | Bitmap image |
| .tif .tiff | image/tiffTIFF image | TIFF image |
| .heic | image/heicHEIC image (iPhone photos) | HEIC image (iPhone photos) |
| .heif | image/heifHEIF image | HEIF image |
| .jxl | image/jxlJPEG XL image | JPEG XL image |
| .apng | image/apngAnimated PNG | Animated PNG |
| .psd | image/vnd.adobe.photoshopPhotoshop document | Photoshop document |
| .raw .cr2 .nef .arw .dng | image/x-rawCamera RAW image (vendor types vary, e.g. image/x-canon-cr2) | Camera RAW image (vendor types vary, e.g. image/x-canon-cr2) |
| .eps | application/postscriptEncapsulated PostScript | Encapsulated PostScript |
| .ai | application/postscriptAdobe Illustrator | Adobe Illustrator |
| .mp3 | audio/mpegMP3 audio | MP3 audio |
| .wav | audio/wavWAV audio | WAV audio |
| .ogg .oga | audio/oggOgg audio (Vorbis/Opus) | Ogg audio (Vorbis/Opus) |
| .opus | audio/opusOpus audio | Opus audio |
| .m4a | audio/mp4MPEG-4 audio (AAC) | MPEG-4 audio (AAC) |
| .aac | audio/aacAAC audio (ADTS) | AAC audio (ADTS) |
| .flac | audio/flacFLAC lossless audio | FLAC lossless audio |
| .weba | audio/webmWebM audio | WebM audio |
| .mid .midi | audio/midiMIDI | MIDI |
| .aiff .aif | audio/aiffAIFF audio | AIFF audio |
| .amr | audio/amrAMR audio (voice) | AMR audio (voice) |
| .m3u | audio/x-mpegurlM3U playlist | M3U playlist |
| .mp4 .m4v | video/mp4MPEG-4 video | MPEG-4 video |
| .webm | video/webmWebM video | WebM video |
| .ogv | video/oggOgg video | Ogg video |
| .mov .qt | video/quicktimeQuickTime video | QuickTime video |
| .avi | video/x-msvideoAVI video | AVI video |
| .mkv | video/x-matroskaMatroska video | Matroska video |
| .wmv | video/x-ms-wmvWindows Media video | Windows Media video |
| .flv | video/x-flvFlash video | Flash video |
| .mpeg .mpg | video/mpegMPEG video | MPEG video |
| .3gp | video/3gpp3GPP video | 3GPP video |
| .m3u8 | application/vnd.apple.mpegurlHLS playlist | HLS playlist |
| .mpd | application/dash+xmlMPEG-DASH manifest | MPEG-DASH manifest |
| .woff2 | font/woff2WOFF2 web font | WOFF2 web font |
| .woff | font/woffWOFF web font | WOFF web font |
| .ttf | font/ttfTrueType font | TrueType font |
| .otf | font/otfOpenType font | OpenType font |
| .eot | application/vnd.ms-fontobjectEmbedded OpenType (legacy IE) | Embedded OpenType (legacy IE) |
| application/pdfPDF document | PDF document | |
| .doc | application/mswordWord document (97–2003) | Word document (97–2003) |
| .docx | application/vnd.openxmlformats-officedocument.wordprocessingml.documentWord document | Word document |
| .xls | application/vnd.ms-excelExcel spreadsheet (97–2003) | Excel spreadsheet (97–2003) |
| .xlsx | application/vnd.openxmlformats-officedocument.spreadsheetml.sheetExcel spreadsheet | Excel spreadsheet |
| .xlsm | application/vnd.ms-excel.sheet.macroEnabled.12Excel macro-enabled workbook | Excel macro-enabled workbook |
| .ppt | application/vnd.ms-powerpointPowerPoint (97–2003) | PowerPoint (97–2003) |
| .pptx | application/vnd.openxmlformats-officedocument.presentationml.presentationPowerPoint presentation | PowerPoint presentation |
| .odt | application/vnd.oasis.opendocument.textOpenDocument text | OpenDocument text |
| .ods | application/vnd.oasis.opendocument.spreadsheetOpenDocument spreadsheet | OpenDocument spreadsheet |
| .odp | application/vnd.oasis.opendocument.presentationOpenDocument presentation | OpenDocument presentation |
| .epub | application/epub+zipEPUB e-book | EPUB e-book |
| .mobi | application/x-mobipocket-ebookMobipocket e-book | Mobipocket e-book |
| .azw | application/vnd.amazon.ebookKindle e-book | Kindle e-book |
| .pages | application/vnd.apple.pagesApple Pages | Apple Pages |
| .numbers | application/vnd.apple.numbersApple Numbers | Apple Numbers |
| .key | application/vnd.apple.keynoteApple Keynote | Apple Keynote |
| .ps | application/postscriptPostScript | PostScript |
| .eml | message/rfc822Email message | Email message |
| .msg | application/vnd.ms-outlookOutlook message | Outlook message |
| .tex | application/x-texLaTeX source | LaTeX source |
| .zip | application/zipZIP archive | ZIP archive |
| .gz .tgz | application/gzipGzip archive | Gzip archive |
| .tar | application/x-tarTar archive | Tar archive |
| .bz2 | application/x-bzip2Bzip2 archive | Bzip2 archive |
| .xz | application/x-xzXZ archive | XZ archive |
| .zst | application/zstdZstandard archive | Zstandard archive |
| .br | application/x-brotliBrotli-compressed file | Brotli-compressed file |
| .7z | application/x-7z-compressed7-Zip archive | 7-Zip archive |
| .rar | application/vnd.rarRAR archive | RAR archive |
| .iso | application/x-iso9660-imageISO disk image | ISO disk image |
How to look up a MIME type
- Type an extension such as
webp, a file name likereport.xlsx, or a type likefont/woff2. - The exact match appears at the top with a ready-to-paste
Content-Typeheader; the table lists every related type. - Filter by category (images, fonts, documents…) to browse.
The MIME types every web server needs
| Extension | Content-Type |
|---|---|
.html | text/html; charset=utf-8 |
.css | text/css |
.js / mjs | text/javascript |
.json | application/json |
.svg | image/svg+xml |
.webp / avif | image/webp, image/avif |
.woff2 | font/woff2 |
.wasm | application/wasm |
.webmanifest | application/manifest+json |
.mp4 | video/mp4 |
A wrong type causes real bugs: scripts served as text/plain are blocked when X-Content-Type-Options: nosniff is set, ES modules must be a JavaScript type, .wasm needs application/wasm for streaming compilation, and SVGs served as application/octet-stream download instead of rendering.
Setting MIME types on your server
nginx
# /etc/nginx/mime.types is included by default; add missing ones:
types {
application/manifest+json webmanifest;
image/avif avif;
}Express
// express.static uses the mime-types package automatically.
res.type("application/json"); // set explicitly
res.set("Content-Type", "text/csv; charset=utf-8");Apache (.htaccess)
AddType font/woff2 .woff2 AddType application/wasm .wasm
Anatomy of a MIME type
A media type is type/subtype plus optional parameters: text/html; charset=utf-8. The top-level types are text, image, audio, video, font, model, application and multipart. A +json or +xml suffix (e.g. application/ld+json) means the format is built on JSON or XML. vnd. subtypes are vendor-specific and x- subtypes are unregistered.
Related tools
Frequently asked questions
What is a MIME type?
A MIME type (media type) is a two-part label like image/png or application/json that tells software what kind of data a file or HTTP body contains. Servers send it in the Content-Type header.
What MIME type should I use for an unknown file?
application/octet-stream, the generic type for arbitrary binary data. Browsers will download it rather than display it.
Is it application/javascript or text/javascript?
text/javascript. RFC 9239 (2022) made it the official type and marked application/javascript obsolete, though browsers accept both.
What's the MIME type for JSON?
application/json. Don't add a charset parameter — JSON is always UTF-8 by definition (RFC 8259), although many servers still send charset=utf-8.
Your business here? Sponsor this tool from $16/week. See placements