How to use the Cookie Consent Banner Generator
- Write your banner text and choose colours, position and buttons.
- Check the live preview.
- Paste the code before the closing </body> tag.
What does this tool do?
The banner is about 2 KB with no dependencies or tracking of its own. It saves the visitor's choice in localStorage, asks again after the number of days you choose, and fires a cookie-consent event so you can load analytics or ads only after consent. Accept and Reject are equally prominent, as EU regulators expect.
Everything runs in your browser — nothing you paste is uploaded.
Why use it?
- No dependencies.
- Equal accept/reject.
- Consent event for scripts.
Accuracy and limits
- A banner alone doesn't make a site compliant — you must also stop non-essential cookies until consent is given. This isn't legal advice.
Privacy
Everything you type is processed in your browser. Nothing you enter is sent to our servers or stored by us. There's no account to create and nothing to install.
Last reviewed by the M2Toolkit team.