Cookie banner examples and texts

What a cookie banner must say and show on its first screen, good and bad examples with what regulators said about them, and a ready-to-copy cookie banner text you can adapt for your own website.

Last checked on 24 November 2026

In short

  • The first layer names the purposes, says who sets cookies and links to your cookie policy.
  • "Reject all" sits next to "Accept all" on the first layer, just as visible and just as easy.
  • No pre-ticked boxes, no vague "OK" buttons, no tricks with colour or links.
  • Visitors can change or withdraw their choice at any time, and you tell them how before they choose.

What must a cookie banner say and show?

A cookie banner asks visitors for consent before you store or read cookies and similar technologies that are not strictly necessary. That consent only counts if it is freely given, specific, informed and unambiguous (GDPR, articles 4(11) and 7). Most of what makes a banner compliant follows from those four words, and regulators across Europe have spelled it out.

Most websites use two layers: a short first layer that everyone sees, and a settings layer with the details per category. On the first layer, before anyone clicks:

  • The purposes, in plain words: for example statistics, personalised ads, social media. The EDPB lists the purpose of each processing operation as information that consent always needs (Guidelines 05/2020, paragraph 64).
  • Who is involved: your own website and whether third parties set cookies too. The Dutch AP asks you to say on the first layer that you share data with third parties and to give the number of parties or name them. The CNIL and the German DSK also want the parties involved to be identifiable, at least through a link from the first layer.
  • What kind of data is collected, such as IP address, pages visited and a cookie ID.
  • A link to your cookie policy with the full details. If you don't have one yet, start from our cookie policy template.
  • "Accept all" and "Reject all" side by side, equally visible and equally easy, plus a "Settings" button for choices per category.
  • How to change or withdraw consent later. The CNIL and the AP ask you to say this before the visitor chooses.

And one rule behind the screen: nothing that needs consent runs until the visitor has said yes.

Good and bad examples

Regulators have described the same tricks again and again. The EDPB cookie banner taskforce, set up to handle complaints by the privacy organisation noyb, listed them in its report of January 2023. National authorities have added their own guidance.

Bad example Better What regulators said
First layer with only "Accept all" and "Settings" "Accept all" and "Reject all" on the first layer A vast majority of authorities in the EDPB taskforce see the lack of a reject option on a layer with an accept button as an infringement. The DSK says such a choice usually gives no valid consent.
"Reject" as a small link in the text, "Accept" as a big button Two buttons in the same format The taskforce and the AP: a refuse link hidden in a paragraph, without visual support, does not lead to valid consent.
"Accept" in bright colours, "Reject" in grey on grey The same size, colour and contrast The taskforce: a reject button whose text is barely readable is manifestly misleading. The AEPD and the AP say the accept button must not stand out more.
Boxes or switches already on in the settings layer Everything off except necessary cookies Pre-ticked boxes are not consent: the EU Court of Justice in Planet49 (2019), the EDPB and the taskforce.
One button: "OK, got it" Clear words: "Accept all", "Reject all" The DSK: clicking "Okay" is not an unambiguous statement. The AP advises against vague wording.
"By continuing to browse or scrolling, you accept cookies" Consent only after a click on a clear button The EDPB: scrolling or swiping is never a clear affirmative action (paragraph 86).
Switches labelled "legitimate interest" for ad profiles Ask consent for advertising and tracking The taskforce: legitimate interest cannot be the legal basis for placing or reading cookies. More in Legitimate interest and cookies.
Analytics or ad cookies listed as "essential" Only truly necessary cookies are always on The taskforce found this practice and expects website owners to be able to prove that cookies listed as essential are essential.
Content blocked until the visitor accepts The site stays usable after "Reject all" The EDPB: a cookie wall does not give a genuine choice, so consent is not freely given (paragraphs 39 to 41). More in Cookie walls.
Asking "Are you sure?" only after a reject One click for each choice The AP: rejecting must not take more clicks than accepting.
No way back after the first choice A cookie icon or "Cookie settings" link on every page The taskforce and the CNIL: withdrawing must be as easy as giving consent, for example via a small icon that is always visible.

Example texts for your cookie banner

Below this guide you will find a complete cookie banner text to copy: the first layer, the settings layer with four categories (necessary, preferences, statistics, marketing) and a short version for mobile. Everything between [brackets] is for you to fill in.

The text follows the rules above: it names the purposes and the kind of data, says how many partners are involved, mentions that necessary cookies are always on, explains how to change the choice, and offers "Accept all" and "Reject all" side by side.

Tips for adapting the text

  • Describe what your site really does. Run a cookie scanner and drop the categories you don't use. If you have no marketing cookies, remove the marketing sentence and the partner count.
  • Name the purposes concretely. "To improve your experience" says nothing. "To measure which pages are visited most" does. The AP gives "social media" as an example of a purpose that is too vague when the cookies are really used for marketing.
  • Fill in the real number of partners and keep it up to date. The full list with names belongs in your cookie policy or settings layer.
  • Keep the button texts plain. "Accept all", "Reject all" and "Settings" are understood everywhere. Avoid jokes and pressure, such as "No, I prefer a worse website".
  • Use the visitor's language. A banner that visitors cannot read does not give them the information they need for informed consent.
  • Mention the place to change the choice, and make sure it exists: a cookie icon or a "Cookie settings" link in the footer of every page.
  • UK visitors: since February 2026, UK law allows some analytics and functionality cookies without consent, if you inform visitors and let them object. See UK cookie law.

