To anonymize data, find every direct and indirect identifier across your tables and files, choose a technique for each based on how the data will be used, and apply those transformations consistently so the same person maps to the same replacement everywhere. Then verify that nothing identifying survived and the data is still useful, and document what was done so the result can be defended and repeated. The two hardest parts are free text, where identifiers have no fixed column, and consistency across systems.

Step 1: Run sensitive data discovery across tables and files

You can't de-identify what you haven't found, so the work starts with an inventory of every place the data touches: production databases, file shares, warehouse exports, application logs, and the attachments that ride along with tickets and emails. Within each source, separate two kinds of identifier. Direct identifiers point to a person on their own: names, email addresses, phone numbers, and account or record numbers. Quasi-identifiers look harmless individually but identify in combination. HHS de-identification guidance cites estimates that date of birth, sex, and five-digit ZIP code together are unique for over half of US residents, which is why a table with no names in it can still hold personally identifiable information.

Identifiers hide in more places than a schema diagram suggests:

  • Columns, including misnamed ones like notes2 or ref_code that carry identifiers nobody documented.
  • Free-text fields, such as comments, case notes, and ticket descriptions inside otherwise structured tables.
  • File contents, from email bodies and chat exports to PDFs, spreadsheets, and scanned forms.
  • Metadata and headers, including email headers, document author fields, file names, and revision history.

Free text needs its own pass. HHS guidance treats identifiers in free text the same as identifiers in structured fields under Safe Harbor, and in notes, emails, and chat they rarely look like a name field: they appear as nicknames, handles, and signature blocks. For databases, Tonic Fabricate runs a privacy scan that finds where sensitive data lives across tables and columns, and the scan works on its own, before or without any masking. For free text and files, Tonic Textual detects sensitive entities with proprietary named entity recognition (NER) models, then has an LLM verify each candidate to remove false positives. The result of discovery is a map: every source, every sensitive field or entity type, and where each one appears.

Step 2: Choose techniques based on how the data will be used

The downstream use and the recipient decide the technique, not the data type alone. Test environments need format-valid, realistic values with relationships intact, or the application under test breaks. Analytics can usually tolerate generalization, because aggregate patterns survive coarsened values. AI training needs realistic replacement, because a model trained on placeholder tokens learns to produce placeholder tokens. A release to a third party needs the strongest treatment, since you no longer control what the data gets linked to. NIST SP 800-188 frames this at the program level: decide on a data-sharing model first, then choose techniques to fit it.

Name the standard you're targeting as well. For US health data, that's HIPAA's Safe Harbor method or Expert Determination; HIPAA's own term is de-identification, and it differs from anonymization in what each standard requires. Under GDPR, the line runs between anonymized data, which falls outside the regulation, and pseudonymized data, which is still personal data, so reversible methods such as tokenization may leave a dataset in scope. The bar for data to count as truly anonymized is demanding, which is why data anonymization is a set of per-field decisions rather than one setting.

Each core technique fits a different case:

  • Suppression and redaction: a value has no downstream use and can be removed.
  • Generalization: analytics needs the pattern, not the precision, so birth dates become birth years.
  • Perturbation: statistical work can absorb small amounts of noise in numeric values.
  • Tokenization and pseudonymization: an authorized party must reverse the mapping later.
  • Synthetic replacement: testing and AI training need realistic values that keep the data usable.

Tonic Textual can redact or synthesize per entity type, so one pipeline can replace some categories with typed tokens and realistically synthesize others. Masking in Tonic Fabricate starts with an agent that reviews each column and proposes a masking plan for a person to review and approve.

Step 3: Transform consistently across tables, files, and refreshes

