Reference

MIME types.

The Content-Type strings you set on responses and uploads — tap any to copy it.

Tap any row to copy the value in the first column.

Text

MIME typeExtensionUsed for
text/plain.txtPlain text
text/html.htmlWeb pages
text/css.cssStylesheets
text/csv.csvCSV data
text/markdown.mdMarkdown
text/javascript.jsJavaScript (modern)

Application

MIME typeExtensionUsed for
application/json.jsonJSON APIs
application/pdf.pdfPDF documents
application/zip.zipZIP archives
application/xml.xmlXML data
application/octet-streamGeneric binary / download
application/x-www-form-urlencodedHTML form posts
application/gzip.gzGzip archives
application/wasm.wasmWebAssembly
application/vnd.ms-excel.xlsLegacy Excel
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.xlsxExcel spreadsheet

Image

MIME typeExtensionUsed for
image/jpeg.jpgJPEG photos
image/png.pngPNG images
image/gif.gifGIF images
image/webp.webpWebP images
image/svg+xml.svgSVG vectors
image/avif.avifAVIF images
image/x-icon.icoFavicons

Audio & video

MIME typeExtensionUsed for
audio/mpeg.mp3MP3 audio
audio/wav.wavWAV audio
audio/ogg.oggOgg audio
video/mp4.mp4MP4 video
video/webm.webmWebM video
video/quicktime.movQuickTime video

Fonts & uploads

MIME typeExtensionUsed for
font/woff2.woff2Web fonts (modern)
font/woff.woffWeb fonts
font/ttf.ttfTrueType fonts
multipart/form-dataFile uploads in forms

Where MIME types show up

A MIME type (also called a media type or Content-Type) is the short string that tells a browser or server what kind of data it's looking at — application/json, image/png, text/html. It travels in the HTTP Content-Type header, and it's what makes a browser render a page instead of downloading it, or hand a PDF to the right viewer. The format is always type/subtype. Two come up constantly in development: application/json for API requests and responses, and application/octet-stream, the generic "unknown binary" type that browsers treat as a download. When a file serves or uploads with the wrong type, this is usually the first header to check. For the response codes that travel alongside it, see HTTP status codes.

FAQ

What's the MIME type for JSON?
application/json. It's the standard Content-Type for JSON request bodies and API responses. Older or non-standard APIs sometimes use text/json, but application/json is correct.
What is application/octet-stream?
It's the generic MIME type for arbitrary binary data — "unknown file". Browsers typically download rather than display it, so it's often used to force a file download or when the real type isn't known.

More references