Skip to content
Tesserae

Keyboard shortcuts

Focus search
/
This help dialog
?
Run the current tool
Ctrl/⌘ +Enter
Copy the output (when an output is focused)
Ctrl/⌘ +C

Shortcuts are ignored while you are typing in an input, a textarea or a select.

Web & CSS

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.

On-device No network Offline-ready

🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.

Try:

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.

See category