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
- GDPR, Regulation (EU) 2016/679, articles 4(11) and 7
- ePrivacy Directive 2002/58/EC (consolidated), article 5(3)
- EDPB: Guidelines 05/2020 on consent under Regulation 2016/679, version 1.1
- EDPB: Report of the work undertaken by the Cookie Banner Taskforce (17 January 2023)
- CJEU: Case C-673/17, Planet49 (1 October 2019)
- ICO: How do we manage consent in practice?
- CNIL: Recommendation on cookies and other trackers, deliberation no. 2020-092 (in French)
- Autoriteit Persoonsgegevens: Vuistregels heldere cookiebanners (in Dutch)
- DSK: Orientierungshilfe für Anbieter:innen von digitalen Diensten, version 1.2, November 2024 (in German)
- AEPD: Guía sobre el uso de las cookies, May 2024 (in Spanish)
- Garante: Linee guida cookie e altri strumenti di tracciamento, 10 June 2021 (in Italian)