BlogUpdated

Pseudonymizing PDF contracts: the complete guide for legal teams and DPOs

Pseudonymizing PDF contracts: the complete guide for legal teams and DPOs

Pseudonymizing PDF contracts complies with the GDPR under three conditions: use a controlled technique, keep the mapping table in a strictly separate environment, and document the measures taken. That is what lets you submit an employment contract, an NDA, a shareholders' agreement or a supplier contract to an AI such as ChatGPT or Claude, or to an outside provider, without exposing the parties' names, addresses, bank details or ID numbers.

For legal departments, lawyers and DPOs, pseudonymizing contracts has become the first line of defense. It protects the people named in the contract, professional secrecy and clients' strategic information, while still letting the AI analyze the structure and the clauses.

This guide covers what the law says, what to mask in a contract, a step-by-step method for native and scanned PDFs, how to choose a technique, a secure AI contract review workflow, the clauses to negotiate and the evidence to keep.

The golden rule: the AI never receives the original contract. It receives a version where each party has a stable alias, and the table that maps back to the real names stays with you.

Key takeaways

PointDetails
A pseudonymized contract is still personal dataThe GDPR applies as long as re-identification is possible by reasonable means.
Masking names is not enoughAmounts, dates, addresses, industry and specific clauses often reveal the parties.
PDFs hide dataMetadata, annotations, electronic signatures, stamps and hidden fields need separate handling.
Consistency drives analysis qualityThe same party must keep the same alias across the whole contract and the whole file.
The contract with the AI vendor matters as much as the techniqueNo training, a data processing agreement, audit rights, what happens to derived data.

Table of contents

When should you pseudonymize a contract?

SituationWhy pseudonymizePriority
Analysis or review by generative AIAny contract sent to ChatGPT, Claude, Copilot or Mistral leaves your perimeterHigh
Data room and due diligencePotential buyers do not need to know the identities of employees, subcontractors or customersHigh
Sharing with a providerAn auditor, expert, translator or arbitrator needs the structure and the clauses, rarely the identitiesMedium
Client deliverables at a firmProtect clients' trade secrets and intellectual property when a deliverable goes through AIMedium
Legal benchmarkingCompare clauses across entities in a group without cross-matching counterparty dataMedium
Internal template or precedent libraryBuild a searchable library for the legal team without exposing the partiesMedium

For lawyers, pseudonymizing before sending to an AI is also a matter of professional secrecy, beyond the GDPR. Any sharing of client information with an unauthorized third party is a potential breach. See Lawyers: using ChatGPT and Claude without breaching professional secrecy.

What the law says about pseudonymizing contracts

The texts

Article 4(5) of the GDPR defines pseudonymization: processing that prevents data from being attributed to a person without additional information, provided that information is kept separately and protected by technical and organizational measures. Recital 26 states that identifiability is assessed against all the means reasonably likely to be used, taking into account cost, time and available technology. Pseudonymization is also part of data protection by design (article 25) and one of the appropriate security measures (article 32).

A contract in which names have been replaced by codes is therefore still personal data as long as the mapping table exists. Pseudonymization reduces the risk; it does not take the processing out of the GDPR. Legal basis, informing individuals, retention periods and individual rights all still apply. The EDPB guidelines and CNIL recommendations set out these requirements in detail.

The EDPB guidelines

In January 2025, the European Data Protection Board published guidelines on pseudonymization. They introduce the concept of a pseudonymization domain: protection is only effective if the recipient cannot rebuild the real identity in its own context. They also state that pseudonymization can serve as a supplementary measure for transfers outside the European Union, provided access to the mapping table is strictly limited.

Recent case law

On September 4, 2025, the Court of Justice of the European Union ruled (EDPS v SRB, C-413/23 P) that whether data counts as personal depends on the holder's actual ability to re-identify people. But the controller must still tell individuals who receives their data, even when the recipients only get pseudonymized data.

On February 13, 2026, France's highest administrative court, the Conseil d'État (No. 498628), reviewed a penalty imposed by the CNIL, France's data protection authority, over health databases. It confirmed that pseudonymized data is not anonymous data unless identification is impossible in practice. In that case, codes combined with age, condition and consultation dates made it possible to rebuild individual patient histories. Read the decision on Légifrance (in French).

What counts is not the technique used, but the real risk of re-identification. A contract where the names have been replaced but an address, a file number and an exact amount remain can still be fully identifiable.

Pseudonymization or anonymization for a contract?

