Cookie to JSON

About Cookie to JSON

Browser-based Cookie to JSON converter

Parse multiple cookie formats into structured JSON. Supports document.cookie strings, Set-Cookie HTTP headers, Netscape HTTP Cookie files, and JSON cookie jars. Auto-detects input format with flat and structured view modes. All processing done locally in your browser.


Features

  • Supports 4 cookie input formats
  • Auto-detects input format
  • Flat and structured view modes
  • URL decode toggle
  • Real-time parsing with syntax highlighting
  • Local browser processing for privacy

How to Use

  1. 1Paste cookie string into the input area
  2. 2Tool auto-detects format and parses
  3. 3Switch view modes to inspect the JSON result

FAQ

What cookie formats are supported?
Four formats are supported: document.cookie (browser JavaScript format), Set-Cookie header (HTTP response header), Netscape cookie file (used by curl/wget), and JSON Cookie Jar (structured JSON array).
Can the tool auto-detect the input format?
Yes. The tool analyzes your input to determine the format automatically. You can also click the format label to override the detection.
What's the difference between Flat and Structured views?
Flat view shows cookies as {key: value} pairs, ideal for simple document.cookie input. Structured view shows the complete cookie object with domain, path, expires, and other attributes.
What happens with duplicate cookie names?
In Flat view, duplicate names overwrite each other. Structured view retains all cookies. Switch to Structured view when duplicates are present.
Is my data uploaded to a server?
No. All parsing is done locally in your browser. Your cookie data never leaves your device.
What does URL Decode do?
Cookie values may be URL-encoded (e.g. %20 for space). URL Decode converts these to readable characters. Toggle it off to see raw encoded values.

Related Tools

Code FormatterXML FormatterUnicode ConverterColor Code ConverterBase ConverterBase64 Encoder DecoderURL Encoder DecoderHTML Entity EscapeJSON Unicode EscapeMD5 EncoderJWT Decode Verify EncodeJSON to CookieUUID Generator & ParserRegex TesterHTTP Status CodesPort NumbersUser-Agent ViewerMy Browser FingerprintJSON Unicode UnescapeCron Expression Generator & ParserIP Address Lookup