Common MIME Types Reference
A grouped list of common MIME media types with their usual file extensions, plus how Content-Type, charset and nosniff work in HTTP.
By the tools4free.dev team · Last reviewed 4 December 2026
How to read this reference
A MIME type, now officially called a media type, tells software what kind of data it is handling. It has the form type/subtype, for example text/html or image/png. The type is the broad family (text, image, audio, video, font, application, multipart) and the subtype names the specific format. A subtype can carry a suffix that names the underlying syntax, as in image/svg+xml (an image whose syntax is XML) or application/ld+json (JSON-LD). It can also carry parameters after a semicolon, such as text/html; charset=utf-8.
On the web, a server states the type of a response in the Content-Type header, and a client states the type of a request body the same way. The Accept request header lists the types a client can handle. Email, file uploads, package formats and many APIs use the same registry.
Official names are kept in the IANA Media Types registry. Some formats in everyday use are not registered, or are registered under a different name from the one most servers send. We list the names that servers and browsers actually use, and we say in the notes where a name is not the registered one. Extensions are conventions of file systems, not part of the type, so the same type can have several extensions and one extension can map to several types.
The tables are grouped by family. To convert images between these formats, use the image converter. To work with JSON or CSV, see the JSON formatter and the CSV and JSON converter.
The types you will meet most
Text
| MIME type | Typical extension | Notes |
|---|---|---|
text/plain | .txt | Plain text with no markup. Specify the charset, normally UTF-8. |
text/html | .html, .htm | Web pages. Browsers expect charset=utf-8 or a meta charset tag. |
text/css | .css | Stylesheets. A wrong type can make browsers ignore the stylesheet in strict mode. |
text/javascript | .js, .mjs | The current standard type for JavaScript (RFC 9239). Used for both scripts and modules. |
text/csv | .csv | Comma-separated values (RFC 4180). |
text/markdown | .md | Markdown text (RFC 7763). |
text/calendar | .ics | iCalendar events. |
text/xml | .xml | XML as text. The application/xml type is usually preferred. |
Data and application formats
| MIME type | Typical extension | Notes |
|---|---|---|
application/json | .json | JSON data. No charset parameter is needed, because JSON is UTF-8. |
application/ld+json | .jsonld | JSON-LD, used for structured data on web pages. |
application/xml | .xml | General XML documents. |
application/x-www-form-urlencoded | (none) | The default encoding of HTML form posts, with key=value pairs. |
application/octet-stream | .bin | Arbitrary binary data. Browsers usually download it instead of showing it. It is also the default when the type is unknown. |
application/wasm | .wasm | WebAssembly modules. |
application/rtf | .rtf | Rich Text Format. |
application/javascript | .js | The older name for JavaScript. Obsolete; use text/javascript. |
Documents and office files
| MIME type | Typical extension | Notes |
|---|---|---|
application/pdf | .pdf | Portable Document Format. |
application/msword | .doc | Legacy Microsoft Word binary format. |
application/vnd.openxmlformats-officedocument.wordprocessingml.document | .docx | Word documents in Office Open XML. |
application/vnd.ms-excel | .xls | Legacy Microsoft Excel binary format. |
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet | .xlsx | Excel workbooks in Office Open XML. |
application/vnd.ms-powerpoint | .ppt | Legacy PowerPoint binary format. |
application/vnd.openxmlformats-officedocument.presentationml.presentation | .pptx | PowerPoint presentations in Office Open XML. |
application/epub+zip | .epub | E-books in the EPUB format. |
Archives and compression
| MIME type | Typical extension | Notes |
|---|---|---|
application/zip | .zip | ZIP archives. Also the base for formats such as .docx and .epub. |
application/gzip | .gz | Gzip-compressed data. |
application/x-tar | .tar | Tape archive. Often combined with gzip as .tar.gz. |
application/vnd.rar | .rar | RAR archives. |
application/x-7z-compressed | .7z | 7-Zip archives. This name is in common use but is not an IANA-registered type. |
Images
| MIME type | Typical extension | Notes |
|---|---|---|
image/jpeg | .jpg, .jpeg | Photographs. Lossy compression, no transparency. |
image/png | .png | Lossless raster images with transparency. |
image/gif | .gif | Palette images and simple animation. |
image/webp | .webp | Modern lossy and lossless format with transparency and animation. |
image/avif | .avif | High-efficiency image format based on AV1. |
image/svg+xml | .svg | Vector graphics in XML. Can contain scripts, so treat untrusted SVG with care. |
image/apng | .apng | Animated PNG. |
image/bmp | .bmp | Windows bitmap. |
image/tiff | .tif, .tiff | Tagged Image File Format, used in scanning and print. |
image/x-icon | .ico | Icon files. Servers also send image/vnd.microsoft.icon, the registered name. |
Audio and video
| MIME type | Typical extension | Notes |
|---|---|---|
audio/mpeg | .mp3 | MP3 audio. |
audio/aac | .aac | AAC audio. |
audio/mp4 | .m4a | Audio in an MP4 container. |
audio/ogg | .oga, .ogg | Ogg audio, for example Vorbis or Opus. |
audio/wav | .wav | Waveform audio. Servers also use audio/x-wav; audio/vnd.wave is the registered name. |
audio/webm | .weba | Audio in a WebM container. |
audio/flac | .flac | Lossless audio. |
video/mp4 | .mp4 | The most widely supported video container. |
video/webm | .webm | Open web video container, usually VP8, VP9 or AV1. |
video/ogg | .ogv | Ogg video. |
video/mpeg | .mpeg, .mpg | MPEG video. |
video/quicktime | .mov | Apple QuickTime movies. |
Fonts
| MIME type | Typical extension | Notes |
|---|---|---|
font/woff2 | .woff2 | Web Open Font Format 2. Best compressed format for web fonts. |
font/woff | .woff | Web Open Font Format. |
font/ttf | .ttf | TrueType fonts. |
font/otf | .otf | OpenType fonts. |
Multipart
| MIME type | Typical extension | Notes |
|---|---|---|
multipart/form-data | (none) | Form posts that include files. Each part has its own headers, separated by a boundary string. |
multipart/byteranges | (none) | The body of a 206 response that returns several ranges. |
Content-Type in practice
Content-Type: text/html; charset=utf-8
Content-Type: application/json
Content-Type: multipart/form-data; boundary=----example
X-Content-Type-Options: nosniff
The charset parameter tells the client how to turn bytes into characters. UTF-8 is the usual choice for text types. The boundary parameter is required for multipart bodies. X-Content-Type-Options: nosniff tells browsers to trust the declared type instead of guessing from the content, which blocks a class of attacks where a file served as one type is run as another. With nosniff set, a script or stylesheet with the wrong type is refused.
When you decode or encode data in a form or query string, the encoder and decoder shows what the bytes look like.
Common mistakes
- Serving JavaScript as text/plain. With nosniff enabled, browsers refuse to run it. Use text/javascript.
- Sending everything as application/octet-stream. The file will download instead of displaying.
- Leaving out the charset on text. Without it, clients may guess the wrong encoding and show garbled characters.
- Trusting the extension or the uploaded Content-Type. A client can send any value. Validate uploads by inspecting the content.
- Using the legacy Office types for new files. The .docx, .xlsx and .pptx families have the long vnd.openxmlformats names.