MIME Types Reference

A MIME type (also called a media type or Content-Type) tells the browser or server what kind of data a file contains — for example, application/json for a JSON payload or image/png for a PNG. This reference lists the most common MIME types you'll set in HTTP headers, HTML, and APIs, grouped by category with a short description of each.

Format: every MIME type follows the pattern type/subtype, such as text/html or application/pdf.


Application MIME Types

Used for structured data, documents, archives, and binary payloads.

MIME TypeDescription
application/jsonJSON document
application/xmlXML document
application/pdfPortable Document Format
application/zipZIP archive
application/gzipGZIP archive
application/x-tarTAR archive
application/mswordMicrosoft Word (.doc)
application/vnd.openxmlformats-officedocument.wordprocessingml.documentMicrosoft Word (.docx)
application/vnd.ms-excelMicrosoft Excel (.xls)
application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMicrosoft Excel (.xlsx)
application/javascriptJavaScript
application/octet-streamArbitrary binary data
application/x-www-form-urlencodedURL-encoded form data

Image MIME Types

Used for raster and vector image formats.

MIME TypeDescription
image/jpegJPEG image
image/pngPNG image
image/gifGIF image
image/webpWebP image
image/svg+xmlSVG vector image
image/bmpBitmap image
image/tiffTIFF image
image/x-iconIcon (.ico)
image/heicHEIC image

Text MIME Types

Used for human-readable, plain-text-based formats.

MIME TypeDescription
text/plainPlain text
text/htmlHTML document
text/cssCascading Style Sheets
text/csvComma-separated values
text/markdownMarkdown document
text/xmlXML (text)
text/javascriptJavaScript (current)

Audio MIME Types

Used for audio file formats.

MIME TypeDescription
audio/mpegMP3 audio
audio/wavWAV audio
audio/oggOGG audio
audio/webmWebM audio
audio/aacAAC audio
audio/flacFLAC audio
audio/mp4MP4 audio

Video MIME Types

Used for video container and codec formats.

MIME TypeDescription
video/mp4MP4 video
video/webmWebM video
video/oggOGG video
video/quicktimeQuickTime (.mov)
video/x-msvideoAVI video
video/x-matroskaMatroska (.mkv)
video/mpegMPEG video

Multipart MIME Types

Used when a single message contains multiple parts, such as file uploads.

MIME TypeDescription
multipart/form-dataForm data (file uploads)
multipart/mixedMixed content
multipart/alternativeAlternative representations
multipart/relatedRelated content

Font MIME Types

Used for web and desktop font formats.

MIME TypeDescription
font/woffWeb Open Font Format
font/woff2Web Open Font Format 2
font/ttfTrueType font
font/otfOpenType font
font/eotEmbedded OpenType font

Frequently Asked Questions

What is a MIME type? A MIME type (media type) is a standardized label like application/json or image/png that tells software what kind of content a file or HTTP response holds, so it can be handled correctly.

What is the difference between a MIME type and a Content-Type? They refer to the same value. "MIME type" is the general term; Content-Type is the HTTP header that carries that MIME type in a request or response.

What MIME type should I use for JSON? Use application/json. It's the standard type for JSON request and response bodies in APIs.

What is the MIME type for a .docx or .xlsx file? A .docx file uses application/vnd.openxmlformats-officedocument.wordprocessingml.document, and .xlsx uses application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.

What MIME type is used for unknown or binary files? Use application/octet-stream for arbitrary binary data or when the type is unknown. Browsers typically treat it as a download.

Should JavaScript use text/javascript or application/javascript? Both work in browsers. text/javascript is the current standard per the HTML spec, while application/javascript is still widely seen and supported.

Last Updated on Jul 13, 2026