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.
The five top-level categories explained
| Category | What it covers | Example |
|---|---|---|
text | Human-readable content | text/html, text/css |
image | Still and animated images | image/png, image/webp |
audio | Audio streams and files | audio/mpeg, audio/ogg |
video | Video streams and files | video/mp4, video/webm |
application | Structured and binary data | application/json, application/wasm |
font | Web font formats | font/woff2, font/ttf |
multipart | Mixed content bodies | multipart/form-data |
Structured-suffix and vendor types
Two naming conventions extend the main types:
- Structured suffixes use a
+to signal the encoding format inside a container.application/ld+jsonmeans JSON-LD data encoded as JSON;image/svg+xmlmeans SVG encoded as XML. These help parsers choose the right deserializer without knowing the specific format. - Vendor types use the
vnd.prefix for proprietary formats. For example,application/vnd.ms-excelis the classic.xlsformat andapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheetis.xlsx. Searchingxlsin this tool surfaces both.
Tips and edge cases
Always send charset=utf-8 on text types so non-ASCII characters render
correctly. 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 —
that combination will actively block the resource rather than just sniff past it.
This list covers the common cases; the full IANA registry at iana.org/assignments/media-types is the authoritative source for rare or newly registered types.