Parse and Format Cookie Strings 🍪

Instantly transform raw browser cookie strings into a readable table or structured JSON.

💡 Why use this tool?

Stop squinting at unformatted document.cookie outputs. This tool streamlines your debugging workflow:

  • Decode automatically: Instantly convert URL-encoded values into readable text.
  • Visualize structure: Map keys and values to a clean table to find what you need at a glance.
  • Edit and rebuild: Modify values directly in the table and generate a fresh, formatted cookie string.

📘 Quick Start

  • Paste and Parse: Drop a raw string like session_id=abc; lang=en into the input to see the breakdown.
  • Export to JSON: Convert your cookie set into a JSON object—perfect for API testing or documentation.
  • Live Editing: Change values in the table to test how your application handles different states.
  • Add or Remove: Delete unnecessary keys or add new ones before rebuilding the final string.

🧐 FAQ

Is my sensitive data sent to a server?
No. This tool is 100% client-side. All processing happens in your browser via JavaScript; your data never leaves your machine.

Does it handle encoded characters?
Yes. The tool uses decodeURIComponent for the table view and automatically re-encodes values when you rebuild the string.

Does it support complex values?
As long as the string follows the standard key=value; format, it works perfectly. It handles values containing = by splitting only at the first occurrence per pair.

📚 Trivia

Web browser pioneer Lou Montulli coined the term "Cookies" in 1994. He derived it from "magic cookies," a Unix term for a packet of data a program receives and sends back unchanged.

Before cookies, websites had no way of "remembering" users. Montulli’s invention fundamentally changed the internet, enabling everything from persistent logins to digital shopping carts.