GDPR & ePrivacy
The ePrivacy Directive and cookies, explained
Article 5(3) of the ePrivacy Directive is the rule that requires consent for cookies in the EU. The GDPR sets the standard for that consent, and each country enforces it through its own law.
- Plain English
- Written for website owners
- Free to read
On this page
- What Article 5(3) actually says
- What it covers: more than cookies
- The two exemptions
- How the ePrivacy Directive and the GDPR fit together
- National laws: where the rule is actually enforced
- Who has to comply
- What's changing: the ePrivacy Regulation and the digital omnibus
- Next steps
- Frequently asked questions
The ePrivacy Directive (Directive 2002/58/EC, amended by Directive 2009/136/EC) is the EU law that makes cookie consent mandatory. Its Article 5(3) says you may only store information on a user's device, or access information already stored there, if the user has consented after receiving clear and comprehensive information. There are two narrow exemptions: storage or access needed purely to transmit a communication, and storage or access strictly necessary to provide a service the user explicitly asked for. The GDPR supplies the definition of consent, and each EU country enforces the rule through its own national law.
What Article 5(3) actually says
Stripped of legal phrasing, Article 5(3) has three parts:
- The rule. Storing information, or gaining access to information already stored, in the "terminal equipment" of a subscriber or user is only allowed if that person has given consent.
- The information requirement. Consent must follow clear and comprehensive information, including about the purposes of the processing. The Directive originally referred to Directive 95/46/EC for this; since 2018, those references are read as references to the GDPR (GDPR Art. 94(2)).
- The exemptions. Consent isn't needed for technical storage or access whose sole purpose is carrying out the transmission of a communication over a network, or that is strictly necessary for an information society service explicitly requested by the user.
Note what the rule doesn't mention: the word "cookie". Recital 66 of the 2009 amending Directive explains the intent, but Article 5(3) is written about devices and information, not any particular technology. That's why it reaches well beyond cookies.
What it covers: more than cookies
"Terminal equipment" means the user's device: a laptop, phone, tablet, smart TV or connected device. Any technique that writes to or reads from it can fall under Article 5(3). That includes:
- HTTP cookies, whether set by the server or by JavaScript, first party or third party.
- Browser storage such as
localStorage,sessionStorageand IndexedDB. See our guide to localStorage and consent. - Tracking pixels and similar resources that cause the browser to send information to a third party. See tracking pixels explained.
- Device fingerprinting that reads device characteristics through scripts.
- SDKs in mobile apps that read device identifiers.
The European Data Protection Board set out its view of this scope in Guidelines 2/2023 on the technical scope of Art. 5(3), adopted in final form in 2024. The guidelines take a broad reading: they discuss URL and pixel tracking, local processing, IP-based tracking in some circumstances and IoT reporting, and stress that the rule applies whether the information is stored by the website or by a third party it embeds.
Two points matter most in practice. First, it doesn't matter whether the information is personal data: the CJEU said so in Planet49 (C-673/17, 2019). Second, it doesn't matter who instructs the storage. If your page loads a third-party script that sets a cookie, the rule applies to that storage, and you, as the site owner who embedded it, are expected to handle consent for it.
The two exemptions
The communication exemption
This covers storage or access whose sole purpose is carrying out the transmission of a communication over an electronic communications network. It's narrow and mostly relevant to network-level mechanics, such as routing information or data needed to detect transmission errors. Few website cookies qualify in practice. A load-balancing cookie that routes a visitor's requests to the same server is the classic example usually discussed under this heading.
The strictly necessary exemption
This is the one most websites rely on. Storage or access is exempt if it's strictly necessary for a service the user explicitly requested. Two conditions must both hold:
- The user asked for the service, such as logging in, adding an item to a cart or completing a payment.
- The storage is genuinely needed to deliver that service. If the service would work without it, it isn't strictly necessary.
Session cookies for a login or cart, security cookies that protect a login form and a cookie that remembers the visitor's consent choice are typical examples. Analytics, advertising and most personalization fall outside it. The Article 29 Working Party's Opinion 04/2012 on the cookie consent exemption (WP194) remains the reference point for this analysis. We go through the gray areas in our guide to strictly necessary cookies.
How the ePrivacy Directive and the GDPR fit together
The two laws work in layers, and it helps to keep them separate in your head.
| Question | Which law answers it |
|---|---|
| May I store or read information on the visitor's device? | ePrivacy Art. 5(3), through national law: only with consent, unless an exemption applies. |
| What counts as valid consent? | GDPR Art. 4(11) and Art. 7: freely given, specific, informed, unambiguous, demonstrable and withdrawable. |
| What legal basis do I need to process the personal data I collect? | GDPR Art. 6, for any later processing of personal data obtained through the cookie. |
| What must I tell people, and what rights do they have? | GDPR Arts. 12–22, alongside the ePrivacy information requirement. |
The ePrivacy Directive is the more specific law (lex specialis) for device access. GDPR Art. 95 says the GDPR doesn't add extra obligations where the ePrivacy Directive already sets specific ones with the same objective. In practice, that means you can't use a GDPR legal basis such as legitimate interest to avoid the ePrivacy consent requirement for the cookie itself. We explain why in can you use legitimate interest for cookies?
The GDPR still matters a great deal, because it sets the quality bar for consent. Pre-ticked boxes, consent by scrolling, bundled consent and refusal that's harder than acceptance all fail the GDPR standard, and so they fail Article 5(3) too.
National laws: where the rule is actually enforced
A directive isn't directly applicable like a regulation. Each member state wrote Article 5(3) into its own law, and enforcement happens under those national laws. The core rule is the same everywhere, but wording, regulators and guidance differ. Some examples:
| Country | Implementing provision |
|---|---|
| France | Article 82 of the Loi Informatique et Libertés (Law No. 78-17) |
| Germany | Section 25 TDDDG (formerly TTDSG, renamed in 2024) |
| Ireland | Regulation 5 of S.I. No. 336 of 2011 |
| Netherlands | Article 11.7a of the Telecommunicatiewet |
| Spain | Article 22.2 of the LSSI |
| Italy | Article 122 of the Personal Data Protection Code |
| United Kingdom (no longer EU) | Regulation 6 of PECR 2003, since amended by the Data (Use and Access) Act 2025 |
Two practical consequences follow. First, regulators publish their own guidance, and some are more detailed than others. France's CNIL is the best known; see CNIL cookie rules. The UK has diverged further since Brexit; see UK cookie rules under PECR.
Second, the GDPR's one-stop-shop mechanism, where a company's lead authority handles cross-border cases, doesn't apply to ePrivacy breaches in the same way. That's why the CNIL has been able to fine non-French companies directly for cookies placed on the devices of users in France.
Who has to comply
If your website is used by people in the EU or EEA, assume Article 5(3) applies to the cookies you set on their devices, regardless of where your company is based. The rule attaches to the act of storing on or reading from the device, and national laws are generally applied to devices located in their territory.
Size doesn't matter either. There's no small-business exemption. A one-person blog running an ad network is subject to the same consent requirement as a large retailer, although regulators tend to focus enforcement on high-traffic sites.
What's changing: the ePrivacy Regulation and the digital omnibus
The Commission proposed an ePrivacy Regulation in January 2017 to replace the Directive with a single, directly applicable law. After years of stalled negotiations, the Commission announced in 2025 that it would withdraw the proposal.
In November 2025, the Commission proposed a "digital omnibus" package that would, among other things, move the rules for accessing personal data on devices into the GDPR, with a short list of purposes that wouldn't need consent and provisions on browser-level choice signals. As of late 2026, that package is still going through the EU legislative process, and its cookie provisions could change before adoption. Until a new law is adopted and applies, Article 5(3) and the national laws above remain the rules you need to follow. Check the current status before you plan around any proposed change.
Proposed reforms come and go. Today's rule is simple to state: no non-essential storage or access on the visitor's device without prior, GDPR-standard consent.
Next steps
- List what your site stores or reads on visitors' devices, including localStorage, pixels and embeds, not only cookies. A free cookie scan is a quick starting point.
- Test each item against the two exemptions. Be strict: "useful" isn't "strictly necessary".
- Hold back everything else until consent. Our script blocking docs show one way to do it with PrivacyQuick.
- Check the guidance of the regulator in each country where most of your visitors are.
- Recheck when your site changes and when the law does.
Frequently asked questions
Is the ePrivacy Directive the same as the cookie law?
Mostly, yes. The 'EU cookie law' usually means Article 5(3) of the ePrivacy Directive (2002/58/EC) as amended in 2009, together with the national laws that implement it.
Does the ePrivacy Directive apply if cookies don't contain personal data?
Yes. Article 5(3) applies to any information stored on or read from a user's device, whether or not it is personal data. The CJEU confirmed this in Planet49 (C-673/17).
What happened to the ePrivacy Regulation?
The European Commission proposed an ePrivacy Regulation in 2017 to replace the Directive, but it never passed and the Commission moved to withdraw it in 2025. The Directive and national laws remain in force.
Who enforces the cookie rules in the EU?
National authorities named in each country's implementing law. In many countries that's the data protection authority, but in some it's a telecoms or consumer regulator, or both share the role.
Check your own website in 30 seconds
Our free scanner lists every cookie and tracker your site sets, sorted into categories, before you add a banner.
This guide is general information, not legal advice. Laws and regulator guidance change; check the current rules for your situation or ask a lawyer.