Navigation
Cheat Sheet · Free Reference

MIME Types Reference

Complete MIME types reference with content types, file extensions, and descriptions for text, application, image, audio, video, font, and multipart.
Searchable, copyable, always up to date.

Text

MIME types for human-readable text content and markup languages.

MIME TypeExtensionDescription
text/plain.txtPlain text with no formatting
text/html.html, .htmHTML document
text/css.cssCascading Style Sheets
text/javascript.js, .mjsJavaScript source code
text/csv.csvComma-separated values
text/xml.xmlXML document (text-readable)
text/markdown.md, .markdownMarkdown formatted text

Application

MIME types for binary data, structured formats, and application-specific content.

MIME TypeExtensionDescription
application/json.jsonJSON data
application/xml.xmlXML document (application-level)
application/pdf.pdfPortable Document Format
application/zip.zipZIP archive
application/gzip.gzGzip compressed archive
application/x-tar.tarTape archive (uncompressed)
application/octet-stream(any)Arbitrary binary data (default for unknown types)
application/x-www-form-urlencodedHTML form data encoded as key-value pairs
application/javascript.jsJavaScript (preferred over text/javascript in some contexts)
application/ld+json.jsonldJSON-LD linked data
application/wasm.wasmWebAssembly binary module
application/x-httpd-php.phpPHP source file
application/x-sh.shUnix shell script
application/sql.sqlSQL query file
application/graphql.graphqlGraphQL query language
application/rtf.rtfRich Text Format
application/x-7z-compressed.7z7-Zip compressed archive
application/vnd.ms-excel.xlsMicrosoft Excel (legacy format)
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.xlsxMicrosoft Excel (OpenXML)
application/msword.docMicrosoft Word (legacy format)
application/vnd.openxmlformats-officedocument.wordprocessingml.document.docxMicrosoft Word (OpenXML)

Image

MIME types for image formats used on the web and in documents.

MIME TypeExtensionDescription
image/jpeg.jpg, .jpegJPEG image (lossy compression)
image/png.pngPNG image (lossless compression)
image/gif.gifGIF image (supports animation)
image/webp.webpWebP image (modern format, lossy/lossless)
image/svg+xml.svgScalable Vector Graphics
image/x-icon.icoICO icon format (favicons)
image/avif.avifAVIF image (next-gen format)
image/bmp.bmpBitmap image (uncompressed)
image/tiff.tiff, .tifTIFF image (print and archival)

Audio

MIME types for audio formats and codecs.

MIME TypeExtensionDescription
audio/mpeg.mp3MP3 audio (lossy compression)
audio/ogg.ogg, .ogaOgg Vorbis audio
audio/wav.wavWAV audio (uncompressed PCM)
audio/webm.webaWebM audio
audio/aac.aacAAC audio (Advanced Audio Coding)
audio/flac.flacFLAC audio (lossless compression)

Video

MIME types for video container formats.

MIME TypeExtensionDescription
video/mp4.mp4MP4 video (H.264/H.265)
video/webm.webmWebM video (VP8/VP9/AV1)
video/ogg.ogvOgg Theora video
video/mpeg.mpeg, .mpgMPEG video

Font

MIME types for web font formats.

MIME TypeExtensionDescription
font/woff.woffWeb Open Font Format
font/woff2.woff2Web Open Font Format 2 (better compression)
font/ttf.ttfTrueType Font
font/otf.otfOpenType Font

Multipart

MIME types for multi-part message bodies, commonly used in form submissions and HTTP responses.

MIME TypeExtensionDescription
multipart/form-dataForm data with file uploads (used in HTML forms with enctype)
multipart/byterangesPartial content responses (HTTP 206 with multiple ranges)

Frequently Asked Questions

A MIME type (Multipurpose Internet Mail Extensions type), also known as a media type or content type, is a standard identifier used to indicate the nature and format of a file or data. It consists of a type and subtype separated by a slash (e.g., text/html, application/json). MIME types are used in HTTP Content-Type headers, email attachments, and file upload handling to tell browsers and servers how to process data.

The HTTP Content-Type header tells the browser or client what MIME type the response body contains. For example, Content-Type: application/json indicates JSON data, while Content-Type: text/html; charset=utf-8 indicates an HTML document with UTF-8 encoding. Without the correct Content-Type header, browsers may misinterpret the data, leading to rendering errors or security vulnerabilities like MIME-type sniffing attacks.

Incorrect or missing MIME types can lead to MIME-type sniffing attacks, where a browser guesses the content type and may execute malicious content. For example, an attacker could upload a file with an image extension but containing JavaScript; if the server serves it without a proper Content-Type and without the X-Content-Type-Options: nosniff header, the browser might execute the script. Always set accurate Content-Type headers and use X-Content-Type-Options: nosniff to prevent sniffing.