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.
Fields marked * are required.
Unknown tools are placed in Marketing (conservative) with a placeholder cookie row you must complete.
Sets the consent cookie max-age and when the banner reappears. Blank/0 → 12; capped at 12 (EU treats "forever" consent as non-compliant).
Pick your tools and jurisdiction, then click Generate.
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.
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:
_ga 2 years, _gid 24 hours), and a Marketing row for the YouTube embed.type="text/plain" data-cookiecategory="analytics" once Analytics is granted.Headline verdict: "Generated for EU + California (GDPR opt-in + CCPA opt-out). Covers Necessary, Analytics and Marketing categories."
/cookie-policy-generator/ page, paste Output 2
before </body>, and follow Output 3 to re-tag your existing scripts.type="text/plain" data-cookiecategory="...". Leave Google Analytics hard-coded and firing and the site is
still non-compliant in the EU. This dependency is the most-missed step._ga = 2 years, _gid = 24 hours,
Meta _fbp = 90 days) are provider defaults as of 2026 and can change.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:
<head> above your Google tag — it sets ad_storage, ad_user_data,
ad_personalization and analytics_storage to denied (opt-in markets) before Google loads.gtag("consent","update",…) the moment the visitor chooses, mapping your
Analytics toggle to analytics_storage and your Marketing toggle to the three ad signals.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.
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.
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.
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.
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.
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.
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.
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.
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.
Built in your browser and saved only there. We don't store or sell your data. Not legal advice.