Skip to contentRedact PII for your data. Get a quote

Redact the PII. Keep the text, audio, images and video useful.

The most accurate text PII redactor of the 15 we tested on IDs, cards, contacts and secrets, and the fastest of the 11 we timed. Source-available, runs on your CPU, 34 languages.

pip install openanonymizer

We also clean datasets for you: send us text, documents, calls, images or video, and get them back usable. Get your dataset cleaned

PIIMark v1: 114K items in 34 languages.See PIIMark

After redaction: Chat

User: Hi, I need to change the delivery address on order #48213-77. My SSN is <US_SSN_1> and the new address is <ADDRESS_1>. Text me on <PHONE_1> if needed.

Thinking trace: User wants to change the shipping address for order #48213-77. Check identity: SSN <US_SSN_1> is on the account. Update address to <ADDRESS_1>. Send SMS confirmation to <PHONE_1>. The $249.90 refund is unaffected.

Assistant: Done. Order #48213-77 will now ship to <ADDRESS_1>, and I've texted a confirmation to <PHONE_1>.

After redaction: Document

Loan application

Date of application: March 12

Applicant SSN: <US_SSN_1> · Phone: <PHONE_1>

Card on file: <CARD_1> · Email: <EMAIL_1>

Address: <ADDRESS_1>

Amount requested: $12,000 over 48 months

How it works

Hard cases it catches

Pick a case to compare the text before and after.

Partly disclosed values

Still masked when part of the value is already hidden. "Ending in 4821" is caught in English, Spanish, French, German and other languages.

Before

Charged to **** **** **** 6038. SSN on file: XXX-XX-5186. Refund to the card ending in 4821.

After: OpenAnonymizer

Charged to CARD_PARTIAL1. SSN on file: US_SSN_PARTIAL1. Refund to the card ending in CARD_PARTIAL2.

Why it's hard

Card and SSN patterns expect the whole number. With most digits starred out, or only four after “ending in”, nothing matches, yet the digits left, with the rest of the record, can still point to one person.

Context awareness

Same value, same placeholder, in every source.

Send related chats, logs and records in one call, and each value keeps one placeholder in all of them. It is pseudonymisation: the mapping back to the real values is returned to you, and the library never stores it.

Slack, #support

Agent () says the parcel for #48213-77 went to by mistake. Call back on .

Intercom, support bot, later that day

User
Who reported the parcel that went to the wrong address?
Assistant
did, from . They want it re-sent to and a call on .

HubSpot, CRM export

{"handle": "", "email": "", "phone": "", "address": "", "order": "#48213-77"}

What it detects

IDs, contact details, card and bank numbers, secrets and the other identifiers below become placeholders. Look-alikes that identify no one stay as written.

  • ID, tax and health numbers

    • SSN becomesUS_SSN
    • NHS number becomesUK_NHS
    • UTR becomesTAX_ID
    • Aadhaar becomesIN_AADHAAR
    • CPF becomesBR_CPF
    • Steuer-ID becomesDE_STEUER_ID
    • DNI becomesES_DNI
    • PESEL becomesPL_PESEL

    How we confirm it: Checksum where one exists, or the official label

  • Phone numbers

    • (202) 555-0143 becomesPHONE
    • +44 20 7946 0958 becomesPHONE
    • with extensions

    How we confirm it: Checked against every country code

  • Emails

    • hello@openanonymizer.com becomesEMAIL

    How we confirm it: Standard and spelled-out forms

  • Card and bank numbers

    • Card becomesCARD
    • IBAN becomesIBAN

    How we confirm it: Checksum, or the label

  • Postal addresses

    • 123 Main St, Springfield, IL 62701 becomesADDRESS

    How we confirm it: Street, city and postcode formats, in many languages

  • Secrets and API keys

    • password: Kp9vX2mQ7wLz becomesSECRET
    • API keys, tokens, private keys

    How we confirm it: The provider's key format, a token checksum, or a secret label

  • Passports, licences, permits and plates

    • Passport becomesPASSPORT
    • Driver's licence becomesDRIVER_LICENSE
    • Residence permit becomesRESIDENCE_PERMIT
    • Licence plate becomesLICENSE_PLATE

    How we confirm it: The label, in each language

  • Company and VAT numbers

    • EU VAT becomesEU_VAT
    • EIN becomesCOMPANY_ID
    • UK company number becomesCOMPANY_ID

    How we confirm it: Checksum where one exists, or the label

  • IP, device IDs and location

    • IP address becomesIP_ADDRESS
    • IMEI becomesIMEI
    • MAC address becomesMAC_ADDRESS
    • Coordinates becomesGEO_COORDINATES

    How we confirm it: Only when it belongs to a person: a server's IP stays

  • Dates of birth

    • born 14 March 1987 becomesDATE_OF_BIRTH

    How we confirm it: Only when the text says it is one; other dates stay

  • Usernames and profile links

    • Handle becomesUSERNAME
    • Profile link becomesPROFILE_URL

    How we confirm it: Handles and links that point to someone's account

