Home / Developer Tools / MIME Types
Header Guide

MIME Types Guide

Use this page to look up the right Content-Type header for common file formats so browsers, APIs, and download responses behave as expected.

Best for headers, uploads, and downloadsPairs with MIME Types Reference

Common MIME types

ExtensionMIME typeTypical use
.htmltext/htmlHTML documents
.csstext/cssStylesheets
.jstext/javascriptJavaScript files
.jsonapplication/jsonAPI payloads and data files
.pdfapplication/pdfPDF documents
.csvtext/csvSpreadsheet-style exports

Image MIME types

PNG

image/png for lossless images and transparency.

JPEG

image/jpeg for photos and broad compatibility.

WebP

image/webp for modern compressed web delivery.

SVG

image/svg+xml for vector icons and logos.

Common pitfalls

  • Do not guess MIME types from filenames alone if the upload pipeline can rename files.
  • Using the wrong header can break previews, downloads, or inline rendering.
  • application/octet-stream is a generic fallback, but it is less helpful than the real type.

Use this reference with the right tool

Related tools