CriterionPseudonymizationAnonymization
ReversibleYes, with the mapping tableNo
GDPR appliesYesNo, if the re-identification risk is negligible
Individual rightsMaintainedNot applicable
Typical legal useAI, providers, data rooms, archivingPublishing decisions, research, test data sets

For a contract, pseudonymization is almost always the right choice: you need to get back to the real parties after the analysis. Anonymization is for publications and one-way sharing. For the details: Pseudonymization vs. anonymization: what the GDPR says.

What to mask in a contract

A legal professional reviews legal documents

ElementExampleRecommended treatment
Parties (individuals)First name, last name, date of birthStable alias: PARTY_A, EMPLOYEE_1
Parties (companies)Company name, registration number, registered addressStable alias: COMPANY_1, REG_NO_1
Representatives and signatories"Mr. John Smith, Chief Executive Officer"Stable alias: REPRESENTATIVE_1
Contact detailsAddresses, phone numbers, email addressesAlias or removal
IdentifiersSocial security number, IBAN, contract number, file referencesTokenization
Amounts and datesPrices, severance, signing datesCase by case: keep if the analysis needs them, generalize if the combination identifies
Very specific clausesA unique place of performance, a description of an identifiable assetGeneralize or mask depending on the use

Indirect context is the most underestimated. A supplier contract with an exact amount, a date and an industry can be enough to identify the parties by cross-checking business registries, the financial press or LinkedIn, without a single name.

Pseudonymizing a PDF contract step by step

Start by preparing the corpus: list the contracts, sort them by type (employment, supplier, NDA, services) and by sensitivity, and note which categories of data they contain. Next comes text extraction: direct for a native PDF, page-by-page optical character recognition for a scanned one. OCR quality directly determines detection quality.

Detection combines three engines: named entity recognition (names, organizations, places), rules for structured identifiers (social security numbers, IBANs, company registration numbers, contract numbers) and consistency checks. No single one is enough. Then choose the alias policy: deterministic when you need consistency across documents (the same party keeps the same alias across the whole file), random when you want to prevent any cross-matching.

Replacement preserves the contract's structure and internal cross-references so the clauses stay readable. You then check a representative sample, at least 10% of the corpus at the start, for leftover data, alias consistency and clause integrity. The mapping table is exported to an encrypted environment separate from the corpus, and the operation is logged: date, operator, tool and settings.

Pro tip: Always test your method on 3 to 5 representative contracts before running a batch. A name buried in an unusual phrasing ("the Chief Executive Officer, Mr. John Smith") or inside a table can slip through at scale.

The pre-release checklist

PDFs contain data that text detection does not see. Metadata (author, company, title, revision history) needs a dedicated cleaning tool, and annotations and comments, often forgotten, contain names and references. Electronic signatures are a separate question: the certificate embedded in the PDF holds the signer's name in clear text, and you need to decide explicitly whether to keep it or remove it.

A text engine also does not handle images, stamps and scanned handwritten signatures. And hidden form fields, invisible on screen, can still be read by extraction.

To go further: PDF metadata: the forgotten leak.

After pseudonymizing, inspect the file with a metadata viewer. The check takes two minutes and prevents the most avoidable incidents.

Which technique should you use for your contracts?

TechniqueReversibleConsistency across documentsRecommended use
TokenizationYes, via the tableYesParty names, company names, references
Symmetric encryptionYes, with a separate keyYesIBANs, ID numbers, archives
Keyed hashing (HMAC)NoYesMatching records without needing to re-identify
Plain hashing, even saltedNoYes if the salt is fixedNot recommended for predictable data (names, numbers)
Random identifierYes, via the tableNoExports where no cross-matching must be possible

Plain hashing is vulnerable to dictionary attacks on predictable data such as common names, social security numbers or postal codes. ENISA, the EU cybersecurity agency, recommends choosing the technique based on the trade-off between protection and utility.

Pro tip: With deterministic aliases on a large corpus, check that the same alias has not been assigned to two different entities. A uniqueness check on the mapping table is essential before release.

AI contract review: the secure workflow

Everything starts with a map of sensitive fields: identities, amounts, bank details, penalty clauses, any health data. Detection is automated, with a consistent alias from start to finish: if "John Smith" becomes "PERSON_01", he must stay PERSON_01 everywhere, or the AI loses track of the contractual relationships. In ChatGPT or Claude, the Safe-Doc Chrome extension applies this workflow with no copy and paste.

