// reference

MIME Types Reference

Common MIME (media) types by category — text, application, image, audio, video and fonts — with the file extension each maps to.

A MIME type (media type) is the value that goes in a Content-Type header to tell software how to read a file. This reference lists the types you meet most often, grouped by category, with the file extension each one usually maps to.

Text

MIME typeExtensionDescription
text/plain.txtPlain text
text/html.htmlHTML document
text/css.cssCascading Style Sheets
text/csv.csvComma-separated values
text/markdown.mdMarkdown
text/calendar.icsiCalendar

Application

MIME typeExtensionDescription
application/json.jsonJSON data
application/ld+json.jsonldJSON-LD (linked data)
application/xml.xmlXML data
application/javascript.jsJavaScript
application/pdf.pdfPDF document
application/zip.zipZIP archive
application/gzip.gzGzip-compressed file
application/octet-stream.binArbitrary binary data (download)
application/x-www-form-urlencoded—URL-encoded form submission
application/wasm.wasmWebAssembly module
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.xlsxExcel spreadsheet
application/vnd.openxmlformats-officedocument.wordprocessingml.document.docxWord document

Image

MIME typeExtensionDescription
image/png.pngPNG image
image/jpeg.jpgJPEG image
image/gif.gifGIF image
image/webp.webpWebP image
image/avif.avifAVIF image
image/svg+xml.svgSVG vector image
image/x-icon.icoIcon (favicon)

Audio & video

MIME typeExtensionDescription
audio/mpeg.mp3MP3 audio
audio/wav.wavWAV audio
audio/ogg.oggOgg audio
video/mp4.mp4MP4 video
video/webm.webmWebM video
video/ogg.ogvOgg video

Fonts & multipart

MIME typeExtensionDescription
font/woff2.woff2WOFF 2.0 web font
font/woff.woffWOFF web font
font/ttf.ttfTrueType font
font/otf.otfOpenType font
multipart/form-data—Form submission with file uploads
// quick guide

Commonly confused, explained

File uploads and downloads

Office files are ZIP containers but need their own specific types, or applications will not open them correctly. Use application/octet-stream only when nothing more specific applies, and pair downloads with a Content-Disposition header to control the file name. On the upload side, validate the file's content, not the type the client claims.

APIs and data formats

application/json is the default for APIs, application/ld+json is JSON for linked data, and application/xml covers XML. Forms use application/x-www-form-urlencoded, or multipart/form-data when they upload files. A body whose Content-Type does not match its format is a frequent cause of 400 and 415 errors.

Web assets

Browsers enforce the type for scripts and styles, especially with X-Content-Type-Options: nosniff, so serve JavaScript, CSS and WebAssembly with their exact types. Images and fonts have modern formats that give much smaller files.

More developer references

Cheat sheets and lookups paired with 36+ free, private, browser-based tools.

Browse references →
Last updated: Oct 2, 2026