# MIME Types

The MIME type and Content-Type header for 60 common file formats.

## Text & code

Markup, stylesheets, scripts and data formats. Send these with a charset and compress them.

| Extension | MIME type |
|---|---|
| [.html .htm](https://www.devkult.com/mime/html.md) | `text/html` |
| [.css](https://www.devkult.com/mime/css.md) | `text/css` |
| [.js .mjs .cjs](https://www.devkult.com/mime/js.md) | `text/javascript` |
| [.json](https://www.devkult.com/mime/json.md) | `application/json` |
| [.jsonld](https://www.devkult.com/mime/jsonld.md) | `application/ld+json` |
| [.map](https://www.devkult.com/mime/map.md) | `application/json` |
| [.xml](https://www.devkult.com/mime/xml.md) | `application/xml` |
| [.txt](https://www.devkult.com/mime/txt.md) | `text/plain` |
| [.csv](https://www.devkult.com/mime/csv.md) | `text/csv` |
| [.md .markdown](https://www.devkult.com/mime/md.md) | `text/markdown` |
| [.yaml .yml](https://www.devkult.com/mime/yaml.md) | `application/yaml` |
| [.ics](https://www.devkult.com/mime/ics.md) | `text/calendar` |
| [.vtt](https://www.devkult.com/mime/vtt.md) | `text/vtt` |
| [.sql](https://www.devkult.com/mime/sql.md) | `application/sql` |

## Images

Raster and vector image formats for the web and beyond.

| Extension | MIME type |
|---|---|
| [.png](https://www.devkult.com/mime/png.md) | `image/png` |
| [.jpg .jpeg .jpe](https://www.devkult.com/mime/jpg.md) | `image/jpeg` |
| [.gif](https://www.devkult.com/mime/gif.md) | `image/gif` |
| [.webp](https://www.devkult.com/mime/webp.md) | `image/webp` |
| [.avif](https://www.devkult.com/mime/avif.md) | `image/avif` |
| [.svg](https://www.devkult.com/mime/svg.md) | `image/svg+xml` |
| [.ico](https://www.devkult.com/mime/ico.md) | `image/vnd.microsoft.icon` |
| [.bmp](https://www.devkult.com/mime/bmp.md) | `image/bmp` |
| [.tiff .tif](https://www.devkult.com/mime/tiff.md) | `image/tiff` |
| [.heic .heif](https://www.devkult.com/mime/heic.md) | `image/heic` |

## Fonts

Web fonts and desktop font files, registered under the font/ top-level type.

| Extension | MIME type |
|---|---|
| [.woff2](https://www.devkult.com/mime/woff2.md) | `font/woff2` |
| [.woff](https://www.devkult.com/mime/woff.md) | `font/woff` |
| [.ttf](https://www.devkult.com/mime/ttf.md) | `font/ttf` |
| [.otf](https://www.devkult.com/mime/otf.md) | `font/otf` |

## Audio

Compressed and uncompressed audio formats.

| Extension | MIME type |
|---|---|
| [.mp3](https://www.devkult.com/mime/mp3.md) | `audio/mpeg` |
| [.wav](https://www.devkult.com/mime/wav.md) | `audio/wav` |
| [.ogg .oga](https://www.devkult.com/mime/ogg.md) | `audio/ogg` |
| [.m4a](https://www.devkult.com/mime/m4a.md) | `audio/mp4` |
| [.aac](https://www.devkult.com/mime/aac.md) | `audio/aac` |
| [.flac](https://www.devkult.com/mime/flac.md) | `audio/flac` |

## Video

Video containers. The MIME type names the container, not the codec inside it.

| Extension | MIME type |
|---|---|
| [.ts](https://www.devkult.com/mime/ts.md) | `video/mp2t` |
| [.mp4 .m4v](https://www.devkult.com/mime/mp4.md) | `video/mp4` |
| [.webm](https://www.devkult.com/mime/webm.md) | `video/webm` |
| [.mov .qt](https://www.devkult.com/mime/mov.md) | `video/quicktime` |
| [.avi](https://www.devkult.com/mime/avi.md) | `video/x-msvideo` |
| [.m3u8](https://www.devkult.com/mime/m3u8.md) | `application/vnd.apple.mpegurl` |

## Documents

PDF, Microsoft Office, OpenDocument and e-book formats.

| Extension | MIME type |
|---|---|
| [.pdf](https://www.devkult.com/mime/pdf.md) | `application/pdf` |
| [.doc](https://www.devkult.com/mime/doc.md) | `application/msword` |
| [.docx](https://www.devkult.com/mime/docx.md) | `application/vnd.openxmlformats-officedocument.wordprocessingml.document` |
| [.xls](https://www.devkult.com/mime/xls.md) | `application/vnd.ms-excel` |
| [.xlsx](https://www.devkult.com/mime/xlsx.md) | `application/vnd.openxmlformats-officedocument.spreadsheetml.sheet` |
| [.ppt](https://www.devkult.com/mime/ppt.md) | `application/vnd.ms-powerpoint` |
| [.pptx](https://www.devkult.com/mime/pptx.md) | `application/vnd.openxmlformats-officedocument.presentationml.presentation` |
| [.odt](https://www.devkult.com/mime/odt.md) | `application/vnd.oasis.opendocument.text` |
| [.rtf](https://www.devkult.com/mime/rtf.md) | `application/rtf` |
| [.epub](https://www.devkult.com/mime/epub.md) | `application/epub+zip` |

## Archives

Compressed archives and bundles.

| Extension | MIME type |
|---|---|
| [.zip](https://www.devkult.com/mime/zip.md) | `application/zip` |
| [.gz .gzip](https://www.devkult.com/mime/gz.md) | `application/gzip` |
| [.tar](https://www.devkult.com/mime/tar.md) | `application/x-tar` |
| [.7z](https://www.devkult.com/mime/7z.md) | `application/x-7z-compressed` |
| [.rar](https://www.devkult.com/mime/rar.md) | `application/vnd.rar` |

## Apps & binaries

WebAssembly, app packages, manifests and arbitrary binary data.

| Extension | MIME type |
|---|---|
| [.wasm](https://www.devkult.com/mime/wasm.md) | `application/wasm` |
| [.webmanifest](https://www.devkult.com/mime/webmanifest.md) | `application/manifest+json` |
| [.bin](https://www.devkult.com/mime/bin.md) | `application/octet-stream` |
| [.apk](https://www.devkult.com/mime/apk.md) | `application/vnd.android.package-archive` |
| [.jar](https://www.devkult.com/mime/jar.md) | `application/java-archive` |