111ID and tax formats

From 70 countries; 69 of the formats have a checksum.

See all 111 formats

34languages

English · Spanish · French · German · Italian · Portuguese · Dutch · Polish · Greek · Japanese · Chinese · Thai · and more

Phone numbers for every country code, and addresses in Latin, Chinese, Japanese and Thai scripts.

How a match is decided: masked, flagged or kept

Keep personal data out of your chatbot.

Redact every message before it reaches the model. Placeholders keep the conversation readable, and the mapping comes back to you, so your reply can show the real values again.

  • One mapping for the whole chat: the same value gets the same placeholder in every message.
  • A value split across two messages is still found.
  • Runs in your process, on your CPU. Nothing leaves your systems.
Chatbots and LLMs
Your user types

Hi, I need to change my delivery address. My email is mara.klein@example.com and my phone is +44 7700 900123.

The model sees

Hi, I need to change my delivery address. My email is EMAIL1 and my phone is PHONE1.

Licence

Free in production if you and your affiliates have under $5M revenue and under $5M funding. Above either, you license it from us.

Talk to us about a licence

Modes

Two modes, one trade-off

Finding more personal data also means masking more harmless text by mistake. Python, Node.js, Rust, Go and C ship both modes (WebAssembly runs Fast): pick the balance per pipeline, and switch any time with one setting.

  • Fast

    Default

    Rules and checksums only, no model. Finds people's names by rules, where a label or title marks them.

    The default for chatbots and agents.

    Model
    No model
    Median time
    0.10 ms per text
  • Full

    Adds a small local model that checks the numbers, codes and street names the rules left unmasked, and finds people's names and organisations in running text.

    For datasets, exports, logs and prompts about people. More masks, and model latency.

    Model
    Small local model, downloaded once
    Median time
    5.8 ms per text

Engine licence: free in production under $5M revenue and under $5M funding

Both modes are measured on PIIMark v1, on the same 80,575 test items as 14 other tools. Times are medians on one server CPU, the same machine and harness for every tool.

See the results

How accurate is it?

Every tool runs on the same 80,575 test items of PIIMark v1: synthetic personal data and harmless look-alikes in 34 languages. Recall counts structured personal data; names, quasi-identifiers and special categories are scored separately on the eval page. The OpenAnonymizer authors built this eval, so it follows our labelling policy. It is published so anyone can check it.

Structured PII found (recall)

Higher is better

  • OpenAnonymizer · Fast90.6%
  • Presidio MIT65.5%
  • OpenAI Privacy Filter Apache-2.075.4%
  • GLiNER2 (privacy, multilingual) Apache-2.059.4%

False positives

Harmless items masked by mistake. Lower is better

  • OpenAnonymizer · Fast8.6%
  • Presidio MIT89.8%
  • OpenAI Privacy Filter Apache-2.056.6%
  • GLiNER2 (privacy, multilingual) Apache-2.069.4%

Median time per text

Lower is better. Same server and harness for every tool

  • OpenAnonymizer · Fast0.10 ms
  • Presidio MIT9.2 ms
  • OpenAI Privacy Filter Apache-2.0773 ms
  • GLiNER2 (privacy, multilingual) Apache-2.0103 ms

Against well-known open-source tools, on the same 80,575 test items. The PIIMark page has all 14 other tools we tested.

Full finds more (91.8%) at more false positives (13.0%). Compare the modes

Recall vs false positives