Pseudonymization sits upstream, before the text leaves your perimeter: on the workstation, or through a gateway that intercepts the request before the model is called. The AI receives the pseudonymized version and reasons about structure and clauses, not identities. The real data is then put back using the table, in a separate environment, with a log of who asked for what and when.

Finally, measure quality: compare analyses run on archived contracts in clear text and pseudonymized, then test re-identification.

Do not run a pilot on live contracts. Calibrate your rules first on a batch of archived contracts with no commercial stakes.

Never ask an outside AI to pseudonymize a contract itself. That means sending it the original in clear text before any protection.

Too much and too little are both problems: over-masking breaks the AI's reasoning, under-masking leaves a re-identification risk. The right approach is to measure the quality gap on a small pilot, then adjust the rules.

Clauses to negotiate

With an AI vendor

A legal professional reviews a data protection agreement

The most important clause is the ban on training: it covers the documents, but also prompts, generated responses and all derived data. The data processing agreement, compliant with article 28 of the GDPR, clearly separates transmitted data, usage logs and derived data. The clauses are covered in detail in our guide to contracts with AI vendors.

Also negotiate a technical audit right covering processing logs, storage architecture and certifications, not just a self-declaration. The vendor must not be able to change the data use terms unilaterally during the contract. Exit is planned: termination, portability, deletion and proof of deletion.

Tie the audit right to a financial consequence for non-compliance. A clause with no penalty often stays a dead letter.

With a provider that processes your contracts

Article 28(3) of the GDPR requires a written contract that sets out, among other things, the subject matter, duration, nature and purpose of the processing, the types of data and categories of people, processing on documented instructions, staff confidentiality, security measures, conditions for sub-processing, assistance with individual rights, what happens to the data at the end of the contract, and making available the information needed for audits. A contract without complete annexes is unusable in practice.

When the provider receives pseudonymized contracts, add a ban on re-identification, whether direct or by cross-matching (combining databases, inference, third-party data), and a precise description of the technical measures rather than a vague reference to "appropriate measures". Plan a periodic review of the re-identification risk, because technical capabilities change, and set out the consequences of a breach: prompt notification, termination, penalties.

Sample pseudonymization clause:

"The provider undertakes to pseudonymize all personal data contained in the documents provided, before any processing or disclosure to a third party, using a method compliant with article 4(5) of the GDPR. The mapping table is kept separately, under the exclusive control of the controller, and may only be used with the controller's prior written authorization."

Sample re-identification ban:

"The recipient shall not attempt to re-identify the data subjects, directly or by cross-matching with any other data source, and undertakes to inform the controller without delay of any accidental re-identification."

For strategic information that is not personal data (prices, know-how, projects), the GDPR is not enough: put a separate confidentiality agreement in place. Have your clauses reviewed by counsel before signing.

Technical and organizational measures

The mapping table is the most sensitive element: if it is compromised, all the protection is gone.

The pseudonymized corpus is stored separately, with its own access controls, and encrypted at rest and in transit, with keys held in a dedicated secrets manager. Every access to the table is logged (identity, date, reason), and its retention period matches that of the original contracts, followed by secure destruction. The central rule: no user should be able to access both the pseudonymized document and its table.

Hands connecting a network cable to a security appliance

On the organizational side, a written policy states who can access what, and in which context. Training is short and built on real cases from contract work. A pseudonymization lead within the legal team, separate from the DPO, handles day-to-day follow-up. Access is revoked immediately whenever someone leaves or changes role, and techniques, clauses and re-identification risk are reviewed every year.

Testing how robust your pseudonymization is

IndicatorWhat it measuresWhat to do
Data detectedShare of personal data correctly maskedSet a threshold with the DPO, revise the rules below it
Data missedData that went through in clear textImmediate audit above the threshold
Residual riskPossibility of recognizing a party from contextBlock sending if the risk is high
Restore timeTime needed to get back to the original documentDocument it in the impact assessment

Three tests are essential. The re-identification test tries, on a sample, to find the parties without the mapping table, by cross-checking public sources. The inference test checks whether combinations of fields allow an identity or sensitive information to be deduced. A periodic review, at least once a year, accounts for the fact that robustness declines over time as new sources become available.

Rolling out in 90 days

PeriodActions
Weeks 1 to 2: mappingIdentify contract flows that go through AI tools or providers; classify the data they contain (personal data, trade secrets, health data); name the owners: DPO, CISO, lead lawyer
Weeks 3 to 6: pilotRoll out pseudonymization for one department or one contract type; run a first re-identification test; write a simplified impact assessment
Weeks 7 to 12: rolloutExtend based on the pilot results; turn on logging and access controls for the table; train users and publish the usage policy

