Sanitext

Redaction vs Anonymization vs Pseudonymization

Redaction removes or masks sensitive data, often replacing it with a label like [EMAIL]. Anonymization permanently strips data so a person cannot be re-identified by anyone. Pseudonymization swaps identifiers for reversible tokens, so re-identification stays possible with a separate key. Redaction is a method; anonymization and pseudonymization are outcomes.

"Redaction," "anonymization," and "pseudonymization" get used as if they mean the same thing. They do not. The difference comes down to one question: can the original person still be identified afterward? This page defines each term, shows examples, and clears up the common mix-ups, so you pick the right approach for your data.

Redaction vs anonymization vs pseudonymization

ConceptWhat it doesReversible?Still personal data?Typical use
RedactionRemoves or masks sensitive content in text, often as [LABEL]Depends on methodDepends on thoroughnessCleaning logs, tickets, prompts, documents
AnonymizationStrips data so no one can re-identify the personNo, irreversible by designNo, outside GDPR scopePublic datasets, long-term archives, research
PseudonymizationSwaps identifiers for tokens, with a separate keyYes, with the protected keyYes, still regulatedAnalytics and support where re-linking is needed

What is redaction?

Redaction is the act of finding sensitive content in text and removing, hiding, or masking it. The original characters get deleted or covered, often replaced by a placeholder such as [EMAIL], a black bar, or XXXX.

Redaction is a technique, not a legal status. It describes what you do to the text. Whether the result counts as anonymized or pseudonymized depends on how thorough the redaction is and whether any way to reverse it still exists.

Example: a support ticket that read 'Email me at maria@acme.com about order 4471' becomes 'Email me at [EMAIL] about order [ACCOUNT]'. The personal values are gone from the visible text.

What is anonymization?

Anonymization is an outcome: the data is changed so no one can link it back to a specific person, not even the organization that holds it. There is no key, no lookup table, and no reasonable way to re-identify the individual.

Under GDPR, truly anonymized data falls outside the regulation because it is no longer personal data. That bar is high. Removing one obvious field rarely achieves it, because indirect identifiers, like a rare job title plus a city plus a birth date, can still single someone out.

Anonymization is usually irreversible by design. If you can recombine the data and get the person back, it was not anonymized.

What is pseudonymization?

Pseudonymization replaces direct identifiers with artificial values, called pseudonyms or tokens, while keeping a separate mapping that can reverse the swap. 'Maria Lopez' might become 'USER_8842', with a protected table linking the two.

The data still relates to a real person, so under GDPR it is still personal data and still regulated. The point is to reduce risk: if the working dataset leaks, attackers see tokens, not names, as long as the mapping key stays protected.

Pseudonymization is reversible on purpose. That reversibility is the whole feature, since it lets you re-link records later for support, billing, or analytics.

How do redaction, anonymization, and pseudonymization differ?

The cleanest way to compare them is by reversibility and by whether the result is still personal data. Redaction is the method you apply. Anonymization and pseudonymization describe how strong the result is.

  • —Redaction: removes or masks data in text. Reversibility depends on the method.
  • —Anonymization: irreversible. Result is no longer personal data and falls outside GDPR.
  • —Pseudonymization: reversible with a separate key. Result is still personal data under GDPR.
  • —Masking and tokenization are specific techniques used to achieve these outcomes.

Comparison table

A side-by-side view of the three concepts.

Common confusions and distinctions

Confusion 1: 'Redaction means anonymized.' Not always. If you replace a name with a consistent token that maps back to the person, you have pseudonymized, not anonymized. If you remove a direct name but leave indirect identifiers that still single someone out, the data is neither anonymized nor safely pseudonymized.

Confusion 2: 'Masking equals anonymization.' Data masking hides values, often for display, like showing a card as ****1234. Masking is a technique. Whether it reaches anonymization depends on whether the full value can be recovered anywhere.

Confusion 3: 'Pseudonymized data is anonymous.' No. Regulators treat pseudonymized data as personal data because a key still links it to a person. Only data with no realistic path back to the individual is anonymous.

Practical takeaway: decide first whether you need to re-link the data later. If yes, pseudonymize. If no, redact thoroughly and assess whether you have truly cut every path to re-identification.

How Sanitext relates

Sanitext handles the first and hardest step: finding the sensitive data. POST text to /v1/detect and you get entity spans with labels (EMAIL, PHONE, ADDRESS, FIRSTNAME, LASTNAME, DATE, URL, ACCOUNT, SECRET) plus byte offsets and a score. POST to /v1/redact and you get the text back with each span masked as [LABEL].

That output is redaction. It can support anonymization or pseudonymization workflows, but it does not, on its own, guarantee either. If you keep a mapping from tokens back to the original values, you are pseudonymizing. If you want anonymization, you still need to account for indirect identifiers and the risk that combined fields re-identify someone.

Be honest about scope: Sanitext is a redaction and data-minimization aid, not an anonymization or compliance guarantee. It works across 30+ languages and runs on our own infrastructure, so raw text is never sent to a third-party LLM. We log counts and timings only, not your text. See /docs for the API and /playground to test detection on your own sample.

FAQ

Is redaction the same as anonymization?+

No. Redaction is the act of removing or masking data in text. Anonymization is an outcome where re-identification is impossible for anyone. Redaction can lead to anonymization, but only if every path back to the person is cut, including indirect identifiers.

Is pseudonymized data still personal data under GDPR?+

Yes. Because a separate key can re-link pseudonyms to real people, regulators treat pseudonymized data as personal data, so GDPR still applies. Only data with no realistic way to re-identify the individual is considered truly anonymized and falls outside GDPR.

When should I pseudonymize instead of anonymize?+

Pseudonymize when you still need to re-link records later, for example support, billing, or analytics. Keep the mapping key protected and separate. Anonymize when you never need the original identity back, such as public datasets or long-term archives where re-identification must be impossible.

Does Sanitext anonymize my data?+

Sanitext detects and redacts PII, which is the hardest step. It does not guarantee anonymization on its own, since indirect identifiers and any kept mapping can still allow re-identification. Treat it as a redaction and data-minimization aid, not an anonymization or compliance guarantee.

Find the PII before you decide how to treat it

Sanitext detects and redacts names, emails, phone numbers, addresses, and secrets across 30+ languages. Test it on your own text in the playground, or read the API docs to start redacting in minutes.

Get your free API key