Why it matters
Under UK GDPR and PECR, non-essential cookies need consent before they're set, refusing has to be as easy as accepting, and people need a way to change their mind.
Many banners just hide a notice without blocking anything. This one keeps analytics and marketing scripts inert until consent, then switches on only the categories chosen.
How to use it
- Type or paste your input; the example shows the format.
- Press Build banner. Results also update as you type.
- Read the summary line, then the table, notes or output below it.
- Copy or download what you need. Nothing leaves this page.
FAQ
How do I block a script until consent?
Change its type to text/plain and add data-consent="analytics" (or marketing, functional). The banner turns it back into a real script once that category is accepted.
Does the banner itself set a cookie?
It stores the choice in localStorage by default, which is allowed as strictly necessary for remembering consent. You can switch to a first-party cookie.
Do I need a banner at all?
Not if you only use strictly necessary cookies and cookieless analytics. This site, for example, has no banner because it sets no cookies.
Is my input uploaded?
No. The tool runs in your browser and nothing you type, paste or open is sent anywhere.
Can I rely on the result?
It follows the ICO's guidance on cookies and similar technologies (UK GDPR and PECR) and Google's Consent Mode v2 parameter names. It isn't legal advice; check your cookie policy describes what you actually use.