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.
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.
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.
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.
Related Tools
SOC 2 Evidence Readiness
ComplianceInteractive checklist to gauge your SOC 2 evidence readiness.
Privacy Policy Checker
ComplianceCheck if your policy covers standard requirements (GDPR/CCPA basics).
Compliance Req Finder
ComplianceFind which standards (ISO, SOC2, HIPAA) apply to your industry/region.