De-identification vs Anonymization: Key Differences Under HIPAA and GDPR

Explore the differences between de-identification and anonymization. Learn how GDPR anonymous data and HIPAA de-identified data impact privacy and compliance.

De-identification removes or replaces the details that identify a person, and the data holder can often still link the record back, for example through a token map. Anonymization goes further: no one, including the data holder, can reasonably link the data to a person again. All anonymized data is de-identified, but most de-identified data is not anonymous. The difference decides how laws treat the data: under GDPR, anonymous data is out of scope, while de-identified data with a way back is still personal data. For the wider topic, see our guide to data de-identification.

The same record, three ways

A hospital wants to share a patient’s visit record with an analytics team. Here is what each approach does to it.

Field Original De-identified (tokenized) Anonymized
Name Maria Lopez <PERSON>Kx7Qm2</PERSON> Removed
Date of birth 1984-03-12 <DOB>Rt42Lp</DOB> Age band 40 to 44
ZIP code 94110 <ZIP>Vn81Qe</ZIP> Region: West
Diagnosis Type 2 diabetes Type 2 diabetes Type 2 diabetes
Way back to Maria n/a Yes, through the protected token map, for approved users No

The tokenized version keeps Maria as the same token in every table, so analysts can follow her visits over time. The anonymized version can be shared more widely, but it can no longer be joined to other records about her.

De-identification vs anonymization at a glance

Question De-identification Anonymization
What changes Direct identifiers are removed, masked or replaced with tokens Direct and indirect identifiers are removed, generalized or aggregated
Way back to the person Often kept, such as a token map or re-identification code None, for anyone
Re-identification risk Low if the map is protected; higher if indirect details remain Very low when done well; rare details can still give people away
Usefulness of the data High: records stay linkable and detailed Lower: detail is lost to protect individuals
HIPAA Not PHI if it meets Safe Harbor or Expert Determination HIPAA does not use the term; anonymized data also meets the standard
GDPR Still personal data if anyone can re-identify it (pseudonymized data) Out of scope when no one can reasonably re-identify it
Typical uses Research cohorts, internal analytics, AI training, support workflows Public datasets, open research, published statistics

What de-identification means

De-identification is the broad term for removing the link between data and a person. It covers removing fields, masking them, and replacing them with consistent tokens. When the replacement can be reversed with a separately kept key, the result is pseudonymized data, the most useful form of de-identification for analytics and AI, because records still join up. See pseudonymization vs anonymization for that comparison.

What anonymization means

Anonymization is de-identification taken to the point of no return. European regulators test it with three questions: can anyone single out one person, link two records about the same person, or infer facts about a person? If the answer to all three is no, the data is anonymous. Common techniques are aggregation, generalization (exact age to an age band), k-anonymity and adding statistical noise. Removing names alone is rarely enough: a birth date, ZIP code and gender together can still point to one person.

How HIPAA, GDPR and CCPA treat each

  • HIPAA uses “de-identified”, not “anonymized”. Health data is de-identified, and no longer PHI, when it meets Safe Harbor (all 18 identifier types removed) or Expert Determination. A covered entity may keep a re-identification code if the code is not derived from patient details and is not disclosed. More in our HIPAA de-identification guide.
  • GDPR separates pseudonymized data, which is still personal data, from anonymous data, which falls outside the regulation (Recital 26). In September 2025, the EU Court of Justice ruled in EDPS v SRB that pseudonymized data may not be personal data for a recipient who has no reasonable means to re-identify it. For the organization that holds the key, it stays personal data.
  • CCPA treats “deidentified” information as outside personal information only if the business takes reasonable measures against re-identification, publicly commits not to re-identify it, and passes that duty on by contract to anyone who receives it.

This is a summary, not legal advice. Check with your counsel for a specific dataset.

Which one should you use?

  • You need to follow people over time or let approved staff see real values: de-identify with consistent tokens and keep the map in a separate, controlled store.
  • You will publish the data or share it with parties you can’t bind by contract: anonymize, and check that no rare combination of details still points to one person.
  • You are training or tuning an AI model: either can work. Tokens keep relationships the model can learn from; anonymization fits when no one should ever trace an output back. See AI training data de-identification.
  • You are under HIPAA: aim for Safe Harbor or Expert Determination, whichever method you use to get there.

How Protecto handles both

Protecto finds personal and health data in tables and free text, then applies the mode you choose. Pseudonymization replaces each value with a format-preserving token that stays the same across datasets, and keeps the mapping in a separate vault where only approved roles can reveal real values, with every reveal logged. Anonymization replaces values without keeping any mapping, so no one can reverse them. Because tokens keep the shape and consistency of real data, teams can treat tokenized datasets much like synthetic data for testing and AI. Whether an output counts as anonymous under GDPR also depends on the indirect details left in it, so review those as well.

Frequently asked questions

Is de-identified data the same as anonymized data?

No. Anonymized data is a strict subset of de-identified data. De-identified data often keeps a way back, such as a token map, while anonymized data has none for anyone.

Is pseudonymized data anonymous under GDPR?

No. Pseudonymized data is still personal data for anyone who can re-identify it, including the organization holding the key. A 2025 EU Court of Justice ruling found it may not be personal data for a recipient with no reasonable means to re-identify it.

Does HIPAA require anonymization?

No. HIPAA requires de-identification through Safe Harbor or Expert Determination. Once data meets either method it is no longer PHI, even if the covered entity keeps a protected re-identification code.

Can anonymized data be re-identified?

Done well, re-identification is not reasonably possible. Done poorly, rare combinations of details such as age, ZIP code and a diagnosis can still point to one person, which is why anonymization needs testing as well as removal of names.

HIPAA for Enterprise AI and Agents
Free whitepaper
HIPAA for Enterprise AI and Agents

Protect health information while enabling authorized care and operational workflows.

See both modes on your own data

Bring a sample, synthetic if you prefer, and see Protecto's pseudonymized and anonymized output.

About the author

Rahul Sharma

Content Writer

Rahul Sharma, a Delhi University graduate with a degree in computer science, is a seasoned technical writer with 12 years of experience in the tech industry. Specializing in cybersecurity, he creates insightful content on technology, identity theft, and cybersecurity.

Share article

Table of Contents

HIPAA for Enterprise AI and Agents
Free whitepaper
HIPAA for Enterprise AI and Agents

Turn these challenges into your next AI advantage.

Talk to a solutions engineer about securing your data privacy, governance, and compliance.

New: Protecto now runs inside LiteLLM. Control what sensitive data your models and tools see.
Read the launch blog