MIME Types Reference

MIME types (Multipurpose Internet Mail Extensions) are internet standard identifiers for file content types, used in HTTP Content-Type headers.

MIME TypeExtensionCategoryDescription
text/html.htmlTextHTML document
text/css.cssTextCSS stylesheet
text/javascript.jsTextJavaScript script
text/plain.txtTextPlain text
text/xml.xmlTextXML document
text/csv.csvTextCSV comma-separated values
text/markdown.mdTextMarkdown document
application/json.jsonApplicationJSON data
application/xml.xmlApplicationXML data
application/pdf.pdfApplicationPDF document
application/zip.zipApplicationZIP archive
application/gzip.gzApplicationGzip compressed file
application/x-tar.tarApplicationTar archive
application/octet-stream.binApplicationBinary data stream
application/x-www-form-urlencoded-ApplicationURL-encoded form data
multipart/form-data-ApplicationMultipart form data (file upload)
image/jpeg.jpgImageJPEG image
image/png.pngImagePNG image
image/gif.gifImageGIF image
image/svg+xml.svgImageSVG vector image
image/webp.webpImageWebP image
image/x-icon.icoImageIcon file
image/bmp.bmpImageBMP bitmap
audio/mpeg.mp3AudioMP3 audio
audio/wav.wavAudioWAV audio
audio/ogg.oggAudioOGG audio
audio/aac.aacAudioAAC audio
video/mp4.mp4VideoMP4 video
video/webm.webmVideoWebM video
video/x-msvideo.aviVideoAVI video
font/woff.woffFontWOFF font
font/woff2.woff2FontWOFF2 font
font/ttf.ttfFontTrueType font
font/otf.otfFontOpenType font

Frequently Asked Questions

What is a MIME type?

A MIME type (Content-Type) identifies the format of a file or payload as "type/subtype" (e.g. text/html); the server tells the browser how to parse it via the HTTP response header.

Must the extension match the MIME type?

Not necessarily. Browsers honor the Content-Type response header; the extension is only a convention. A wrong configuration can trigger a download or a security block.

Which MIME type for file uploads?

Use multipart/form-data for forms with files; use application/x-www-form-urlencoded for plain key-value forms.

How do I check a resource MIME type?

Inspect the Content-Type response header in the browser DevTools Network panel, or use the site's request/response parsing tools.