What is personal data under the GDPR? Examples for websites

Names and email addresses, but also IP addresses, cookie IDs and device IDs: what counts as personal data under the GDPR, when someone is identifiable, which data is extra sensitive, the difference between pseudonymised and anonymous data, how personal data differs from PII, and what this means for your website.

Last checked on 24 November 2026

In short

  • Personal data is any information about a person who is identified or identifiable, directly or indirectly (GDPR article 4(1)).
  • Online identifiers such as IP addresses, cookie IDs and device IDs can be personal data (recital 30; Breyer judgment on IP addresses).
  • Pseudonymised data is still personal data for whoever can link it back to a person. Only truly anonymous data falls outside the GDPR (recital 26).
  • Health, religion, sexual orientation and other special categories (article 9), and criminal data (article 10), are subject to stricter rules.
  • Personal data is broader than the US term PII, which mostly covers data that identifies someone on its own.

What counts as personal data?

Article 4(1) of the GDPR defines personal data as any information relating to an identified or identifiable natural person. That person is called the data subject.

The definition is deliberately broad:

  • Any information. Facts, but also opinions and assessments. In EDPS v SRB (2025), the EU Court of Justice confirmed that a person's personal opinions or views are personal data about that person.
  • Relating to a person. Information about who someone is, what they do, what they own or how they behave.
  • A natural person. A living human being. Data about companies is not personal data, but the name, email address or phone number of someone who works there is. Data of deceased persons falls outside the GDPR (recital 27), although national law can protect it.

Typical examples on a website: a name, an email address, a phone number, a postal address, an order history, an IP address, a cookie ID, a device ID, location data and a customer number.

Directly or indirectly identifiable

Someone is identified when you know who they are, for example by name. They are identifiable when they can be identified, "directly or indirectly", by reference to an identifier such as a name, an identification number, location data or an online identifier, or to factors specific to their physical, physiological, genetic, mental, economic, cultural or social identity (article 4(1)).

Recital 26 explains how far this goes. To decide whether someone is identifiable, you take account of all the means reasonably likely to be used, by you or by another person, to identify them, "such as singling out". What is reasonably likely depends on objective factors such as the cost and time needed and the technology available.

So a single piece of information does not have to reveal a name. A combination of a postcode, a date of birth and a job title can point to one person. So can a unique ID that follows one browser from page to page.

Online identifiers: IP addresses, cookie IDs and device IDs

Recital 30 of the GDPR says that people may be associated with online identifiers provided by their devices, applications, tools and protocols, "such as internet protocol addresses, cookie identifiers" or RFID tags. Combined with other information received by servers, these traces can be used to create profiles of people and identify them.

IP addresses. In Breyer (C-582/14, 19 October 2016), the EU Court of Justice ruled that a dynamic IP address, which changes with each connection, is personal data for a website operator if the operator has legal means to identify the visitor with additional information held by the visitor's internet provider. That additional information does not have to be in the website operator's hands.

Cookie IDs and device IDs. A cookie that gives a browser a unique ID, or an advertising ID on a phone, is designed to recognise the same visitor again. That is singling out, which recital 26 names as a means of identification. In IAB Europe (C-604/22, 7 March 2024), the Court ruled that even the TC string, the code in which a consent banner records a visitor's choices, is personal data when it can be linked to an identifier such as an IP address.

One point that is easy to miss: the cookie rule does not depend on personal data. Article 5(3) of the ePrivacy Directive asks for consent before storing or reading any non-essential information on a device, and the Court confirmed in Planet49 (C-673/17) that this applies whether or not the information is personal data. More on how cookies work in what are cookies?

Special categories and criminal data

Some personal data is extra sensitive. Article 9(1) prohibits processing special categories of personal data, unless one of the exceptions in article 9(2) applies, such as explicit consent:

  • racial or ethnic origin
  • political opinions
  • religious or philosophical beliefs
  • trade union membership
  • genetic data
  • biometric data used to uniquely identify a person
  • data concerning health
  • data concerning a person's sex life or sexual orientation

Personal data relating to criminal convictions and offences has its own rule: article 10 allows processing only under the control of an official authority or when EU or national law authorises it.

For a website, this matters more often than you might think. A contact form at a clinic, a donation page for a religious organisation or a tracking pixel on a page about a medical condition can all involve special categories.

Pseudonymised or anonymous?

