India Privacy Act Understand. Assess. Protect.
Free tool

Cookie consent banner generator.

Pick your cookie categories and get a ready-to-paste consent banner and a matching cookie policy, with a live preview.

← Back home

Free tool. Last reviewed: 7 November 2026.

How this works. Choose your settings and this page writes a ready-to-paste cookie consent banner, with Accept all, Reject all and Customise choices, plus a matching cookie policy. The preview below is live. Nothing you enter is sent anywhere. The banner keeps non-essential cookies and trackers switched off until the visitor says yes, and lets them change their mind later. It is a solid starting point, but it is not legal advice, so have the final result reviewed.
1. Basics
2. Which optional categories do you use?

Strictly necessary cookies are always on and need no consent.

3. Your cookies (for the policy)

One per line: name | what it does | how long it lasts | category (necessary, preferences, analytics or marketing)

Live preview

Click the buttons to try it. The preview forgets your choice when you change a setting.

1. Banner code

Paste this once, just before the closing </body> tag of every page.

2. Make your trackers wait for consent

Any script that sets non-essential cookies must not run until the visitor agrees. Change its tag like this, using the matching category. The banner switches it on only after consent:

Add a link in your footer so people can change their mind at any time, as easily as they gave consent:

3. Cookie policy text

Good practice to keep

Need a person to look at your problem?

Rouell, who runs this site, is a cyber security expert. He holds the EC-Council Certified Ethical Hacker (CEH) certification and is certified by the Maharashtra government as an ethical hacker. If a company has mishandled your data, or you are stuck dealing with one, he can help you work out a solution. Please use the contact form on rouell.com to get in touch. If you would like to see more tools or help on this site, please write in as well.