MIME Types
The MIME type for 105 common file formats, with the exact Content-Type header to send, how to configure nginx, Apache and Express, and the file signature that identifies each format. Unknown binary files fall back to application/octet-stream.
Text & code
| .html .htm | text/html | HTML document |
| .css | text/css | CSS stylesheet |
| .js .mjs .cjs | text/javascript | JavaScript |
| .json | application/json | JSON |
| .jsonld | application/ld+json | JSON-LD |
| .map | application/json | Source map |
| .xml | application/xml | XML |
| .txt | text/plain | Plain text |
| .csv | text/csv | Comma-separated values |
| .md .markdown | text/markdown | Markdown |
| .yaml .yml | application/yaml | YAML |
| .ics | text/calendar | iCalendar |
| .vtt | text/vtt | WebVTT subtitles |
| .sql | application/sql | SQL script |
| .ndjson .jsonl | application/x-ndjson | Newline-delimited JSON |
| .toml | application/toml | TOML |
| .xhtml | application/xhtml+xml | XHTML document |
| .geojson | application/geo+json | GeoJSON |
| .kml | application/vnd.google-earth.kml+xml | KML |
| .gpx | application/gpx+xml | GPX track |
| .sh | application/x-sh | Shell script |
| .py | text/x-python | Python source |
| .srt | application/x-subrip | SubRip subtitles |
| .vcf .vcard | text/vcard | vCard contact |
Images
| .png | image/png | PNG image |
| .jpg .jpeg .jpe | image/jpeg | JPEG image |
| .gif | image/gif | GIF image |
| .webp | image/webp | WebP image |
| .avif | image/avif | AVIF image |
| .svg | image/svg+xml | SVG image |
| .ico | image/vnd.microsoft.icon | ICO icon |
| .bmp | image/bmp | Bitmap image |
| .tiff .tif | image/tiff | TIFF image |
| .heic .heif | image/heic | HEIC image |
| .psd | image/vnd.adobe.photoshop | Photoshop document |
| .eps .ps .ai | application/postscript | PostScript and EPS |
Fonts
Audio
Video
| .ts | video/mp2t | MPEG transport stream |
| .mp4 .m4v | video/mp4 | MP4 video |
| .webm | video/webm | WebM video |
| .mov .qt | video/quicktime | QuickTime video |
| .avi | video/x-msvideo | AVI video |
| .m3u8 | application/vnd.apple.mpegurl | HLS playlist |
| .mkv | video/matroska | Matroska video |
| .mpeg .mpg .mpe | video/mpeg | MPEG video |
| .3gp | video/3gpp | 3GPP video |
| .wmv | video/x-ms-wmv | Windows Media video |
| .flv | video/x-flv | Flash video |
| .mpd | application/dash+xml | MPEG-DASH manifest |
Documents
| application/pdf | PDF document | |
| .doc | application/msword | Word 97–2003 document |
| .docx | application/vnd.openxmlformats-officedocument.wordprocessingml.document | Word document |
| .xls | application/vnd.ms-excel | Excel 97–2003 workbook |
| .xlsx | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet | Excel 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 |
| .rtf | application/rtf | Rich Text Format |
| .epub | application/epub+zip | EPUB e-book |
| .ods | application/vnd.oasis.opendocument.spreadsheet | OpenDocument spreadsheet |
| .odp | application/vnd.oasis.opendocument.presentation | OpenDocument presentation |
| .docm | application/vnd.ms-word.document.macroEnabled.12 | Macro-enabled Word document |
| .xlsm | application/vnd.ms-excel.sheet.macroEnabled.12 | Macro-enabled Excel workbook |
| .eml | message/rfc822 | Email message |
| .msg | application/vnd.ms-outlook | Outlook message |
Archives
| .zip | application/zip | ZIP archive |
| .gz .gzip | application/gzip | Gzip file |
| .tar | application/x-tar | Tar archive |
| .7z | application/x-7z-compressed | 7-Zip archive |
| .rar | application/vnd.rar | RAR archive |
| .bz2 | application/x-bzip2 | Bzip2 file |
| .xz | application/x-xz | XZ file |
| .zst | application/zstd | Zstandard file |
| .iso | application/x-iso9660-image | ISO disk image |
Apps & binaries
| .wasm | application/wasm | WebAssembly module |
| .webmanifest | application/manifest+json | Web app manifest |
| .bin | application/octet-stream | Binary data |
| .apk | application/vnd.android.package-archive | Android app package |
| .jar | application/java-archive | Java archive |
| .exe .dll | application/vnd.microsoft.portable-executable | Windows executable |
| .msi | application/x-msi | Windows Installer package |
| .deb | application/vnd.debian.binary-package | Debian package |
| .rpm | application/x-rpm | RPM package |
| .dmg | application/x-apple-diskimage | Apple disk image |
| .parquet | application/vnd.apache.parquet | Apache Parquet |
Certificates & keys
| .pem | application/x-pem-file | PEM file |
| .crt .cer .der | application/pkix-cert | X.509 certificate |
3D models
Request and response body types
Types that describe what an HTTP message carries rather than a file on disk, with a raw example and code to send and parse each.
multipart/form-dataMultipart form data · request body
application/x-www-form-urlencodedURL-encoded form data · request body
text/event-streamServer-sent events · streaming response
application/problem+jsonProblem details · response body
application/json-patch+jsonJSON Patch · request body
application/merge-patch+jsonJSON Merge Patch · request body