What do opt-in and opt-out mean?
Opt-in means you ask first: nothing happens until the person actively says yes. A visitor clicks "Accept", ticks an empty box or switches on a category in your cookie settings.
Opt-out means you go ahead by default: the person has to do something to stop it. They untick a pre-ticked box, click "Reject" after cookies have already been placed, or use an unsubscribe link.
The difference sounds small, but it decides who has to act. With opt-in, doing nothing means no. With opt-out, doing nothing means yes. EU law treats these very differently.
Why the EU requires opt-in for cookies
Article 5(3) of the ePrivacy Directive allows storing information on a visitor's device, or reading information already stored there, only if the visitor has given consent after clear and comprehensive information. The exceptions are storage needed to transmit a communication and storage that is strictly necessary for a service the visitor explicitly asked for. Every EU country has written this rule into its national law.
The directive takes its definition of consent from EU data protection law, today the GDPR. Article 4(11) defines consent as a "freely given, specific, informed and unambiguous indication" of a person's wishes, given "by a statement or by a clear affirmative action". An action is required, so consent is opt-in by definition.
Article 7 of the GDPR adds the conditions:
- You must be able to show that the person consented (article 7(1)).
- The request must be clearly distinguishable from other matters, in clear and plain language (article 7(2)).
- The person can withdraw consent at any time, and withdrawing must be as easy as giving it (article 7(3)).
- Consent is not freely given if a service is made conditional on consent that is not needed for it (article 7(4)). That is the question behind cookie walls.
The rule covers more than cookies: local storage, pixels and fingerprinting fall under the same article 5(3). And it applies whether or not the information is personal data.
Pre-ticked boxes, silence and scrolling
Recital 32 of the GDPR is explicit: "Silence, pre-ticked boxes or inactivity should not therefore constitute consent."
The EU Court of Justice applied this to cookies in Planet49 (C-673/17, 1 October 2019). An online lottery used a checkbox, ticked in advance, for cookies that tracked participants for advertising. The Court ruled that a pre-ticked box the user has to untick to refuse does not give valid consent, and that this is so whether or not the stored information is personal data.
The EDPB, where all EU data protection authorities meet, goes further in its Guidelines 05/2020 on consent:
- Merely continuing to use a website is not conduct from which consent can be inferred.
- Scrolling or swiping through a page will not under any circumstances count as a clear affirmative action.
- The GDPR does not allow pre-ticked boxes or opt-out constructions that require the person to intervene to prevent agreement.
In its January 2023 report, the EDPB cookie banner taskforce confirmed that pre-ticked boxes on the second layer of a banner are not valid consent either. A vast majority of the authorities also considered a banner without a reject option on the same layer as the accept button to be an infringement.
Where opt-out does exist in the EU
Opt-in is the rule for consent, but not every processing operation needs consent. In some places, EU law gives people an opt-out instead.
Objection to legitimate interest (GDPR article 21). If you process personal data on the basis of legitimate interest, people can object on grounds relating to their particular situation. You must then stop, unless you show compelling legitimate grounds that override their interests, or need the data for legal claims. For direct marketing, the right to object is absolute: once someone objects, you stop (article 21(2) and (3)). You must bring this right to their attention explicitly, at the latest in your first communication. But legitimate interest does not replace the consent the cookie rule asks for; see legitimate interest and cookies.
Email marketing to existing customers (ePrivacy article 13(2)). As a rule, marketing by email needs prior consent (article 13(1)). The exception, often called "soft opt-in": if you obtained a customer's email address in the context of a sale, you may use it for direct marketing of your own similar products or services, provided the customer could object free of charge and easily when you collected the address, and can do so in every message. Each EU country has transposed this in its own law, so check the details for yours.
Strictly necessary cookies. These need neither opt-in nor opt-out: no consent is required, so there is nothing to refuse. You still explain them in your cookie policy.
Cookie notice or consent banner?
The two terms are often mixed up, but they are different things:
| Cookie notice | Consent banner | |
|---|---|---|
| What it does | Informs that the site uses cookies | Asks for a choice before cookies are placed |
| Buttons | "OK" or "Got it", sometimes none | "Accept all", "Reject all", "Settings" |
| Cookies placed before a choice | Yes | Only strictly necessary ones |
| Enough for | Strictly necessary cookies only | All cookies |
A cookie notice that only informs, or says "by continuing to browse you accept cookies", is an opt-out model in disguise: it assumes consent unless the visitor leaves. That is not valid consent for analytics, advertising or other non-essential cookies. If your website only uses strictly necessary cookies, you do not need a banner at all.
A consent banner is an opt-in mechanism: non-essential cookies stay off until the visitor chooses. See cookie banner examples for what the first screen should show.
Withdrawing consent: as easy as giving it
Article 7(3) of the GDPR says it must be as easy to withdraw consent as to give it, and that you must tell people about this right before they consent. The EDPB explains that when consent is given with one click on a website, people must be able to withdraw it just as easily, through the same interface. Withdrawing must be free and must not lower the level of service.
In practice:
- A permanently visible icon or a "Cookie settings" link on every page, for example in the footer, that reopens the banner. The taskforce named both as solutions, without imposing one.
- Switches per category that the visitor can turn off again later.
- Once consent is withdrawn, the cookies concerned stop being read and, where possible, are removed.
Sending visitors to their browser settings or asking them to email you to withdraw consent is not as easy as clicking "Accept".
Examples of wording
| Non-compliant | Why | Compliant |
|---|---|---|
| "By continuing to browse, you accept our use of cookies." | Continuing to browse is not a clear affirmative action | "We use analytics and advertising cookies only if you accept them. [Accept all] [Reject all] [Settings]" |
| A pre-ticked "Marketing cookies" box | Pre-ticked boxes are not consent (Planet49) | An empty "Marketing cookies" switch, off by default |
| "OK" as the only button | No real choice, no way to refuse | "Accept all" and "Reject all", equally visible |
| "We use cookies to improve your experience." | Not specific: which purposes, which parties? | "We use cookies to measure visits (Google Analytics) and to show ads (Google Ads). You can change your choice at any time via Cookie settings." |
| "Uncheck this box if you do not want our newsletter." | Opt-out for marketing email to non-customers | "Yes, send me the newsletter" with an empty box |
And in the US?
In the United States, privacy rules mostly follow an opt-out model: companies may often collect and use data until a person objects. This guide does not go into US law. If your website offers goods or services to people in the EU or monitors their behaviour, the GDPR applies to them (article 3(2)), and so do the EU cookie rules.
Sources
- General Data Protection Regulation (EU) 2016/679, articles 3, 4(11), 7 and 21 and recital 32
- ePrivacy Directive 2002/58/EC (consolidated), articles 5(3) and 13
- CJEU: Case C-673/17, Planet49 (1 October 2019)
- CJEU: Press release 125/19 on the Planet49 judgment
- EDPB: Guidelines 05/2020 on consent under Regulation 2016/679
- EDPB: Report of the work undertaken by the Cookie Banner Taskforce (17 January 2023)