Cookie Parser
Parse Cookie and Set-Cookie headers — attributes, flags, expiry. Edit and rebuild. 100% client-side.
session_id=abc123def456; Domain=.example.com; Path=/; Max-Age=86400; Secure; HttpOnly; SameSite=Lax
About Cookie Parser
Cookies are small pieces of data that websites store in the browser to track sessions, authentication, preferences, and analytics. Two HTTP headers handle them: "Cookie" (sent by the browser to the server) and "Set-Cookie" (sent by the server to the browser). Set-Cookie headers include attributes like Domain, Path, Expires, Max-Age, Secure, HttpOnly, and SameSite that control how and when the cookie is used. Debugging cookies manually is tedious — dates, booleans, and special characters blend together in a single line. This tool parses any Cookie or Set-Cookie header into a clean table, shows expiry time in human-readable form, highlights security flags, and lets you edit and rebuild the header.
How It Works
- Paste a Cookie or Set-Cookie header into the input box.
- See each cookie parsed into name, value, domain, path, expiry, and flags.
- Edit any attribute, add or remove cookies.
- See the rebuilt header live — ready to copy.
✨ Key Features
- ✓Parse Cookie headers (name=value; name2=value2)
- ✓Parse Set-Cookie headers (with attributes)
- ✓Auto-detect header type
- ✓Show Domain, Path, Expires, Max-Age
- ✓Human-readable expiry ("in 3 days" or "expired")
- ✓Highlight Secure, HttpOnly, SameSite flags
- ✓Edit attributes and rebuild header
- ✓Add or remove cookies
- ✓Copy individual or rebuilt headers
- ✓100% client-side — no data sent to any server
🎯 Common Use Cases
- →Debugging session and authentication cookies
- →Inspecting Set-Cookie headers from API responses
- →Understanding SameSite and security flags
- →Checking cookie expiry during QA testing
- →Verifying CSRF token cookies
- →Analyzing third-party tracking cookies
- →Building Set-Cookie headers for tests
- →Learning HTTP cookie attributes
💡 Advanced Tips & Pro Insights
- ▸Secure: cookie is only sent over HTTPS. HttpOnly: cookie is not accessible via JavaScript (protects against XSS). SameSite: controls cross-site sending (Strict, Lax, None).
- ▸SameSite=None requires Secure — browsers reject SameSite=None without Secure over HTTPS.
- ▸Max-Age is in seconds and takes precedence over Expires. If Max-Age=0, the cookie is deleted immediately.
- ▸Session cookies (no Expires/Max-Age) are deleted when the browser closes.
- ▸Domain=.example.com makes the cookie available to all subdomains; without a Domain, the cookie is host-only.