Skip to content

MIME Type Reference

Common web extensions and media types for Content-Type headers.

By ToolzHive · Updated

Content-Type describes a representation. A filename extension is a convention, not proof of content or safety.

Download reference CSV

Reference table

MIME Type Reference
ExtensionMedia typeTypical use
.htmltext/htmlHTML
.csstext/cssStylesheet
.js / .mjstext/javascriptJavaScript
.jsonapplication/jsonJSON
.txttext/plainPlain text
.csvtext/csvCSV
.xmlapplication/xmlXML
.pdfapplication/pdfPDF
.jpgimage/jpegJPEG
.pngimage/pngPNG
.webpimage/webpWebP
.avifimage/avifAVIF
.svgimage/svg+xmlSVG
.gifimage/gifGIF
.woff2font/woff2Webfont
.zipapplication/zipZIP archive
.binapplication/octet-streamGeneric binary

Response example

Use Content-Type: application/json for a JSON API. HTML with UTF-8 can use text/html; charset=utf-8. Compression is described separately by Content-Encoding.

Uploads

Validate actual file content, size and allowed types on the server. Do not trust the supplied MIME label alone.

Try the related tools

  • HTTP Headers Checker — View the HTTP response headers and status code of any URL, with a security header review.

Sources

Related references

Browse all free resources

Accessibility Menu

Personalize your experience. Open with Ctrl+U (Option+U on Mac). Preferences stay in this browser when storage is available.

Move / Hide Widget

Restore at any time with Ctrl+U (Option+U on Mac).

Accessibility statement and help