Skip to main content

Cookie Banner Generator

Generate a GDPR-compliant cookie consent banner with ready-to-use HTML, CSS, and JavaScript.

Free & unlimitedWorks offline

Not legal advice — consult a lawyer to verify compliance with your jurisdiction.

General settings
Company / website name
Privacy policy URL
Cookie categories
Always active
Style
Banner position
Color scheme
Custom accent color
Button labels
Consent mode
Border radius
8px
Show "Reject all" button
My Website — Preview

Cookie settings

We use cookies to enhance your experience on My Website. Learn more

NecessaryAlways active

Essential cookies for the website to function properly.

Analytics

Help us understand how visitors interact with our website.

Marketing

Used to track visitors across websites for advertising purposes.

Preferences

Remember your settings and personalization choices.

Social media

Enable sharing content on social media platforms.

Compliant with GDPR, ePrivacy Directive, CCPA

Compliance
GDPR ePrivacy directive CCPA

Includes granular categories, opt-in mechanism, reject-all option, consent storage, script blocking until consent, and policy link.

All processing happens in your browser. No data is sent to any server.

About this tool

  1. 1

    Fill in details

    Enter your company name, privacy policy URL, and cookie categories.

  2. 2

    Customize style

    Choose position, colors, border radius, and Reject All visibility.

  3. 3

    Preview

    See a live preview of how the banner looks.

  4. 4

    Copy code

    Copy the generated HTML, CSS, and JavaScript.

  • GDPR requires an active "Reject All" option - make sure to enable it.
  • The generated JavaScript stores consent in a cookie and fires a consentChanged event.
  • Pre-filled examples for Google Analytics and Facebook Pixel save configuration time.
  • GDPR-compliant output
  • Multiple position options
  • Cookie category management
  • Live preview
  • HTML + CSS + JS output
  • Integration instructions
  • Adding cookie consent to a new website
  • Replacing an expensive cookie consent SaaS
  • Ensuring GDPR compliance for EU visitors

Related tools

View all

We use anonymous analytics to improve ToolChamp. No personal data is stored or sold. Privacy Policy