
Before handing a contract or a client file to ChatGPT or Claude, many professionals replace names with "Client A" or "Company X" and believe they have anonymized the document. Most of the time, they have pseudonymized it: they know exactly who "Client A" is, and they expect to see the real names again in the answer.
The difference is more than vocabulary. Under the GDPR, the EU data protection regulation that also applies to US companies handling EU residents' data, it decides whether the law still applies to your data, which obligations you keep, and which method to use before sending a document to ChatGPT, Claude, Gemini or Copilot.
This guide covers the legal and practical difference, how to choose, and a step-by-step method to anonymize a PDF or Word document without the usual mistakes.
The decision rule fits in one sentence: if you need to get back to the original identity, pseudonymize with a protected key; if you don't, anonymize, with no way back.
Key takeaways
| Point | Details |
|---|---|
| Pseudonymization is reversible | A mapping table lets you find the people again, so the GDPR still applies. |
| Anonymization is irreversible | If re-identification is truly impossible, the data falls outside the GDPR. |
| For AI, pseudonymization is often more useful | It lets you put the real data back into the answer. |
| A black box is not redaction | If the text can still be selected underneath, nothing is protected. |
| Words matter | A DPO will challenge any tool that talks about "anonymization" while offering a restore button. |
Table of contents
- What the GDPR says
- Why the distinction matters for AI
- The question to ask any tool that promises to "anonymize"
- Methods for masking information
- Anonymizing a document: a six-step checklist
- Step by step: a PDF and a Word file
- Validate and document
- Which approach should you choose?
- Safe-doc: the right word for each use
- Frequently asked questions
- Further reading
- Sources
- Recommended reading
What the GDPR says
Article 4(5) of the GDPR defines pseudonymization as processing that prevents data from being attributed to a person without the use of additional information, provided that this information is kept separately and protected by technical and organizational measures. On the Safe-Doc side, nothing is kept after processing: see the zero data retention (ZDR) page.
The GDPR does not define anonymization, but its Recital 26 states that it does not apply to anonymous information, meaning information that no longer allows a person to be identified by any means reasonably likely to be used.
| Pseudonymization | Anonymization | |
|---|---|---|
| Getting back to the original data | Possible, with the mapping table | Impossible |
| GDPR applies | Yes | No, if re-identification is truly impossible |
| Obligations | Legal basis, notice, individual rights, security, retention | None, once anonymization is achieved |
| Typical use | Internal work, AI with restoration, data rooms, audits | Statistics, publication, one-way sharing |
The three tests of anonymization
For data to count as anonymous, the opinion of the Article 29 Working Party (the group of EU data protection authorities), endorsed by France's regulator, the CNIL, requires three risks to be ruled out. The first is singling out: it must no longer be possible to isolate one person in the dataset. The second is linkability: it must no longer be possible to connect records about the same person, including across files. The third is inference: it must no longer be possible to deduce information about someone from what remains.
If any of these risks remains, the data is at best pseudonymized. France's highest administrative court, the Conseil d'État, confirmed this on February 13, 2026: pseudonymized data is not anonymous unless identification is impossible in practice.
A DPO or a privacy lawyer will immediately push back on any pitch that says "anonymization" while selling a "restore" button. The data is not anonymous in the strict sense, and the processing remains processing of personal data.
For the full framework, see the CNIL and EDPB recommendations on pseudonymization.
Why the distinction matters for AI
The most common workflow today has four stages. You first protect the document by replacing names, precise amounts and identifiers. You then send the protected version to the AI tool, which returns a summary, a translation or an analysis. The last stage is to put the original values back into the result, so the final memo cites the real names.
That last stage requires a mapping table: aliases that stay consistent from one occurrence to the next, and an encrypted file or table that lets you get back to the real values. By definition, that is pseudonymization.
Both approaches are legitimate, each for its own use. Pseudonymization fits contracts, due diligence, HR files and internal memos, in other words any time you need the real names back in the AI's answer. Anonymization fits market watch, communication drafts, training examples and one-way external sharing.
In both cases, masking reduces your exposure to the model and to the vendor's policies. On its own, it does not remove every GDPR obligation, nor the risk of someone being recognized from context.
The question to ask any tool that promises to "anonymize"
When a tool promises to "anonymize" your documents, one question tells you what it really does: can it restore the original data? If it can, it necessarily keeps a mapping table, or a history that serves the same purpose. The data is therefore not anonymous in the legal sense, and you remain responsible for processing pseudonymized personal data.
For AI work, that is often exactly what you want. The level of risk then depends on two things: the quality of the masking, and the security of the table that lets you reverse it. A poorly protected table wipes out most of the benefit.
Ask where the mapping table is stored and who can access it. If it stays with you, the vendor and the AI only ever see aliases.
Methods for masking information
There are five main ways to mask information in a document, and they do not protect against the same risks.
True redaction destroys the data under the mask. It is the only method that protects a PDF you publish, provided you use a real redaction function rather than a graphic overlay.
Metadata removal deals with what you don't see on screen: author, revision history, comments, GPS coordinates in an image.
Pseudonymization replaces each identifier with a consistent alias and keeps the key separately. It is the only reversible method, the one you need when the document has to come back with the real names.
Automation becomes necessary as soon as you handle more than a few documents: batches of PDFs, data rooms, audit files. Manual deletion works for one or two short documents, but things get missed as volume grows.
| Method | Reversible | Main risk addressed |
|---|---|---|
| Manual deletion | No | Human error on small volumes |
| True redaction | No | Recovery by copying the text |
| Metadata removal | No | Leaks through file properties |
| Pseudonymization | Yes, via the table | Losing internal use of the data |
| Automated processing | Depends on settings | Volume and inconsistencies |
The black box trap
Drawing a black rectangle over a PDF gives the illusion of redaction. In reality, the text usually remains selectable under the mask, and a simple copy and paste brings it back. The original metadata (author, company, history) stays in the file too. And on a scanned document, the text layer created by optical character recognition keeps the raw content, invisible on screen but easy to extract. For day-to-day precautions, see ChatGPT, Claude and confidential documents.
Pro tip: Never mistake a black box drawn over a PDF for real redaction. If the text can still be selected underneath, the anonymization has failed.
Anonymizing a document: a six-step checklist
Always start by making a working copy, and keep the original intact in a separate archive. On that copy, delete or replace the visible identifiers: names, email addresses, phone numbers and client references. Then think about what you can't see: clear tracked changes and version history, which often keep the earlier text.
Next comes the processing itself: permanent redaction, or keyed pseudonymization if you will need to restore the data later. On a scanned document, check the text layer, which may contain what the image no longer shows. Finally, keep a record of what was masked, the fingerprint of the final file and the re-identification test you ran.
Pro tip: Search the final file for the person's name. If a single result comes up, the anonymization is not finished.
Step by step: a PDF and a Word file
The two formats hide information in different places, so the method changes slightly from one to the other.
For a Word file, use Find and Replace to track down names and references systematically, rather than relying on proofreading. Then accept or reject every tracked change, and run "Inspect Document" to remove properties, comments and hidden text. Save the result as a separate copy without overwriting the original.
For a PDF, the first question is whether it is a text PDF or a scan that will need character recognition. Use a permanent redaction function, never an overlay, then flatten or re-export the file without a residual text layer if your tool allows it. Finish by removing the metadata: author, software, dates.
Before sending the file, three quick checks catch most oversights: try to select the text in the masked areas, search for the person's name, and open the file in a plain-text reader to spot anything left behind.
For contracts specifically (electronic signatures, annotations, hidden fields), see how to pseudonymize PDF contracts.
Validate and document
Anonymization doesn't end with the processing. Before, identify the purpose of the disclosure, the legal basis and the recipients, and archive the original in a separate location.
During, a targeted check of the risky areas (headers, footers, appendices) prevents the most common misses. A simple re-identification test completes that check: search for names, copy and paste the content, read it as plain text. Ideally, someone other than the person who processed the file does the review.
After, keep a report of what was processed, the fingerprint of the final file, a time-stamped log and proof that the original was archived. That file is what lets you demonstrate your approach if a regulator asks.
If you pseudonymize, store the mapping table in an encrypted vault, separate from the document, with restricted and logged access.
France's Court of Cassation applies this same continuum when it publishes its decisions as open data: it masks names, addresses and identifying numbers, using pseudonymization engines that keep the traceability the courts need.
Which approach should you choose?
| Situation | Choice |
|---|---|
| AI review of a contract, with names put back | Pseudonymization |
| Data room, audit, due diligence | Pseudonymization |
| HR file handled by a service provider | Pseudonymization |
| Publication, permanent external release | Anonymization (redaction and metadata removal) |
| Statistics, studies, training examples | Anonymization |
| Unsure | Pseudonymization, and document the choice |
Safe-doc: the right word for each use

