Content-Type Header Builder & Parser
Generate a Content-Type header from a media type and parameters, or parse pasted values into a readable table. Validates media-type tokens, quoted parameters, charsets, and multipart boundary requirements entirely on-device.
🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.
Options
Your result will appear here
Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.
How it works
Building a header from parts
Build mode joins a media type with an optional charset and boundary. The type must use type/subtype syntax, and a boundary is limited to 70 characters with no quotes, semicolons or line breaks. Multipart types are refused outright when no boundary is supplied.
Parsing one header or many
Parse mode accepts one Content-Type per line and returns a table of the media type, every parameter and its value, plus any issues. Pasting several lines at once makes it easy to compare what different endpoints really send.
What counts as a problem
A line without type/subtype syntax is marked invalid. Duplicate parameters, a charset containing non-token characters, and a multipart value missing its boundary are flagged for review instead of being quietly accepted.
Where the scope ends
The header text is all the tool can see. It cannot confirm whether a body was really encoded as the charset claims, and it does not decode, inspect or validate the payload the header describes.
Parsed on your device
Values are read and assembled in the browser. Nothing is uploaded, no request is made, and the page runs offline.
Questions
Should JSON include a charset?
UTF-8 is the standard encoding for JSON, and many APIs send application/json without a charset. Either form is commonly accepted.
Why does multipart need a boundary?
The boundary separates parts in the body. The server must use the same boundary value in the body delimiters.
Does this inspect the body encoding?
No. It only parses or builds the header value and cannot infer how an external body was actually encoded.
Related tools
See category- MIME Type Lookup
- HTTP Range Header Builder & Parser
- Quoted-Printable Encode / Decode
- :nth-child An+B Evaluator
MIME Type Lookup
Look up the MIME type for an extension, or the extensions for a MIME type.
HTTP Range Header Builder & Parser
Build or inspect byte-range request and response headers.
Quoted-Printable Encode / Decode
Encode or decode MIME quoted-printable (=XX escapes, soft line breaks).
:nth-child An+B Evaluator
Parse CSS An+B (:nth-child, :nth-of-type) microsyntax, validate it, and list which child indices it matches.