Content-Type Parser
Decompose a Content-Type header into mediatype, charset, boundary and other parameters. Useful when debugging APIs and uploads.
Content-Type: type, subtype and parameters
Content-Type states how to interpret the message body, and its structure is richer than everyday use suggests: type, slash, subtype, then as many parameters as needed, each preceded by a semicolon. Paste the value and the page separates all of it, stripping quotes from parameters where present.
The most consequential parameter is charset. Without it on text content the browser guesses — and guesses differently depending on version and configuration, which produces the classic mangled-accents text that shows up for only some visitors. For HTML there is also a precedence rule: the HTTP header beats the declaration inside the document.
Worth knowing about the structured suffix, the part after the plus sign: in application/ld+json or image/svg+xml it states the base syntax. That lets a client which does not know the specific type still process it as JSON or XML. It is the mechanism that lets a new type be useful without every piece of software knowing it.
Frequently asked questions
Do I need to declare charset on JSON?
What is the difference between Content-Type and content sniffing?
Why does boundary appear in the Content-Type?
Related Tools
MIME Types (Reference)
Searchable MIME type table — search by extension (.json, .pdf) or MIME (application/json, image/png). Includes common formats for web, audio, video, fonts and documents. Everything in your browser.
File Extension by MIME Type Lookup
Type a MIME type such as image/png or application/pdf and read back the matching file extension from a table of 24 common web content types.
Data URI Parser
Break a data: URI into mediatype, parameters, base64 flag and payload. Shows decoded byte size of the content.
multipart/form-data Parser
Paste a multipart/form-data body with its boundary and inspect each part (Content-Disposition, filename, Content-Type, size).
MIME Type by File Extension
Type an extension such as json, webp, woff2 or mp4 and get the content-type value, from a table of 38 entries that falls back to application/octet-stream.
Accept-Charset Header Parser
Breaks an Accept-Charset header into charsets and q-values and ranks them by preference. The header is deprecated; today's clients simply assume UTF-8.