Safe-doc does one thing: document pseudonymization. That is why we are careful with words. When a mapping table lets you restore the real names in the AI's answer, we call it pseudonymization; when nothing is meant to come back, we call it anonymization.
Using it stays simple: you drop in a PDF, a Word file, a spreadsheet or plain text, review what will be masked, then send it to the AI of your choice. Safe-doc does not keep the document, and the mapping table stays with you. See the pseudonymization and anonymization page.
Frequently asked questions
What is the difference between pseudonymization and anonymization?
Pseudonymization replaces identifiers with aliases and keeps a separate table that lets you get back to the original data, so the GDPR applies. Anonymization makes any re-identification impossible, so the data falls outside the GDPR.
Is pseudonymized data subject to the GDPR?
Yes, as long as re-identification is possible, in particular for whoever holds the mapping table.
Which one should I use before ChatGPT or Claude?
Pseudonymization if you want the real names back in the answer; anonymization if you don't need them.
Is a black box enough to redact a PDF?
No. If the text can still be selected, or if the text layer remains, the data is still accessible.
Should I remove metadata?
Yes, every time: author, history and comments can reveal information regardless of the visible content.
When should I automate?
As soon as you handle more than a few documents, or whenever you need to restore the data afterward.
Further reading
- Pseudonymization: the CNIL and EDPB recommendations, a guide for DPOs
- ChatGPT, Claude and confidential documents: how to use them without exposing your data
- Transfers outside the EU and pseudonymization: what the law says in 2026
Sources
- CNIL: anonymization of personal data (in French)
- Article 29 Working Party: Opinion 05/2014 on anonymization techniques (WP216)
- Conseil d'État, February 13, 2026, No. 498628 (Légifrance, in French)
- AHJUCAF: digitization and anonymization of judgments at the Court of Cassation (in French)