Local Tools
LOCAL · API · AEO

Cookie Banner Generator

A small consent banner you paste into your site, with accept, reject and per-category choices

100% Client-Side (0 Bytes Uploaded) Drive Vault
Loading your saved answers...

About Cookie Banner Generator & FAQs

Design a cookie consent banner and copy one self-contained snippet of HTML, CSS and plain JavaScript. It offers accept all, reject all and per-category choices, saves the answer in localStorage, fires a consent-updated event and can update Google Consent Mode v2. It makes no outside requests and is built in your browser.

What makes a cookie banner valid under GDPR?

Nothing optional may load before the visitor chooses, rejecting must be as easy as accepting, each category needs its own switch with nothing ticked in advance, and people must be able to change their mind later. This banner gives accept and reject the same weight and leaves optional categories off by default.

Does the banner block cookies by itself?

No. It records the choice and announces it with a consent-updated event. Your code must wait for that event before loading analytics or ad scripts. The How to use it tab shows the few lines needed.

What does the Google Consent Mode v2 option do?

It sets ad_storage, ad_user_data, ad_personalization and analytics_storage to denied before your Google tag runs, then sends an update when the visitor chooses. Paste the snippet above the Google tag for this to work.

Where is the choice stored?

In the visitor's own browser, in localStorage under the key you set. Nothing is sent to a server, so there is no consent log on your side. If you need proof of consent, record the event yourself.

Extensible Module

Form and wording live in src/tools/founder/legal/clauses/banner.ts; the form, preview and exports come from src/tools/founder/legal/DocBuilder.tsx.

Module path: src/tools/cookie-banner-generator/
Read Extensibility Guide →