MIME Type Lookup Guide: Content-Type Headers and File Extensions

MIME types tell browsers, APIs and servers how to interpret a file or response. The right Content-Type prevents broken downloads, malformed API responses and confusing browser behavior.

Open the MIME type lookup

What a MIME type looks like

A media type has a category and subtype, such as text/html, application/json, image/png or application/pdf. Some responses also include a charset, for example text/html; charset=utf-8.

Common examples

  • .html: text/html
  • .json: application/json
  • .css: text/css
  • .js: text/javascript
  • .svg: image/svg+xml

Why it matters

Incorrect MIME types can block scripts, force files to download, break fonts or cause API clients to parse a response incorrectly. Always verify headers when moving files between CDNs, servers and static hosts.