Skip to main content

HTTP Cookie Parser

Paste a Set-Cookie header value and decode all attributes. See name, value, domain, path, expiry date (decoded to human-readable format), and security flags — with an instant security analysis.

✓ All cookie attributes ✓ Expires date decoded ✓ Security flag analysis

Frequently Asked Questions

What is the Set-Cookie header?▼

Set-Cookie is an HTTP response header that instructs the browser to store a cookie. Its format is: 'Set-Cookie: name=value; attribute1; attribute2=value'. The server sends it in response headers, and the browser automatically sends the cookie back in subsequent requests via the Cookie request header.

What does HttpOnly mean?▼

The HttpOnly flag prevents JavaScript from accessing the cookie via document.cookie. This protects against XSS attacks — even if an attacker injects malicious JS, they cannot steal HttpOnly session cookies. Always set HttpOnly on session tokens, auth cookies, and CSRF tokens.

What is the SameSite attribute?▼

SameSite controls when cookies are sent with cross-site requests. Strict: cookie only sent for same-site requests (most restrictive). Lax: sent on top-level navigation (clicking links), but not on embedded resources. None: sent on all requests including cross-site — requires Secure flag. Modern browsers default to Lax if SameSite is omitted.

What is the difference between Expires and Max-Age?▼

Expires sets an absolute date/time when the cookie expires (e.g., Thu, 01 Jan 2026 00:00:00 GMT). Max-Age sets a relative duration in seconds from when the cookie was received. If both are present, Max-Age takes precedence in modern browsers. Without either, the cookie is a session cookie — deleted when the browser closes.

What does the Partitioned (CHIPS) attribute do?▼

Partitioned (Cookies Having Independent Partitioned State) is a new attribute that scopes cookies to the top-level site they were set on. When a cookie is Partitioned, it's stored in a separate jar per top-level domain — so a cookie set by widget.example.com on site-a.com is only sent to widget.example.com when embedded on site-a.com. This enables necessary third-party cookies while preventing cross-site tracking.

Share this tool: X / Twitter LinkedIn
✓ 60,000+ developers use DevPlaybook ★★★★★ 4.8 / 5 on Gumroad ✓ MIT licensed · Instant download ✓ No login required

Related Products

on Gumroad

You Might Also Need

More Free Tools

Webhook Tester WebSocket Tester WebP Converter WebSocket Test Client HTTP Status Code Reference HTTP Status Code Reference HTTP Status Code Lookup HTTP Status Code Lookup Core Web Vitals Guide HTTP Headers Analyzer HTTP Methods Reference HTTP Security Headers Generator Web Vitals Scorer HTTP Header Analyzer Web Vitals Analyzer HTTP Security Headers Checker Core Web Vitals Budget Calculator API Request Builder HTTP Headers Inspector HTTP Status Code Reference PWA Manifest Generator Caddy Caddyfile Generator HTTP Cache-Control Builder WASM Module Explorer HTTP/2 Server Push Headers Builder Lighthouse Score Simulator Core Web Vitals Calculator Content Security Policy Builder HTTP Header Inspector WebAssembly Binary Inspector Web Vitals Budget Planner HTTP Cache Header Builder Prompt Injection Tester GCP Service Account Key Auditor Web Performance Checklist Image Optimizer Checklist AI System Guardian API Response Formatter & Analyzer API Response Mock Generator HTTP API Tester Color Blindness Simulator curl Command Builder .htaccess Generator HTTP Code Snippet Generator JWT Builder JWT Decoder nginx Config Generator Password Strength Checker Developer Utilities Service Worker Generator HTTP Mock Response Builder HMAC Generator CSP Header Builder AWS IAM Policy Validator Haproxy Config Validator WCAG Contrast Checker HAR Diff Analyzer SBOM Generator JWT Debugger Pro Dockerfile Linter Bundle Size Estimator SSL Certificate Checker REST API Request Builder nginx Config Builder Mock Service Worker (MSW) API Mocking Guide API Response Mocker Docker Layer Optimizer Bundle Size Impact Calculator TTFB Analyzer Password Strength Analyzer JWT Decoder & Validator

Enjoying this tool? Get more like it.

Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.

DevPlaybook Pro 7 days free

Unlock AI-Powered Dev Tools

  • ⚡ AI Code Review, Doc Generator & SQL Builder
  • ⚡ All premium templates & early access
  • ⚡ Member discounts on Gumroad products
Start Free Trial →

$9/mo after trial · Cancel anytime

Want the full toolkit?

Get DevPlaybook Pro

Every template, guide, boilerplate, and automation script in one bundle. 13 premium products — grab them all at once and save big.

$79
$241 separately Save $162 (67% off)
Get DevPlaybook Pro — $79 →

MIT licensed · Instant download · No subscription

See what's included → Browse all deals →