Compliance

Cookie Banner Generator

Generate a GDPR and ePrivacy compliant cookie consent banner. Accept, reject and per-category toggles, no signup, no monthly fee. Copy the HTML, CSS and JS.

Strictly necessary Always on. Exempt from consent under ePrivacy Article 5(3), so it cannot be toggled off.
Analytics Google Analytics, Plausible, Matomo with cookies.
Preferences Remembered settings such as language or theme.
Marketing Ad and remarketing pixels: Meta, LinkedIn, Google Ads.
Include Google Consent Mode v2 Emits the default denied state before gtag.js loads. Required for EEA and UK traffic if you run GA4 or Google Ads.
Add CCPA / CPRA opt-out link California uses opt-out, not opt-in. Adds a "Do Not Sell or Share My Personal Information" control.

The reject button is always generated with the same visual weight as accept. Regulators including France's CNIL have treated a hidden or downgraded refusal option as invalid consent, so it is not removable here.

Going for ISO 27001, SOC 2, HIPAA or GDPR?

Radiatus runs end-to-end compliance & GRC programs.

Get a free readiness review

What this generator produces

This tool builds a self-contained cookie consent banner you paste into your own site: one block of HTML, CSS and vanilla JavaScript with no external dependencies, no third-party script, and no per-domain licence. The banner stores the visitor's choice in a first-party cookie and exposes a small JavaScript API so your analytics and marketing tags can check consent before they fire.

Most consent tools on the market are hosted consent management platforms. They bill monthly, load a remote script on every page view, and route your visitors' consent records through a vendor. That is a reasonable trade for a large publisher managing hundreds of vendors under the IAB Transparency and Consent Framework. It is heavy for a small site that needs to block Google Analytics until someone clicks Accept.

Prior consent is the part most banners get wrong

Under the ePrivacy Directive as applied across the EU, and under the UK's PECR, non-essential cookies must not be written before the visitor consents. A banner that appears while Google Analytics has already set _ga is decorative, not compliant. The generated banner therefore ships with tags blocked by default: your tracking snippets go inside a type="text/plain" script block with a data-consent-category attribute, and the banner rewrites them to executable scripts only after the matching category is accepted.

Reject must be as easy as accept

The CNIL in France, the Garante in Italy and the EDPB have all landed in the same place: if accepting takes one click, refusing must take one click too. Banners that offer Accept prominently and hide refusal behind a settings panel have drawn fines. Every layout in this generator includes a Reject all button with the same visual weight as Accept all, on the first layer. You can restyle it, but the reject button cannot be removed from the output.

Categories

The generator produces four standard categories. Strictly necessary is always on and cannot be toggled, because those cookies are exempt from consent. Analytics, Preferences and Marketing each get an independent switch, and each writes its own flag into the consent cookie so your tags can check them separately.

What it does not do

This is a client-side banner, not a consent management platform. It does not maintain a signed audit log of consent records on a server, it does not participate in the IAB TCF, and it does not automatically discover which cookies your site sets. If you are an ad-tech publisher working with dozens of vendors, or you need to produce consent proof under audit, you need a full CMP. For a marketing site, a SaaS product page or a blog running analytics and a pixel or two, this is the proportionate tool.

Frequently Asked Questions

Privacy & Security

Generated locally in browser.

Data: None
Client-side-Side
Active
v1.0

About This Tool

This tool runs entirely in your browser. No data is sent to any server, ensuring complete privacy. Simply use the interface above to get started — no registration or login required.

Disclaimer: This tool is provided "as is" without warranty of any kind. Results are for educational and utility purposes.