Cookie Consent Policy & Banner Generator

Get a paste-ready cookie policy page and a working consent banner snippet — block-before-consent for GDPR, notice-and-opt-out for CCPA, GPC-aware. Free, runs in your browser.

A starting point, not legal advice. This tool generates policy text and a working snippet from your answers for informational purposes only; it is not a guarantee of compliance. Have a lawyer or DPO review it, especially marketing / "sale of data" classifications. The banner only blocks tracking if you re-tag your scripts (see the integration steps).

Fields marked * are required.

Your site
Jurisdiction / audience

Analytics tools in use
Advertising / marketing tools in use
Embeds in use

Unknown tools are placed in Marketing (conservative) with a placeholder cookie row you must complete.

Cookie behavior

Sets the consent cookie max-age and when the banner reappears. Blank/0 → 12; capped at 12 (EU treats "forever" consent as non-compliant).

Cookie compliance status

Pick your tools and jurisdiction, then click Generate.

Output 1 — Cookie policy page

Your generated cookie policy will appear here.

Cookie policy & consent banner generator — guide

What it does

This free tool produces two things at once: a paste-ready cookie policy page (with an auto-filled cookie table — provider, cookie names, category, purpose, retention, first/third-party) and a self-contained consent banner snippet (HTML + CSS + JS, no dependencies, no network calls). It is a rules engine: the consent model, the buttons, the cookie rows, and the cookie max-age are all derived from your answers, not pasted from a template.

The two consent models

Worked example

Say you run example.com, you use Google Analytics and a YouTube embed, you serve EU + California visitors, and you set the re-prompt interval to 12 months. The tool:

Headline verdict: "Generated for EU + California (GDPR opt-in + CCPA opt-out). Covers Necessary, Analytics and Marketing categories."

How to use it

  1. Enter your site name, domain, and a working privacy email (required).
  2. Pick your jurisdiction and tick the analytics, ad and embed tools you actually use.
  3. Set the re-prompt interval (6–12 months is typical).
  4. Click Generate. Copy Output 1 into a /cookie-policy-generator/ page, paste Output 2 before </body>, and follow Output 3 to re-tag your existing scripts.

What's still on you (the snippet alone isn't compliance)

Google Consent Mode v2 (if you use Google Analytics or Google Ads)

Since 2024, Google requires sites that run Google Analytics 4 or Google Ads for EU/EEA visitors to send Consent Mode v2 signals — simply blocking the Google tag is no longer enough on its own. When you tick Google Analytics or Google Ads above, the generated banner automatically:

This wires the consent signals for you, but you still install your Google tag yourself and should confirm in Google Tag Assistant that the default/update events fire. It is a starting point, not a compliance guarantee.

Accuracy & honesty notes

How to embed this tool on your website

No account, no coding. Grab the one-line embed snippet from the "Put this cookie banner generator on your site" box below this guide and paste it where you want the tool to appear — it works on any site, including WordPress, Squarespace, and Webflow.

Frequently asked questions

Do I need a cookie banner if I only use Google Analytics?

In the EU/UK, yes — GA sets cookies and isn't strictly necessary, so consent must come first. In California you can load it but must offer a notice + opt-out and honor GPC. This tool builds the right banner for whichever applies.

What's the difference between the GDPR and CCPA banners?

GDPR is opt-in (block scripts until Accept, with an equally prominent Reject All). CCPA is opt-out (notice + "Do Not Sell or Share" + honor GPC). "Both" uses the opt-in flow and adds the opt-out link.

Does the banner actually block tracking before consent?

Yes — but only if you re-tag your scripts as type="text/plain" data-cookiecategory="...". Pasting the banner while leaving GA hard-coded leaves you non-compliant in the EU. Output 3 shows exactly how.

How long does the consent choice last?

As long as your re-prompt interval (6–12 months is typical). It's stored in a SameSite=Lax cookie and the banner reappears when it expires. "Forever" consent is non-compliant, so the interval is capped at 12 months.

Does it honor Global Privacy Control (GPC)?

Yes. The banner reads navigator.globalPrivacyControl and, when true, forces marketing off and treats it as a valid opt-out without a click — mandatory in California. Server-side data-sale suppression is still on you.

Does it support Google Consent Mode v2?

Yes — when you tick Google Analytics or Google Ads. The banner outputs a Consent Mode v2 default block (paste it in <head> above your Google tag) and sends a gtag("consent","update") when the visitor chooses, mapping Analytics to analytics_storage and Marketing to the three ad signals. Google has required this since 2024 for its products in the EU/EEA.

Is this legal advice?

No. It's an automated starting point for informational purposes only — not legal advice and not a compliance guarantee. Have a lawyer or DPO review it before relying on it.

Related tools

Put this cookie banner generator on your site
<iframe src="https://snaptoolsuite.com/cookie-policy-generator/?embed=1"
  style="width:100%;max-width:720px;height:2400px;border:0;"
  title="Cookie Consent Policy & Banner Generator" loading="lazy"></iframe>
2 Paste it on your page
3 It just works

Built in your browser and saved only there. We don't store or sell your data. Not legal advice.