Document anonymization benchmark — 2026 results
A comparison of anonymization effectiveness on a synthetic corpus of documents: a text ranking and a finished-file ranking, with the full methodology and its limitations.
- Report date: 18.11.2026
- Benchmark author: Legal Geek
- Release measured: Privatizer 1.3.0b24, Legal Geek Privatizer (RC) model 1.0.0rc5
- Method prerejestracja-1, frozen on 04.11.2026
Two rankings, first place in both
The benchmark scores data detection in text and the processing of finished files separately. Both rankings use a scale of 1000 points.
-
Text
822,4/ 1000 pts
Score in points: higher is better
1st place in the text ranking
13 participants; 95% CI 816–828
-
Files
728,2/ 1000 pts
Score in points: higher is better
1st place in the file ranking
4 participants; 95% CI 715–741
Vendor benchmark (Legal Geek), 18.11.2026. Synthetic documents; a comparison of selected open source tools and configurations. This is not an independent audit, nor a test of how the add-ins work.
Above the second result in these rankings: +56.2 pts in text (766.2 pts) and +311.1 pts in files (417.1 pts).
Text anonymization ranking
13 participants • synthetic documents • points / 1000 • 95% confidence interval
| Place 1 = best | Participant | Score (pts / 1000) higher is better | 95% CI narrower interval = more certain result |
|---|---|---|---|
| 1 | privatizer-tekst a Privatizer variant | 822,4 | 816–828 |
| 2 | gliner-nvidia-pii | 766,2 | 756–776 |
| 3 | privatizer-model a Privatizer variant | 741,7 | 730–754 |
| 4–5 | gliner-knowledgator-pii | 702,3 | 688–714 |
| 4–5 | presidio-gliner | 680,1 | 669–689 |
| 6–7 | presidio-pl-ner | 640,5 | 629–651 |
| 6–7 | gliner-urchade-pii | 634,5 | 624–645 |
| 8–9 | openai-privacy-filter | 529,0 | 511–549 |
| 8–9 | presidio-spacy | 519,0 | 508–527 |
| 10 | ai4privacy | 423,7 | 416–432 |
| 11 | stanza | 295,2 | 287–302 |
| 12–13 | scrubadub | 262,0 | 256–269 |
| 12–13 | flair | 250,8 | 241–260 |
“privatizer-tekst” is the full engine and “privatizer-model” is the Privatizer model on its own; both are variants of the same product, not separate players on the market. The other participants are models, pipelines and configurations of open source tools, not necessarily companies or products. A place given as a range (for example 4–5) is a statistical tie: the confidence intervals of those participants overlap.
Ranking for anonymizing finished files
4 participants • hidden content, metadata, images and file integrity were scored as well
| Place 1 = best | Participant | Score (pts / 1000) higher is better | 95% CI narrower interval = more certain result | Notes |
|---|---|---|---|---|
| 1 | privatizer-plik a Privatizer variant | 728,2 | 715–741 | 1 error, 35 refusals, 0 unsupported |
| 2 | presidio-wrapper-plikowy | 417,1 | 398–432 | a naive wrapper built for the test; 426 unsupported formats |
| 3 | pdf-redactor | 278,2 | 268–288 | 643 unsupported formats |
| 4 | presidio-image-redactor | 149,8 | 143–157 | 714 unsupported formats; test P5 does not apply |
The file ranking does not cover every commercial anonymization product. The participants declared different ranges of supported formats. “Presidio-wrapper-plikowy” is a demonstration implementation built for this test, not a separate Presidio product.
Maximum protection: fewer documents with a detected leak
In a separate test, Maximum protection mode cut the number of text documents containing at least one leaked reference value from 699 to 46 out of the 800 documents examined. The default mode deliberately does not mask monetary amounts; the maximum mode covers amounts as well and uses different sensitivity settings.
| Measure | Text | Files | ||
|---|---|---|---|---|
| Default mode | Maximum protection | Default mode | Maximum protection | |
| Documents with ≥1 leak (out of 800) lower is better | 699 (87,4%) | 46 (5,75%) | 685 (85,6%) | 78 (9,75%) |
| Leaked values in total lower is better | 10 714 | 69 | 12 649 | 2 161 |
| Of which leaked amounts lower is better | 10 617 | 0 | 10 677 | 119 |
| Leaked values excluding amounts lower is better | 97 | 69 | 1 972 | 2 042 |
| Points without the speed test higher is better | 772,4 / 950 | 911,6 / 950 | 720,5 / 950 | 836,0 / 950 |
The results 911.6 and 836.0 are points out of the 950 available, not out of 1000: the Maximum protection variants were not measured in the speed test, so the total covers the remaining tests only. Do not compare them directly with 822.4 and 728.2 without subtracting the speed points earned in the default mode.
In files, the number of leaked values other than amounts rose from 1,972 to 2,042, even though the overall number of leaked values fell. The report points to a higher number of errors (5 instead of 1) as a possible reason, but it does not settle the cause — the maximum mode does not improve every measure.
What does Privatizer detect? Results by category
What share of the reference values Privatizer hid in default mode (higher is better) and what share stayed readable, that is, leaked (lower is better). Rounded to whole percentages.
| Category | Text | Files | ||
|---|---|---|---|---|
| Hidden higher is better | Leak lower is better | Hidden higher is better | Leak lower is better | |
| OSOBA | 100% | 0% | 97% | 3% |
| PESEL | 100% | 0% | 100% | 0% |
| RACHUNEK | 100% | 0% | 100% | 0% |
| ADRES | 100% | 0% | 92% | 8% |
| 100% | 0% | 86% | 14% | |
| TELEFON | 100% | 0% | 88% | 12% |
| DATA_UR | 100% | 0% | 98% | 2% |
| DOWOD | 100% | 0% | 98% | 2% |
| ORGANIZACJA | 99% | 1% | 91% | 9% |
| SYGNATURA | 87% | 13% | 77% | 23% |
Zero per cent leakage after rounding is not a guarantee of zero risk. Full results by category are given in the numerical annex.
We test more than name detection
-
Information leak
Do the reference values stay readable in the finished result?
-
Hidden data in files
Checking the body text, headers, tables, comments, metadata, attachments and embedded images (OCR).
-
Usefulness of the document
Does the tool over-mask harmless passages, keep the structure and produce a file that opens?
-
Hard cases
Inflected surnames, homoglyphs, Cyrillic, transliterations, long documents, hidden content and awkward file layouts.
- 1,000 core documents + 290 hard documents
- 5 core languages: PL, EN, ES, DE, FR
- 800 documents in the main test split
- 222 hard documents in the test split
- 95% CI: bootstrap with 1,000 resamples
- methodology frozen on 04.11.2026
The corpus holds 1,290 documents in total; some of them belong to the development split, so not all of them were test documents. Ukrainian appears in the hard-case layer and is not a sixth language of the main ranking. Source: main report, pp. 11–17.
This is more than a single anonymization model
The Legal Geek Privatizer (RC) model on its own scored 741.7 pts in the text ranking. The full engine, with its extra rules, merging and handling of repeated values, scored 822.4 pts. The difference is 80.7 pts in the configuration examined.
A comparison of the stand-alone model and the full pipeline in the same benchmark; it does not mean that each extra module on its own accounts for a given part of the difference. Source: main report, pp. 4–5 and 33–34.
How to read these results
The benchmark was prepared by the maker of Privatizer — Legal Geek. The methodology and the scoring were published before the test set was scored. The study uses synthetic documents and compares specific versions and configurations of open source tools and of Privatizer; it does not cover every product on the market or any cloud service. The results are not a guarantee against leaks, an independent security audit, a confirmation of GDPR compliance, or an assessment of how reliable the browser and Office add-ins are. Always check the result before you share a document.
- Pseudonymization is not the same as anonymization within the meaning of the GDPR: replacing data with reversible identifiers does not always remove its status as personal data, and indirect identification may still be possible.
- The set of reference values is limited: medical diagnoses, ICD codes and drug names were not among the values scored, and the corpus holds no photographs of faces.
- A file result can be weaker than a text result: files have hidden places, non-text content and integrity risks.
- The default mode does not mask monetary amounts, even though amounts are on the benchmark’s list of reference values.
- The browser, Office and LibreOffice integrations were not tested as separate user workflows.
- File speed: 6.43 s per page on an Apple M1 (8 GB RAM) in the environment examined, which is 4th place for speed among the 4 file participants measured.
- Hard cases still happen — hidden content, initials, transliteration, OCR — so the result has to be checked before a document is shared.
Source: main report, pp. 5–7, 11–17, 32–34, 49–52; data appendix, pp. 3–8.
Report, appendix and methodology
Comparative anonymization report and data appendix • 18.11.2026 • method prerejestracja-1
Questions
Is the benchmark independent?
No. The study was prepared by Legal Geek, the maker of Privatizer. The methodology, the weights and the corpus were frozen before the runs scored on the test split. We publish the full results and their limitations so that anyone can verify them.
Does “1st place” mean the best product on the whole market?
No. It means first place among the participants included in the two rankings of this benchmark: 13 in the text ranking and 4 in the file ranking. It did not cover every commercial tool or any cloud service.
Why does the default mode have so many documents with a leak?
The benchmark counts monetary amounts among the values that have to be masked, and Privatizer’s default mode deliberately leaves them alone. The report shows leaks of amounts and of other data separately, along with the results of Maximum protection mode.
Does “0% of national ID numbers leaked” mean a cast-iron guarantee?
No. It is a rounded result for one category, on a synthetic corpus and in one specific version of the product — not a guarantee for every document there could be.
Did the benchmark test the browser extension and the Word add-in?
Not as separate user interactions. The file ranking examined how an input file and an output file are processed, and the text ranking examined data detection in the body text.
Does pseudonymization stop a document from being personal data?
Not always. The data may still allow direct or indirect identification, especially where a map exists that turns the identifiers back into real values.
Start working with AI with more control over your data
The benchmark measures the engine. In everyday work what counts is that you reach for it where you already write and read documents.