Treat pseudonymization as a joint project between the DPO and IT. The DPO signs off on the purpose and the impact assessment; IT chooses the architecture and the access controls.

How to choose a contract pseudonymization tool

CriterionWhat to check
Detection coverageNational identifiers (social security numbers, company registration numbers, IBANs), in addition to names, addresses and dates
Scanned PDFsBuilt-in OCR or not, and quality on degraded documents
ReversibilityCan the mapping table be exported? Who holds the key? Does the vendor have access to it?
Processing modelStorage at the vendor, or in-memory processing with no retention: for sensitive contracts, prefer the latter
AuditabilityA timestamped report after each run
IntegrationsAPI, PDF and Word formats, document management tools
LocationProcessing within the European Union

Ask the vendor a few direct questions too. Who holds the keys to the mapping table, and where are they stored? Are documents retained, even temporarily? Do you have ISO 27001 certification or a SOC 2 report, and does your data processing agreement comply with article 28 of the GDPR? And what are your commitments in case of a breach, in notification time and liability?

Pro tip: Ask for a demo on your own contract types, not the vendor's examples. The real detection rate on your documents can differ significantly from the sales figures.

The evidence to keep for regulators

On the documentation side, keep the record of processing activities, with each flow to an AI or a provider and the pseudonymization applied, and the impact assessment for high-risk processing (large volume, sensitive data, vendor outside the EU). Also keep the signed data processing agreements, annexes included, and any additional confidentiality agreements.

On the technical side, keep the access logs for the mapping table and a report for each run (date, volume, types of data detected, technique, operator). Add the results of the re-identification tests, and a technical annex listing the methods used, their version and the date they were assessed.

Keep an incident log too, even for minor incidents: undocumented breaches are always an aggravating factor during an inspection.

The most common mistakes

The most widespread mistake is believing that removing names is enough, when amounts, dates and addresses identify the parties. People also forget the PDF's metadata, annotations and electronic signatures, and use inconsistent aliases from one page to the next, which makes the AI's analysis unusable.

Other mistakes are organizational: storing the mapping table with the documents, or giving the same users access to both, and drafting contracts as if the data were anonymous when it is only pseudonymized. Teams also accept an AI tool's terms of service without checking how data is reused. And they let Shadow AI take hold because the official process is seen as too slow.

Safe-doc for pseudonymizing your contracts

Safe-doc

A pseudonymized contract is only useful if the AI can still read it. That is what Safe-doc specializes in: consistent aliases from start to finish within a document and across contracts, more than 90 types of data detected (parties, addresses, IBANs, ID numbers), and legal terms left in clear text when they do not point to anyone.

Contracts can be processed one at a time in the interface, or in batches through the API for a data room or an audit. PDFs, Word files and spreadsheets are not kept after processing, and the mapping table stays under your control. See the pages for legal departments and law firms.

Frequently asked questions

Can you send a contract to ChatGPT or Claude?

Yes, provided you pseudonymize it before sending, use a tool covered by a suitable contract (no training, deletion, data location) and keep the mapping table on your side. For lawyers, professional secrecy calls for the same care.

Is a pseudonymized contract still subject to the GDPR?

Yes. As long as re-identification is possible by reasonable means, the data remains personal. France's Conseil d'État confirmed this on February 13, 2026: only data whose identification is impossible in practice counts as anonymous.

What should you mask in a PDF contract?

The parties, representatives and signatories, contact details, identifiers (company registration numbers, IBANs, contract numbers), and also the file's metadata, annotations, electronic signatures and stamps. Amounts and dates should be assessed case by case.

What is the difference between deterministic and random aliases?

A deterministic alias always gives the same pseudonym to the same party, which keeps a file consistent. A random alias prevents any cross-matching between documents.

Which clauses should you require from an AI vendor?

No training on your documents, prompts or generated responses; a data processing agreement compliant with article 28; an audit right; stable terms; deletion and proof of deletion at the end of the contract.

What is a re-identification ban clause?

It is the recipient's commitment not to try to recover people's identities, directly or by combining the data with other sources.

How often should you review your pseudonymization?

At least once a year, and whenever you change tools, providers or document types: re-identification techniques keep evolving.

Further reading

Sources

This article is general information and does not replace advice from a qualified lawyer. Consult a legal professional about your situation before acting on this content.