Cookie Banner Generator
Generate a GDPR-compliant cookie consent banner with ready-to-use HTML, CSS, and JavaScript.
Not legal advice — consult a lawyer to verify compliance with your jurisdiction.
Cookie settings
We use cookies to enhance your experience on My Website. Learn more
Essential cookies for the website to function properly.
Help us understand how visitors interact with our website.
Used to track visitors across websites for advertising purposes.
Remember your settings and personalization choices.
Enable sharing content on social media platforms.
Compliant with GDPR, ePrivacy Directive, CCPA
Includes granular categories, opt-in mechanism, reject-all option, consent storage, script blocking until consent, and policy link.
About this tool
- 1
Fill in details
Enter your company name, privacy policy URL, and cookie categories.
- 2
Customize style
Choose position, colors, border radius, and Reject All visibility.
- 3
Preview
See a live preview of how the banner looks.
- 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