🍪 GDPR Cookie Banner Generator
Configure a simple consent banner and get a copy-paste-ready HTML+CSS+JS snippet, with a live preview. Entirely client-side.
This is a starting-point template, not a full CMP (consent management platform), and using it
does not by itself constitute legal compliance. Real GDPR/ePrivacy compliance typically requires
blocking non-essential cookies/scripts until consent is given (not just showing a banner), a granular
way to accept/reject categories, an easy way to withdraw consent later, and a record of what was
consented to. For anything beyond a simple personal or low-risk site, consider a dedicated CMP and get
advice from someone qualified to give it — this tool and its output are not legal advice.
1. Configure
2. Live preview
This is a working preview — the buttons actually set/clear the stored consent flag and re-show or hide the banner, just like the exported snippet will.
3. Export snippet
Paste this near the end of your <body>. It's self-contained (inline CSS + JS) so it works by itself.