Consistency is what keeps de-identified data usable: the same real value has to map to the same replacement everywhere it appears. It operates at four levels:

  • Across tables: deterministic replacement maps a customer ID to the same masked value in every table, so foreign keys and joins still resolve and referential integrity holds.
  • Across files: one person appears as an email display name, a Slack handle, a signature block, and a spreadsheet row, and all four need the same synthetic identity.
  • Within an identity: the synthetic email address has to plausibly belong to the synthetic name, or the data stops reading like real data.
  • Across refreshes: a test case or bug reproduction written against last month's data should still hold after the next refresh.

Naive per-file redaction breaks coreference, the thread that ties every mention of an entity back to the same entity. Process each file independently and the person who opened a ticket stops being the person who closed it, an email chain loses track of who replied to whom, and a model trained on the result learns from conversations with no stable participants. On the database side, masking in Tonic Fabricate turns the approved masking plan into a reusable workflow you can re-run and adjust as the schema changes, so each refresh applies the same treatment rather than a rebuilt one.

The Tonic Advantage: consistent replacements across a whole document set. Tonic synthesizes replacements that stay consistent across files, so a sensitive value isn't replaced one way in an email and another way in the chat export or spreadsheet that mentions it. Tonic maps what a dataset holds before anything changes and keeps a record of everything it detected and replaced, so the consistency of the output can be checked rather than assumed.

Step 4: Verify that nothing identifying survived

De-identification is a claim until it's measured, so verification checks two things: that nothing identifying survived, and that the data still does its job.

Privacy checks: residual identifiers and re-identification risk

For residual identifiers, have people annotate a sample of the source data, then score your detection against it for precision and recall. Recall is the privacy number, because every missed mention is real data left behind. Tonic Textual's Request Auditor applies the same idea to production traffic: an LLM reviews detection on a configurable share of redaction requests, and low scorers go to a person for review. For re-identification risk, look for records that are unique on their quasi-identifiers and could be matched to outside data. k-anonymity gives a simple test: each record should share its quasi-identifier values with at least k−1 others.

Benchmarks make the same comparison at scale. Against human-annotated data in Tonic.ai's PrivacyBench benchmark, Tonic Textual's detection caught 94.3% of PII, more than 7 points more than any non-Textual engine tested, while keeping precision above 90%. Tonic.ai built the benchmark, and its datasets and scoring code are public, so you can score your own pipeline against the same data before trusting it with yours.

Utility checks: tests, joins, and model metrics

A dataset that passes every privacy check but breaks the application has failed too. Run the test suite against the de-identified data, confirm that joins return the expected row counts, and compare model metrics on de-identified training data against the original baseline. For health data, Expert Determination formalizes the privacy side: a qualified expert assesses the output and determines that re-identification risk is very small. Tonic.ai provides de-identification that meets HIPAA requirements, with certification available through an independent Expert Determination partner.

Step 5: Document the process so it can be defended and repeated

A de-identified dataset is only as defensible as its record of how it was made. That record should capture:

  • Source inventory: every system and file set in scope, with the sensitive fields and entity types found in each.
  • Decisions and rationale: the technique chosen for each field or entity type, and why it fits the data's use.
  • Target standard: Safe Harbor, Expert Determination, GDPR anonymization, or an internal policy.
  • Verification results: detection scores, re-identification risk measurements, and utility checks.
  • Reviewers: who sampled, reviewed, and signed off.
  • Versions: of the source data, the configuration, and the tools that ran.

The record does three jobs. Under Expert Determination, HHS expects the expert to document the methods and results that justify the determination, so the record is part of the standard itself. It also protects you over time: re-identification risk changes as outside data accumulates, so a dataset that was safe to share last year needs re-assessment before it's refreshed or shared again. That question is sharpest in data licensing, where what counts as de-identified when company data is sold depends on who receives it and what they can link it to. Finally, a written process is what makes the next refresh a re-run instead of a rebuild.

Tonic Fabricate produces a privacy report on every masking run, and its plain-language masking plan doubles as documentation of what was decided for each column. Tonic Textual records what was detected and replaced rather than asserting it, which gives reviewers evidence to check instead of a promise to accept.