Skip to content

Cookie Consent Generator · Legal pages

Free Cookie Consent Banner & Cookie Policy Generator

Get GDPR-ready cookie banner code with Google Consent Mode v2, plus a matching cookie policy.

  • 100% free
  • No sign-up
  • Runs in your browser

How it works

How to use Cookie Consent Generator

  1. 1

    Tick the cookies and trackers your website uses.

  2. 2

    Customise the banner message, position, theme and colour.

  3. 3

    Paste the banner code into your <head> and publish the cookie policy.

About

About this tool

This tool gives you two things: a lightweight cookie consent banner you can paste into any website, and a cookie policy that lists the cookies you actually use. Tick the tools on your site, such as Google Analytics, Meta Pixel, Google Ads, Clarity, Hotjar or YouTube embeds, and the policy fills in each cookie's provider, purpose and lifetime.

The banner offers Accept all, Reject non-essential and Customise with the same prominence, as EU and UK regulators expect. In opt-in mode (the default for the EU, UK, India and Canada), analytics and ad tags wait until visitors agree. It supports Google Consent Mode v2 out of the box, so GA4 and Google Ads get the consent signals Google now requires in the EEA and UK. Other trackers can be held back by changing their script tags to type="text/plain" with a data-t3-consent attribute.

The code is plain JavaScript with no dependencies, stores the visitor's choice in their browser, and adds a “Cookie settings” link so people can change their mind. Match the colours to your brand and preview the banner before you copy it.

Frequently asked questions

Free proposal

Want this fixed for good? We build fast, mobile-first websites that pass every check.

No obligation. A real strategist replies within 24 hours.

Done-for-you

Let's build you a faster website

Free tools show you the problem. The T3 team fixes it, with a clear plan and pricing up front.