Redaction is a technique: it removes or obscures specific sensitive values, usually by blacking them out or swapping in a placeholder. Anonymization is an outcome: data is anonymized only when the people in it can no longer reasonably be identified, by any method. Redaction can contribute to that outcome, but on its own it often leaves indirect identifiers behind and strips out the context that makes data useful, so it suits disclosing individual documents, while de-identification through realistic replacement suits data you need to analyze, share, or train on.
What redaction does, and the forms it takes
Redaction finds specific sensitive values and removes or obscures them, while everything else in the record or document stays exactly as it was. It is a targeted operation: you decide which values count as sensitive, locate each occurrence, and act on those occurrences alone. In practice it takes a handful of recognizable forms:
- Covering. A black box is drawn over a value in a document or image, so the reader sees that something was there but not what it was.
- Deletion. The value is removed outright, leaving a gap or simply shorter text.
- Placeholder substitution. The value is swapped for a token that names its entity type, so "Maria Chen called on 3 March" becomes "[NAME] called on [DATE]."
- Partial redaction. Only part of a value is hidden, such as all but the last four digits of an account number.
Redaction grew up in legal disclosure, public-records requests, and document release, where the goal is narrow and well defined: hide specific facts from a specific audience while releasing the rest. That heritage explains why it works value by value. It also explains the common confusion around PII masking vs. redaction: masking substitutes a value with a different one, typically inside databases, while redaction removes or blanks it.
Much redaction work happens on free text and files, and anonymizing unstructured data is where the distinction between technique and outcome matters most. In Tonic Textual, redaction renders differently by file type. Under Textual's entity-type handling options, a redacted value in text becomes a token that names the entity type, followed by an identifier, and in PDFs and images the value is typically covered with a box. In every form, though, redaction acts only on values someone detected and chose to hide. On its own, it says nothing about what can still be inferred from what remains.
What makes data anonymized: an outcome, not an operation
Anonymization describes the state of the data, not a step you perform: data is anonymized when the individuals in it can't reasonably be identified, either from the data alone or combined with other information that's available. Data anonymization is therefore judged by testing the output rather than by listing the operations applied to it. That test is also contextual, which shapes what data anonymization requires in practice: whether a dataset is identifying depends on who holds it and what else they could link it to. The same question sits at the center of what de-identified actually means when data changes hands.
The major regulatory frameworks treat it the same way, as a standard to meet rather than a technique to apply. Under GDPR, information falls outside the regulation only when identification is no longer reasonably likely, and data that falls short of that bar remains personal data. HIPAA sets a de-identification standard that can be met through one of two routes: Safe Harbor, which removes a defined list of identifiers, or Expert Determination, in which a qualified expert assesses the remaining risk. Even Safe Harbor isn't purely mechanical: alongside its identifier list, it requires that the holder have no actual knowledge that what remains could identify someone.
Many data anonymization techniques can contribute to that outcome. Suppression removes values, and redaction is a form of it. Generalization coarsens values, turning a birth date into a birth year. Perturbation adds noise to numbers, tokenization swaps values for reference codes, and synthetic replacement substitutes realistic stand-ins.
One distinction runs through all of them. When replacements are consistent and someone holds a key or mapping that could reverse them, the data is pseudonymized, not anonymized. Pseudonymization (replacing identifiers with consistent substitutes that can be linked back) protects identities in day-to-day use, but GDPR treats pseudonymized data as personal data for anyone who can link it back.
Why redacted data isn't automatically anonymized
Redaction removes the identifiers you detected, but anonymization depends on everything left behind. A file can have every name blacked out and still point straight at one person. Four failure modes account for most of the gap.
- Indirect identifiers and context survive. A quasi-identifier is a value that isn't identifying by itself but narrows the field when combined with others. A clinical note that names no one can still identify its subject through a job title, a rare diagnosis, an admission date, and a small town together, because few people share all four.
- Detection misses. Redaction is only as complete as the detection behind it. Pattern-matching rules catch well-formed phone numbers and emails, but they miss names in unusual formats, nicknames, and identifiers embedded in forms or scanned pages. Named entity recognition, which uses a model to locate and classify spans of text such as names, places, and dates from context, closes much of that gap. The HHS guidance on de-identification addresses free-text fields directly, because identifiers live in narrative text, not only in structured fields.
- Cosmetic redaction. A black rectangle drawn over a PDF can hide a value visually while the underlying text stays in the file. Anyone who copies the text or opens the file in another tool can recover it. True redaction removes the content itself, not just its appearance.
- Consistent placeholders keep records linkable. Replacing a patient with PATIENT_17 everywhere they appear preserves useful structure across documents. It also means every record about that person can be linked together, so the data behaves like pseudonymized data rather than anonymized data.
The practical implication is that you verify anonymization by assessing the risk of re-identification, meaning the chance that someone can match records back to real people, not by counting redactions.
Redaction vs. anonymization side by side
Redaction answers "is this value hidden?", while anonymization answers "can anyone be identified?" The two questions overlap, but a yes to the first doesn't settle the second.
| Redaction | Anonymization (de-identification) | |
|---|---|---|
| What it is | A technique applied to specific values. | An outcome the data either meets or doesn't. |
| What it acts on | Specific values that were detected. | The dataset as a whole, including everything left in it. |
| What stays behind | Context, quasi-identifiers, and anything detection missed. | Only information that can't reasonably identify anyone. |
| Reversibility | Depends on implementation; cosmetic redaction and keyed placeholders can be reversed. | Irreversible by definition; reversible data is pseudonymized. |
| Data utility | Often low: gaps and tokens break the text's structure. | Varies with technique; realistic replacement can preserve structure. |
| How you verify it | Check that targeted values are hidden. | Assess re-identification risk against what an attacker could link. |
| Typical uses | Records requests, legal discovery, releasing single documents. | Analytics, data sharing, model training, licensing data. |
The utility cost is easy to underestimate. Blanked or placeholder-filled data loses the structure that readers and systems rely on: who said what to whom, the referential integrity that connects records, and what a field looked like before it was touched. A support thread where every name is [NAME] no longer shows whether the customer or the agent made a promise. A dataset of redacted transcripts can't support analysis that depends on tracking one person across several conversations.
Realistic, consistent replacement takes a different route. Each person maps to one plausible stand-in everywhere they appear, so identifiability drops while the relationships and the natural shape of the text survive. For model training, the difference is direct: placeholder-heavy text ends up teaching a model to produce placeholders, a central problem in PII removal for LLM training.
None of this makes redaction the weaker choice everywhere. When the output is a document a person will read, visible gaps are honest: the reader knows something was withheld, while a realistic stand-in could mislead them about what the original said. In a court filing or a records release, that transparency is a feature. The comparison turns on whether the output will be read once or used as data.
When to redact and when to de-identify
Redact when the output is a document for a human audience and the goal is hiding specific facts; de-identify when the data itself is the asset you need to use. The deciding question is what happens to the output next.
Redaction fits when:
- You're responding to a public-records or legal discovery request and must withhold specific facts.
- You're releasing a single report or filing where readers expect visible gaps.
- You're sharing a document externally and the missing details don't affect its purpose.
De-identification fits when:
- You're running analytics that depend on patterns across many records.
- You're sharing datasets with partners or vendors, or training and evaluating models.
- You're licensing company data, where the value lies in relationships the data still carries.
Many real projects mix the two at the level of entity type. Account numbers and government IDs might be removed outright, because nothing downstream needs them. Names, organizations, and dates might be replaced with realistic stand-ins so the text stays readable and the relationships stay intact. Whichever mix you choose, the work follows a step-by-step anonymization process: discover the sensitive data first, apply transformations consistently, and verify the result against re-identification risk.
The Tonic Advantage: choose the treatment per entity type. In Tonic Textual, the choice between redaction and replacement is made per entity type: each detected type can be redacted, synthesized with a realistic replacement, or left as is. Synthesized values are consistent, so a given original value always receives the same stand-in. That consistency holds across files, so a value isn't replaced one way in an email and another way in the document attached to it, and the relationships in the data survive de-identification instead of breaking into disconnected fragments.
Tonic.ai built and publishes PrivacyBench, an open benchmark that scores both PII detection and how consistently replacements hold across a full workspace export of email, Slack messages, and documents. Its datasets and scoring code are public, so teams can test their own de-identification pipeline against the same data.