Cookie Request Header Analyzer
Parse a Cookie request header into name/value pairs. Splits on semicolons, preserves quoted values (including semicolons inside), decodes percent-encoding, and flags malformed pairs, empty names, and duplicates. This complements the Set-Cookie builder tool.
🔒 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
Parse a request header into pairs
Paste a Cookie request header, with or without the "Cookie:" prefix, and the tool splits it on semicolons into name/value pairs, each with a status of Valid, Duplicate or Invalid. Values are percent-decoded for display, so %20 becomes a space, and the stats report how many pairs, how many duplicates and whether any percent-encoding was present.
The semicolon rule and quoted values
The delimiter is the semicolon, but double-quoted strings are honoured, so a value like theme="a;b" stays whole. A pair with no equals sign gets an empty name and is marked Invalid with a message saying a cookie pair needs the name=value form. Decoding turns each %XX into the byte it names and leaves plainly written text alone.
Build mode goes the other way
Build takes name=value pairs separated by commas or semicolons and reassembles a single Cookie header joined with "; ". It flags an empty name and detects duplicate names case-insensitively, since a header naming the same cookie twice is broken in practice: a server or proxy normally keeps only the last occurrence.
Local and unread
Parsing and building run entirely in this tab. Cookies often carry session tokens, so it matters that nothing here is uploaded, logged or sent to a server, and the page makes no request while you work.
Questions
How are cookies delimited?
The request-header uses semicolons between pairs and an = between name and value. Quoted values can contain semicolons.
Should I percent-decode values?
Values may be percent-encoded (e.g. space as %20); decoding shows the real value but encoded form is what compares for use.
Are duplicate names allowed?
Broken; only the last name in the HTTP header would normally survive. Servers should treat repeats as an anomaly, and proxies rarely tolerate them.
Related tools
See category- Set-Cookie Builder & Analyzer
- Secret & Credential Scanner
- URL Encode / Decode
- :nth-child An+B Evaluator
Set-Cookie Builder & Analyzer
Build or review Set-Cookie headers and their security attributes locally.
Secret & Credential Scanner
Find and optionally redact likely credentials in pasted text or configuration.
URL Encode / Decode
Percent-encode or decode text for use in URLs — component or whole-URL mode.
:nth-child An+B Evaluator
Parse CSS An+B (:nth-child, :nth-of-type) microsyntax, validate it, and list which child indices it matches.