Pseudonymisation (article 4(5)) means processing personal data so that it can no longer be attributed to a specific person without additional information, which is kept separately and protected. Replacing a name with a customer number, or an email address with a hash, are examples.

Pseudonymised data is still personal data for whoever can link it back to a person (recital 26). In its Guidelines 01/2025 on pseudonymisation, the EDPB writes that this also holds when the pseudonymised data and the additional information are in different hands. A hashed email address is a good example: anyone with the same address can compute the same hash and recognise it.

In EDPS v SRB (C-413/23 P, 4 September 2025), the EU Court of Justice nuanced this for recipients. The case concerned the EU institutions' own data protection regulation, which the Court reads in the same way as the GDPR. The Court held that pseudonymised data must not be regarded as personal data in every case and for every person: for a recipient who cannot reasonably re-identify anyone, it may not be. But for the controller that pseudonymised the data, it stays personal data, and its duty to inform people is assessed from its own point of view, at the moment it collects the data.

Anonymous data is information that no longer relates to an identifiable person, taking into account all the means reasonably likely to be used. The GDPR does not apply to it (recital 26). The bar is high: removing names is not enough if people can still be singled out or re-identified by combining data.

Personal data vs PII

PII, personally identifiable information, is a term used in the United States. There is no single legal definition; it varies between laws and guidance. NIST's guide on protecting PII (SP 800-122), for example, describes it as information that can be used to distinguish or trace a person's identity, on its own or combined with other information. In practice, PII is often read as data that identifies someone directly, such as a name, a social security number or an email address.

Personal data under the GDPR is broader. It includes everything that relates to a person who can be identified, also when you do not know their name: an IP address, a cookie ID, browsing behaviour, a purchase history or an opinion. If your privacy team thinks in PII, do not assume that data without names is out of scope.

What this means for your website

On your website Personal data? What to keep in mind
Contact or newsletter form Yes: name, email, message Ask only what you need, explain it in your privacy policy
Server logs Yes: IP addresses Keep them only as long as you need them
Analytics (for example Google Analytics) Yes: cookie IDs, IP addresses, behaviour Consent for the cookies, and check data transfers
Advertising pixels Yes: cookie IDs, page visits Consent before the pixel loads
Cookie banner Yes: the stored choice with an ID Record consent so you can prove it
Embedded videos, maps and fonts from other servers Yes: the visitor's IP address goes to the provider Consent or a local copy
Aggregated statistics without IDs No, if truly anonymous Make sure no one can be singled out

Three practical steps follow from this:

  1. Map what you collect. Forms, logs, cookies, pixels and embedded content all count.
  2. Ask consent where the cookie rule requires it, before non-essential cookies or trackers run. For analytics in particular, see Google Analytics and the GDPR.
  3. Explain it in your privacy policy: which data, why, on which legal basis, for how long and who receives it. Start from the privacy policy template.

Sources

Frequently asked questions

What is personal data under the GDPR?

Any information relating to an identified or identifiable natural person (article 4(1) GDPR). A person is identifiable if they can be identified directly or indirectly, for example by a name, an identification number, location data, an online identifier or factors specific to their physical, genetic, economic, cultural or social identity. Data about companies is not personal data, but the name and email address of a person at a company is.

Is an IP address personal data?

Usually, yes. Recital 30 of the GDPR names IP addresses as online identifiers. In the Breyer judgment of 19 October 2016, the EU Court of Justice ruled that even a dynamic IP address is personal data for a website operator that has legal means to identify the visitor with additional information held by the internet provider.

Are cookie IDs personal data?

Yes, when they single out a visitor and can be linked to them, which is the point of most tracking cookies. Recital 30 names cookie identifiers explicitly. Note that the cookie rule (article 5(3) of the ePrivacy Directive) asks for consent for non-essential cookies whether or not they contain personal data.

Is pseudonymised data still personal data?

For you, yes, as long as you or someone else can reasonably link it back to a person (recital 26 and article 4(5)). In EDPS v SRB (4 September 2025), the EU Court of Justice added that pseudonymised data is not personal data for every recipient in every case: for a recipient who cannot reasonably re-identify anyone, it may not be. Truly anonymous data falls outside the GDPR.

What is the difference between PII and personal data?

PII, personally identifiable information, is a US term with no single legal definition. It mostly refers to data that can identify someone, such as a name or social security number. Personal data under the GDPR is broader: it covers any information about a person who can be identified, including online identifiers, behaviour and opinions.

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