Home › Guides › Reference › Common MIME Types Reference

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/html, text/css, text/javascript, application/json, application/octet-stream, application/pdf, image/png, image/jpeg, image/svg+xml, application/x-www-form-urlencoded and multipart/form-data cover most web traffic.

Text

MIME typeTypical extensionNotes
text/plain.txtPlain text with no markup. Specify the charset, normally UTF-8.
text/html.html, .htmWeb pages. Browsers expect charset=utf-8 or a meta charset tag.
text/css.cssStylesheets. A wrong type can make browsers ignore the stylesheet in strict mode.
text/javascript.js, .mjsThe current standard type for JavaScript (RFC 9239). Used for both scripts and modules.
text/csv.csvComma-separated values (RFC 4180).
text/markdown.mdMarkdown text (RFC 7763).
text/calendar.icsiCalendar events.
text/xml.xmlXML as text. The application/xml type is usually preferred.

Data and application formats

MIME typeTypical extensionNotes
application/json.jsonJSON data. No charset parameter is needed, because JSON is UTF-8.
application/ld+json.jsonldJSON-LD, used for structured data on web pages.
application/xml.xmlGeneral XML documents.
application/x-www-form-urlencoded(none)The default encoding of HTML form posts, with key=value pairs.
application/octet-stream.binArbitrary binary data. Browsers usually download it instead of showing it. It is also the default when the type is unknown.
application/wasm.wasmWebAssembly modules.
application/rtf.rtfRich Text Format.
application/javascript.jsThe older name for JavaScript. Obsolete; use text/javascript.

Documents and office files

MIME typeTypical extensionNotes
application/pdf.pdfPortable Document Format.
application/msword.docLegacy Microsoft Word binary format.
application/vnd.openxmlformats-officedocument.wordprocessingml.document.docxWord documents in Office Open XML.
application/vnd.ms-excel.xlsLegacy Microsoft Excel binary format.
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.xlsxExcel workbooks in Office Open XML.
application/vnd.ms-powerpoint.pptLegacy PowerPoint binary format.
application/vnd.openxmlformats-officedocument.presentationml.presentation.pptxPowerPoint presentations in Office Open XML.
application/epub+zip.epubE-books in the EPUB format.

Archives and compression

MIME typeTypical extensionNotes
application/zip.zipZIP archives. Also the base for formats such as .docx and .epub.
application/gzip.gzGzip-compressed data.
application/x-tar.tarTape archive. Often combined with gzip as .tar.gz.
application/vnd.rar.rarRAR archives.
application/x-7z-compressed.7z7-Zip archives. This name is in common use but is not an IANA-registered type.

Images

MIME typeTypical extensionNotes
image/jpeg.jpg, .jpegPhotographs. Lossy compression, no transparency.
image/png.pngLossless raster images with transparency.
image/gif.gifPalette images and simple animation.
image/webp.webpModern lossy and lossless format with transparency and animation.
image/avif.avifHigh-efficiency image format based on AV1.
image/svg+xml.svgVector graphics in XML. Can contain scripts, so treat untrusted SVG with care.
image/apng.apngAnimated PNG.
image/bmp.bmpWindows bitmap.
image/tiff.tif, .tiffTagged Image File Format, used in scanning and print.
image/x-icon.icoIcon files. Servers also send image/vnd.microsoft.icon, the registered name.

Audio and video

MIME typeTypical extensionNotes
audio/mpeg.mp3MP3 audio.
audio/aac.aacAAC audio.
audio/mp4.m4aAudio in an MP4 container.
audio/ogg.oga, .oggOgg audio, for example Vorbis or Opus.
audio/wav.wavWaveform audio. Servers also use audio/x-wav; audio/vnd.wave is the registered name.
audio/webm.webaAudio in a WebM container.
audio/flac.flacLossless audio.
video/mp4.mp4The most widely supported video container.
video/webm.webmOpen web video container, usually VP8, VP9 or AV1.
video/ogg.ogvOgg video.
video/mpeg.mpeg, .mpgMPEG video.
video/quicktime.movApple QuickTime movies.

Fonts

MIME typeTypical extensionNotes
font/woff2.woff2Web Open Font Format 2. Best compressed format for web fonts.
font/woff.woffWeb Open Font Format.
font/ttf.ttfTrueType fonts.
font/otf.otfOpenType fonts.

Multipart

MIME typeTypical extensionNotes
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

Sources