Updated June 29, 2026
MIME Types List and Content-Type Lookup
A MIME type, also called a media type, tells software what kind of data a file or HTTP response contains. Servers send it in the Content-Type header, for example text/html, application/json, or image/png.
Text
| MIME type | Extension | What it is |
|---|---|---|
text/plain | .txt | Plain, unformatted text. |
text/html | .html | HTML web pages. |
text/css | .css | Cascading Style Sheets. |
text/csv | .csv | Comma-separated values. |
text/markdown | .md | Markdown source text. |
text/calendar | .ics | iCalendar calendar files. |
Application
| MIME type | Extension | What it is |
|---|---|---|
application/json | .json | JSON data, common for APIs. |
application/xml | .xml | XML data. |
application/javascript | .js | JavaScript code. |
application/pdf | .pdf | PDF documents. |
application/zip | .zip | ZIP archives. |
application/wasm | .wasm | WebAssembly modules. |
application/octet-stream | (any) | Arbitrary binary data, often a download. |
Images
| MIME type | Extension | What it is |
|---|---|---|
image/jpeg | .jpg | JPEG photos. |
image/png | .png | PNG images with transparency. |
image/gif | .gif | GIF images and simple animation. |
image/webp | .webp | WebP images. |
image/avif | .avif | AVIF images. |
image/svg+xml | .svg | Scalable vector graphics. |
Audio and video
| MIME type | Extension | What it is |
|---|---|---|
audio/mpeg | .mp3 | MP3 audio. |
audio/wav | .wav | Uncompressed WAV audio. |
video/mp4 | .mp4 | MP4 video. |
video/webm | .webm | WebM video. |
Fonts
| MIME type | Extension | What it is |
|---|---|---|
font/woff2 | .woff2 | Web Open Font Format 2, the modern web font. |
font/woff | .woff | Web Open Font Format. |
font/ttf | .ttf | TrueType font. |
Why MIME types matterBrowsers act on the
Content-Type, not the file extension. A wrong MIME type can make a page download instead of render, or trigger X-Content-Type-Options: nosniff errors.References
Questions
What is the difference between a MIME type and a file extension?
A file extension is part of the file name; a MIME type is metadata sent in the Content-Type header. Browsers trust the MIME type to decide how to handle a response.
What MIME type should JavaScript use?
Modern servers should serve JavaScript as text/javascript or application/javascript. Both are widely accepted by browsers.