OpenAnonymizer (OA)Other toolsIdeal: ≥90% structured recall, ≤10% false positives
  • OpenAnonymizer · Fast: structured recall 90.6%, false positives 8.6%, recall on all categories 58.0%, median time per item 0.10 ms
  • OpenAnonymizer · Full: structured recall 91.8%, false positives 13.0%, recall on all categories 71.5%, median time per item 5.8 ms
  • privaite: structured recall 77.8%, false positives 67.2%, recall on all categories 59.4%, median time per item 18.1 ms
  • OpenAI Privacy Filter: structured recall 75.4%, false positives 56.6%, recall on all categories 55.3%, median time per item 773 ms
  • GLiNER-PII (knowledgator): structured recall 69.5%, false positives 91.9%, recall on all categories 73.9%, median time per item not yet measured
  • Presidio: structured recall 65.5%, false positives 89.8%, recall on all categories 61.6%, median time per item 9.2 ms
  • GLiNER2 (privacy, multilingual): structured recall 59.4%, false positives 69.4%, recall on all categories 65.2%, median time per item 103 ms
  • piiranha: structured recall 54.5%, false positives 41.3%, recall on all categories 37.4%, median time per item 63.2 ms
  • LLM Guard: structured recall 53.0%, false positives 80.1%, recall on all categories 52.2%, median time per item not yet measured
  • GLiNER multi-PII: structured recall 53.0%, false positives 47.1%, recall on all categories 59.9%, median time per item 75.4 ms
  • philter: structured recall 51.7%, false positives 79.3%, recall on all categories 54.7%, median time per item 33.0 ms
  • Phileas: structured recall 51.5%, false positives 68.6%, recall on all categories 30.7%, median time per item 0.40 ms
  • NVIDIA GLiNER-PII: structured recall 51.0%, false positives 55.5%, recall on all categories 55.8%, median time per item 298 ms
  • ai4privacy (OpenPII model): structured recall 36.5%, false positives 74.2%, recall on all categories 18.5%, median time per item 42.5 ms
  • DataFog: structured recall 30.9%, false positives 26.5%, recall on all categories 14.3%, median time per item not yet measured
  • scrubadub: structured recall 30.4%, false positives 37.7%, recall on all categories 40.5%, median time per item not yet measured
  • In the ideal box: OA Fast.

Other tools miss PII, or mask everything

The few tools with low false positives find under a third of the PII (DataFog: 30.9%). The tools that find more also mask most of your harmless text (Presidio: 89.8% false positives). Sort it yourself.

Every tool on the same 80,575 test items of PIIMark v1
ToolStructured PII found (higher is better)Harmless text masked (lower is better)Median time (lower is better)
OpenAnonymizer · FastBUSL-1.1
90.6%
8.6%
0.10 ms
privaiteBSD-3-Clause
77.8%
67.2%
18.1 ms
OpenAI Privacy FilterApache-2.0
75.4%
56.6%
773 ms
GLiNER-PII (knowledgator)Apache-2.0 (as listed on the GLiNER-PII base model card)
69.5%
91.9%
not yet timed
PresidioMIT
65.5%
89.8%
9.2 ms
GLiNER2 (privacy, multilingual)Apache-2.0
59.4%
69.4%
103 ms
piiranhaCC BY-NC-ND 4.0
54.5%
41.3%
63.2 ms
LLM GuardMIT
53.0%
80.1%
not yet timed
GLiNER multi-PIIApache-2.0
53.0%
47.1%
75.4 ms
philter
51.7%
79.3%
33.0 ms
PhileasApache-2.0
51.5%
68.6%
0.40 ms
NVIDIA GLiNER-PIINVIDIA Open Model License
51.0%
55.5%
298 ms
ai4privacy (OpenPII model)MIT
36.5%
74.2%
42.5 ms
DataFogMIT
30.9%
26.5%
not yet timed
scrubadubApache-2.0
30.4%
37.7%
not yet timed

Look-alikes we leave alone

  • order #48213-77
  • a $249.90 refund
  • your server's IP address
  • a delivery date
  • db-primary:5432
  • AWS's documentation example key

See PIIMark

The library · Licence

Free until you’re big

Under $5M revenue and under $5M funding
Free in production
Above either threshold
Commercial licence
Non-production use
Free for everyone

Business Source License 1.1. Source-available, not open source. Each version becomes Apache-2.0 four years after its first public release.

Dataset cleaning

We clean your data and keep the relationships in it.

The same email or phone number gets the same placeholder in every file and table, so the records still link up. Send us text, documents, calls, images or video, and get it back in the format you sent.

  • Text and chat logs
  • Documents and PDFs
  • Voice, calls and video calls
  • Images and scans
  • Video

