Cookie Consent Banner Generator
Get a lightweight cookie consent banner as a single copy-paste snippet — no library, no subscription, no external script. Customise the wording, colors and link to your policy, preview it live, and paste the code into your site. It remembers a visitor's choice so it won't nag on every page.
Paste the snippet just before </body> on your site (or into your site builder's
custom-HTML/footer area). It stores the choice in the visitor's browser (localStorage) so it shows once.
For a "decline" that actually blocks analytics/ads, wire your scripts to check localStorage.cookieConsent.
Not legal advice. A banner is one part of compliance; pair it with a clear privacy policy. Requirements (e.g. prior consent in the EU) vary — adapt to your laws.
Live preview
How to use it
- Customise the text, colors and policy link above.
- Click Copy snippet and paste it before
</body>on every page (or in your theme footer). - Publish a privacy policy and link it from the banner.
Round out your launch with the terms and refund policy generators.