Short versions for mobile

On a phone, a long banner covers the page and pushes the buttons out of sight. Keep the first layer short and move the details to the settings layer and your cookie policy. The essentials stay: the purposes, the number of partners, that the choice can be changed, a link to the cookie policy, and the buttons.

Some practical points:

  • Accept and Reject must both be visible without scrolling. The AP says: if a visitor can accept without scrolling, they must be able to reject without scrolling too.
  • Stack the buttons in the same style when there is no room side by side, rather than shrinking "Reject" into a link.
  • Don't block the whole screen. The DSK points out that banners look different on small screens, and that a banner must not make parts of the website inaccessible there either.

Country differences

The core is the same across the EU, but some regulators go further or are more specific:

  • France: the CNIL recommends "Tout accepter" and "Tout refuser" buttons on the first layer, at the same level and in the same format.
  • Netherlands: the AP says that a website with an "Accept all" button on the first layer must also offer an equivalent "Reject all" button.
  • Germany: the DSK says that if the banner blocks content, rejecting must take no more clicks than accepting.
  • Spain: the AEPD requires the reject option on the same layer and at the same level as the accept option, with a similar mechanism.
  • Italy: the Garante says closing the banner with the X must keep the default settings, so no cookies that need consent are set.
  • United Kingdom: the ICO says rejecting must be as easy as accepting. More in UK cookie law.

For the full legal framework, see EU cookie law.

How Cookie Confirm does it

Cookie Confirm shows "Accept" and "Reject" side by side on the first layer and blocks scripts that need consent until the visitor agrees. You set the banner's colours, buttons, texts and logo to match your own style, and visitors see it in their own language, in 29+ languages. After the choice, visitors can reopen their settings at any time. You can try it free for 7 days, without a credit card.

Sources

Cookie banner text

FIRST LAYER

Title:
We use cookies

Text:
We use cookies and similar technologies to make this website work, to remember your preferences, to measure how the website is used and, together with [number] partners, to show you personalised ads. For this, we and our partners process data such as your IP address, the pages you visit and a cookie ID. Necessary cookies are always on. All other cookies are only used if you click "Accept all" or switch them on under "Settings". You can change or withdraw your choice at any time via [the cookie icon at the bottom left of every page]. More information is in our [cookie policy].

Buttons:
[Accept all]   [Reject all]   [Settings]


SETTINGS LAYER

Title:
Cookie settings

Text:
Choose which cookies we may use. Everything except necessary cookies is switched off until you switch it on.

Necessary (always on)
Needed for the website to work, for example to keep your shopping cart, keep you logged in and remember your cookie choice.

Preferences
Remember choices you make, such as your language or region, so you don't have to set them again.

Statistics
Help us understand how visitors use the website, for example which pages are visited most, so we can improve it. Provider: [for example Google Analytics].

Marketing
Let us and [number] partners, such as [Google, Meta], follow your visits to this and other websites to show you ads that match your interests and to measure how well our ads work.

Buttons:
[Save choices]   [Accept all]   [Reject all]


SHORT VERSION FOR MOBILE

We use cookies for statistics and, with [number] partners, for personalised ads. Only if you agree. You can change your choice at any time. [Cookie policy]

[Accept all]   [Reject all]   [Settings]

Rather not fill it in yourself?Cookie Confirm writes your cookie declaration from what the scanner finds on your site, and keeps it up to date when cookies change.

Frequently asked questions

Does a cookie banner need a "Reject all" button?

If your first layer has an "Accept all" button, the safe answer is yes. Most EU data protection authorities in the EDPB cookie banner taskforce consider a banner without a way to refuse on the same layer an infringement. The Dutch AP says it is mandatory, the CNIL and the Spanish AEPD ask for refusal on the same level as acceptance, and the ICO says rejecting must be as easy as accepting.

Is "This website uses cookies" with an OK button enough?

No. Consent must be informed and given by a clear action. A text that does not say what the cookies are for, combined with a button such as "OK" or "Got it", does not show that the visitor agreed to tracking. The German DSK says clicking an "Okay" button is not an unambiguous statement, and the AP advises against vague wording like "OK" or "I get it".

Do I need a cookie banner if I only use necessary cookies?

No. Cookies that are strictly necessary for a service the visitor asked for need no consent, so there is nothing to ask. You must still tell visitors about them, usually in your cookie policy. Be strict about what counts as necessary: regulators have found analytics and advertising cookies wrongly labelled as "essential".

Can I give the "Accept" button my brand colour?

You can use your brand colours, as long as "Accept" does not stand out more than "Reject". Regulators look at size, colour and contrast case by case. A reject button whose text can hardly be read against its background is clearly misleading, according to the EDPB taskforce. The safest choice is to give both buttons the same style.

Can I copy the cookie banner text from another website?

Use it as inspiration, not as a copy. Your banner must describe the purposes and partners of your own website, so check with a cookie scanner which cookies your site really sets and adapt the text to match. The example on this page has [placeholders] for exactly that.

This guide is general information, not legal advice. We check it regularly, but laws and guidance change. Not sure about your situation? Ask a lawyer.

Enjoy the first 7 days completely free

Create a free account and see if Cookie Confirm is the right fit for you. Live in 5 minutes.

  • No credit card required
  • €7.95 per month after
  • Plug & play installation
Start my free trial

5.0/5 5,000+ websites

Enjoy the first 7 days completely free

No credit card required

Start free trial