Your data goes only where you choose: we can run the cleaning in your environment, such as your VPC.

Tell us what you need.

Dataset cleaning for AI training or to sell to AI labs, or a commercial licence.

What happens next

  • We reply by email with questions about your data.
  • You share a sample.
  • You get a quote for the project, based on that sample.

Licence

TierLicence
Under $5M revenue and under $5M fundingFree
Above eitherCommercial licence

Business Source License 1.1. Free in production only below both thresholds; non-production use is free for everyone. Each version becomes Apache-2.0 four years after its first public release. Read the licence

What is PII redaction?

Finding personal data that can identify someone, such as ID numbers, phone numbers, emails, card numbers and addresses. Each one is replaced with a placeholder before the text is stored, shared or sent to an AI model.

Is OpenAnonymizer free?

For production use, yes, if your company (with its affiliates) has both under $5M in gross revenue over the last 12 months and under $5M in total external funding since it was founded. Above either threshold you need a commercial licence.

Non-production use, such as copying, modifying and testing it, is free for everyone.

The code is source-available under the Business Source License 1.1 (BUSL-1.1), not open source. Each version becomes available under Apache-2.0 four years after its first public release.

Does my data leave my machine?

With the library, never. It runs locally on a normal CPU, with no API calls and no GPU, so your text stays on your machine.

Where does my data go with the cleaning service?

Only where you choose. We can run the cleaning in your environment, such as your VPC, so the data never leaves it. It comes to our environment only if you choose to have us run it there.

Is the output anonymous?

Not on its own. Consistent placeholders make it pseudonymised data: the map from each placeholder back to the original value comes back to your code, and the library never stores it.

Whether a dataset you release counts as anonymous depends on the whole dataset, what it could be linked with, and the law that applies to you.

Can the same person get the same placeholder across files?

Yes, with a placeholder key. By default numbering restarts in each call: <EMAIL_1> stands for the same value everywhere in one call (or one shared mapping), not across separate runs.

Pass a placeholder key, a private secret you supply (there is no default key), and each placeholder becomes <TYPE_hex>: the first 12 lowercase hex digits (8 to 16 if you set the length) of an HMAC-SHA256 of the type and value under your key. The same value with the same key gets the same tag in every call, file and machine, and the mapping back to the values is still returned to you.

That output is pseudonymised personal data, not anonymous; under the GDPR it is still personal data. Anyone who holds the key can re-identify a value by hashing guesses, which is quick for small spaces such as national IDs, phone numbers and dates of birth. Keep the key secret and separate from the output. Use one key per purpose: outputs made with the same key can be joined, and rotating the key breaks the link.

The key option is placeholder_key in Python and Rust (on RedactorBuilder), placeholderKey in Node.js, setPlaceholderKey in WASM, PlaceholderKey in Go and --placeholder-key-file in the CLI, each with a matching length option (placeholder_length, --placeholder-length and so on). In C both go to openanonymizer_redactor_with_placeholder_key.

Which languages and countries does it support?

34 languages, and phone numbers for every country code. Address formats include Chinese, Japanese and Thai.

The languages, and the national ID and tax formats country by country, are listed on the coverage page.

How accurate is it?

On PIIMark v1 (80,575 test items in 34 languages), Fast mode finds 90.6% of structured personal data (IDs, document and company numbers, phones, emails, cards, IBANs, addresses, dates of birth, IPs, device IDs and secrets) and masks something in 8.6% of harmless items. Full finds 91.8% at 13.0%.

The 14 other tools we ran find 30.4%–77.8% and mask something in 26.5%–91.9% of harmless items. Fast finds names where they are labelled (form fields, letters, signatures, chat speakers) and leaves names in running prose; Full's model also finds people's names and organisations in running text.

The OpenAnonymizer authors built this eval, so it follows our labelling policy. It is published so anyone can check it.

Can you clean our dataset for us?

Yes, and we keep the relationships in it: the same email, account or phone number gets the same placeholder in every file and table, so the records still link up.

We clean text and chat logs, documents and PDFs, voice, calls and video calls, images and scans, and video, in your environment or ours. You get it back in the format you sent, with the agreed PII types removed and a report of what was masked, ready for your review before training or sale. Each project is quoted from a sample.

The library redacts text; audio, images and video go through the service.