HTTP Cookie Parser

Live

HTTP Cookie Parser breaks a Cookie or Set-Cookie header into its parts and checks it for common mistakes.

Runs in your browser: what you enter is processed on your device and not uploaded to MyToolDock.

What is HTTP Cookie Parser?

HTTP Cookie Parser breaks a Cookie or Set-Cookie header into its parts and checks it for common mistakes. The warnings cover common rules (SameSite=None needs Secure, __Host- and __Secure- prefixes, invalid dates and Max-Age) but cannot know your site. Session cookie values are sensitive, so do not share them.

How It Works

  1. Enter the text of a Cookie header, or one or more Set-Cookie headers in the input fields on this page.
  2. Press the button to run HTTP Cookie Parser.
  3. Read a table of names, values and attributes, with warnings in the result area, and copy or download it.

Common Uses

Good to Know

Copy the header from your browser developer tools, with or without the Cookie: or Set-Cookie: label.

How it works

Paste a Cookie header to see each name and value (percent-encoded values are decoded alongside), or paste one or more Set-Cookie headers to see the domain, path, expiry, Max-Age, Secure, HttpOnly, SameSite and whether it is a session cookie.

Warnings point out common mistakes, such as SameSite=None without Secure or a __Host- cookie with a Domain.

Worked example

Set-Cookie parsing was compared with Python's http.cookies module on 150 random sets of headers (random attribute case, order and combinations, dates, Max-Age values, prefixes) and expiry dates with Python's email.utils. Warning rules were checked for every case. Cookie header parsing was checked with encoded, empty, quoted and base64-style values.

Limits

Only the common attributes are checked: Domain, Path, Expires, Max-Age, Secure, HttpOnly, SameSite, Partitioned and Priority. Whether a browser accepts a cookie also depends on the site it comes from, which cannot be known here. Treat session cookie values as passwords and do not share them.

Frequently Asked Questions

What does SameSite=None need?

The Secure flag. Browsers reject it without.

What is a session cookie?

One with no Expires or Max-Age; the browser deletes it when it closes.

Are my cookies uploaded?

No. They are processed in your browser.

What does HTTP Cookie Parser do?

HTTP Cookie Parser breaks a Cookie or Set-Cookie header into its parts and checks it for common mistakes. The warnings cover common rules (SameSite=None needs Secure, __Host- and __Secure- prefixes, invalid dates and Max-Age) but cannot know your site. Session cookie values are sensitive, so do not share them.

What do I need to enter in HTTP Cookie Parser?

The text of a Cookie header, or one or more Set-Cookie headers.

Is my data private in HTTP Cookie Parser?

Your headers stay in your browser and are not uploaded.

Is MyToolDock HTTP Cookie Parser free to use?

Yes, MyToolDock HTTP Cookie Parser is 100% free with no registration, subscriptions, or limits. All features are fully unlocked.

Related Tools

HTTP Header Inspector RegExp Parser User-Agent String Parser HTTP Status Code Lookup HTML to Markdown Converter URL Parameter Parser

More Developer Tools guides

More in Developer Tools · Browse all tools

Developer Scratchpad

Copied to clipboard!