Look up the right Content-Type, fast
Every file served over HTTP needs a correct media type — the Content-Type
header that tells the browser whether to render, play, or download it. This tool
lets you search a curated list of common IANA media types by file extension
(png, .json, csv) or by any part of the type string (image/, pdf,
+json), and copy the exact value with one click.
How it works
The page ships with a list of media-type entries, each holding the canonical
type (such as application/json), its common file extensions, a human label, and
its top-level category (text, image, audio, video, application,
font, multipart). Your query is normalised — a leading dot is stripped and
the text is lower-cased — and then matched against the type string, the
extensions, and the label. Matches are grouped so an extension search like xls
surfaces both the legacy application/vnd.ms-excel and the modern
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet types.
Tips and notes
Always send charset=utf-8 on text types so non-ASCII characters render. When
serving JSON use application/json, and for JSON-LD use application/ld+json
so structured-data parsers pick it up. For unknown binary data the safe default
is application/octet-stream, which prompts a download rather than inline
rendering. If a browser ignores your declared type, check that you are not
sending X-Content-Type-Options: nosniff together with a mismatched
Content-Type. This list covers the common cases; the full IANA registry is the
authoritative source for rare or newly registered types.