Cookie Scanner / Analyzer
Paste Set-Cookie headers or document.cookie to analyze attributes, security flags, categories, GDPR compliance, and generate consent banner templates.
Updated
Cookie Scanner / Analyzer
Paste Set-Cookie headers or document.cookie strings to analyze cookie attributes, security flags, GDPR compliance, and generate consent banner templates. All analysis runs client-side.
Paste Cookie Data
Frequently Asked Questions
What is the Cookie Scanner / Analyzer?
The Cookie Scanner / Analyzer is a free online tool that paste set-cookie headers or document.cookie to analyze attributes, security flags, categories, gdpr compliance, and generate consent banner templates.. It runs entirely in your browser with no installation or sign-up needed.
What formats?
Set-Cookie headers (one per line) or raw document.cookie strings. Auto-detects format.
How categorized?
Name-based heuristics for 30+ patterns: _ga/_gid → Analytics, _fbp → Marketing, __cf/csrf/session → Necessary, pref/lang → Preferences.
Is data sent to a server?
No. All parsing and analysis runs in your browser.
Is the Cookie Scanner / Analyzer free to use?
Yes, the Cookie Scanner / Analyzer is 100% free with no registration, no hidden fees, and no usage limits. All processing happens locally in your browser, ensuring complete privacy.
Does the Cookie Scanner / Analyzer work on mobile devices?
Yes, the Cookie Scanner / Analyzer is fully responsive and works on smartphones and tablets. You can use it on any device with a modern web browser -- no app download required.
Do I need to create an account to use this tool?
No account or registration is needed. Simply open the Cookie Scanner / Analyzer in your browser and start using it immediately. There are no sign-up walls or usage restrictions.
How do I use the Cookie Scanner / Analyzer?
Simply enter your input in the provided field, adjust any settings to your preference, and the tool will process it instantly. You can then copy the result to your clipboard or download it.
Which browsers are supported?
The Cookie Scanner / Analyzer works in all modern browsers including Chrome, Firefox, Safari, Edge, and Opera. For the best experience, use the latest version of your preferred browser.
Why can't I see the HttpOnly or Secure flags when I paste document.cookie?
Because the browser deliberately hides them. The document.cookie property in JavaScript only exposes the name=value pairs your scripts are allowed to read; it never reveals attributes like HttpOnly, Secure, SameSite, Domain, Path, or Expires. HttpOnly cookies, the ones holding session tokens, are excluded from document.cookie entirely by design, so a string copied from the console can't show their security flags. That is why this scanner shows names and values only when it detects a document.cookie input, and gives every cookie a partial picture rather than a full security grade. To audit flags properly, grab the raw Set-Cookie response headers from your browser's Network tab (under Response Headers) or a curl -I request, then paste those instead for a complete attribute and security breakdown.
How is the cookie security score calculated, and what costs the most points?
Each cookie starts at 100 and loses points for missing protections. A missing Secure flag costs 30 points, since the cookie can travel over unencrypted HTTP. A missing HttpOnly flag also costs 30, because JavaScript can then read it and any XSS bug becomes session theft. A missing SameSite attribute costs 25 points for leaving the cookie open to CSRF. SameSite=Lax loses a small 5 points; SameSite=None loses 10, or 15 if it lacks the required Secure flag; SameSite=Strict scores cleanest with no deduction. The Partitioned (CHIPS) attribute adds a small 5-point bonus. Per-cookie scores are then averaged into an A–F grade. Paste your Set-Cookie headers to see exactly which flags are dragging each cookie's score down.
Why does my SameSite=None cookie get flagged even though I set it intentionally?
SameSite=None means the cookie is deliberately sent on cross-site requests, which is necessary for legitimate cases like embedded widgets, SSO, or third-party iframes. The scanner still flags it because cross-site cookies carry more risk and browsers enforce a strict rule: SameSite=None only works if the Secure flag is also present, and modern browsers reject None cookies without it. So the tool deducts 10 points for None with Secure, and a steeper 15 points plus a warning when Secure is missing, since that cookie will simply be dropped. The flag isn't saying you're wrong, only that this cookie needs extra scrutiny and a valid Secure pairing. If a cookie can be same-site, prefer Lax or Strict. Paste your headers to confirm your None cookies carry Secure.
What's the difference between a session cookie and a persistent cookie in the results?
A session cookie has no expiry date, so the browser deletes it when the user closes the browser; a persistent cookie carries an Expires date or Max-Age and survives until that time elapses. The scanner reads both attributes, marks each cookie Session or Persistent, and for persistent ones calculates the days until expiry from Max-Age or the Expires timestamp. This matters for both security and privacy: short-lived session cookies limit exposure if a token leaks, while long-lived persistent cookies, especially analytics and marketing ones, draw extra GDPR scrutiny because lengthy retention must be proportional to purpose. The tool also notes that persistent cookies should have reasonable expiry periods. Paste your Set-Cookie headers to see which cookies linger and for how long.
Which cookies actually require consent before I set them under GDPR?
Under GDPR and the ePrivacy Directive, only strictly necessary cookies are exempt from consent. The scanner sorts every cookie into Necessary, Analytics, Marketing, Preferences, or Unknown using over 30 name patterns, then attaches the consent obligation. Necessary cookies, like session, CSRF, and authentication tokens, can be set without consent but still belong in your privacy policy. Analytics cookies such as _ga and _gid, and marketing cookies such as _fbp or _gcl_au, require explicit, prior opt-in and must not be set until the user agrees. Preferences cookies usually need consent unless they directly serve a user-requested function like language. Anything Unknown should be reviewed and treated as non-essential. Paste your cookies to see the per-category consent guidance and generate a matching consent banner.
Embed This Tool
Add a free, live version of this widget to your own website or blog post — it runs entirely in your visitors' browsers, with a credit link back to The Toolbox.
<iframe src="https://getthetoolbox.com/embed/cookie-scanner" title="Cookie Scanner / Analyzer — The Toolbox" width="100%" height="320" style="max-width:480px;border:1px solid #e2e8f0;border-radius:12px" loading="lazy"></iframe>
<p style="font-size:12px;margin:4px 0 0"><a href="https://getthetoolbox.com/website-tools/cookie-scanner?utm_source=embed&utm_medium=widget" target="_blank" rel="noopener">Free Cookie Scanner / Analyzer</a> by The Toolbox</p>Related Tools
Free Website Speed Test
Analyze website page load time, performance metrics, and optimization opportunities. Free, fast, and works entirely in your browser with no sign-up required.
Free Mobile Friendly Test
Check if your site is optimized for mobile devices. Free, fast, and works entirely in your browser with no sign-up required.
Free Meta Tag Extractor
Extract and review all meta tags from any webpage for SEO and social media analysis. Free, fast, and works entirely in your browser with no sign-up required.
Free Website Screenshot Tool
Capture full-page or viewport screenshots of any webpage for design review and testing. Free, fast, and works entirely in your browser with no sign-up required.
About the Cookie Scanner / Analyzer
The Cookie Scanner / Analyzer is a free tool for inspecting HTTP cookies. Paste a block of Set-Cookie response headers or a raw document.cookie string and it parses every cookie, breaks down its attributes, grades its security flags, sorts it into a privacy category, and flags the consent obligations that come with it. It's built for the people who have to answer for cookies in practice: web developers hardening a login flow, security engineers reviewing a header dump, and privacy or compliance staff documenting what a site actually sets before a GDPR audit.
You don't need to copy anything off your own machine to start. The tool ships with sample Set-Cookie and document.cookie inputs so you can see exactly what a populated report looks like, then swap in your own data when you're ready.
What it reads and how to feed it
The scanner accepts two formats and auto-detects which one you've pasted:
Set-Cookieheaders — one cookie per line, the way a server emits them. These carry the full picture:Domain,Path,Expires,Max-Age, and theSecure,HttpOnly,SameSite, andPartitionedflags. An optionalSet-Cookie:prefix on each line is stripped automatically.document.cookiestrings — the semicolon-separatedname=valuepairs you get from the browser console. Because JavaScript can't readHttpOnlycookies or flag attributes, these inputs show names and values only; for a full security review, use the server-sideSet-Cookieheaders instead.
Grab Set-Cookie headers from your browser's Network tab (click a request, look under Response Headers) or from a curl -I response.
Security grading you can act on
Every cookie gets a 0–100 security score, and the report rolls those up into an overall A–F grade. The scoring follows the flags that actually matter for cookie hardening:
- Missing
Securecosts 30 points — the cookie can travel over unencrypted HTTP. - Missing
HttpOnlycosts 30 points — JavaScript can read it, which turns any XSS bug into session theft. - Missing
SameSitecosts 25 points — it leaves the cookie exposed to CSRF.SameSite=Noneis penalized further and warns when it lacks theSecureflag it requires;Strictscores cleanest. Partitioned(the CHIPS attribute) earns a small bonus for third-party cookies.
The summary also counts how many cookies are missing Secure, HttpOnly, or SameSite outright, so you can see the worst gaps at a glance.
Categories and GDPR consent notes
Cookie names are matched against more than 30 patterns to assign a category: Necessary, Analytics, Marketing, Preferences, or Unknown. For example _ga/_gid map to Analytics (Google Analytics), _fbp to Marketing (Meta), __cf_bm and csrf_token to Necessary, and lang/theme to Preferences. Each match shows the reasoning, and anything unrecognized is flagged Unknown so it doesn't slip through.
Category drives the compliance guidance. Strictly necessary cookies are exempt from consent under GDPR but still belong in your privacy policy; analytics and marketing cookies require explicit, prior consent under GDPR and the ePrivacy Directive and must not be set before the user opts in. The scanner attaches these notes per cookie and distinguishes session cookies from persistent ones, since long expiry periods draw extra scrutiny.
Reports, CSV, and a consent banner
When the analysis is done you can copy a plain-text report, download every cookie and its attributes as CSV for your records, and generate a ready-to-paste HTML consent banner that lists only the optional categories your site actually uses, with Accept All, Save Preferences, and Reject Optional controls.
Everything runs in your browser. The cookies you paste are parsed and analyzed entirely on your device — nothing is uploaded to a server, there's no sign-up, and no usage limit. That matters here, because cookie strings often contain live session tokens and identifiers you'd never want to send to a third party.