Skip to contentRedact PII for your data. Get a quote

Coverage

ID and tax number formats, country by country

OpenAnonymizer recognises national ID and tax numbers by their official format and checks the checksum where the format has one. A number with the right label and shape is still masked when its checksum fails, so a typo doesn't let it through.

111 ID and tax formats in 70 countries; 69 of the formats have a checksum.

What it masks

Each kind is confirmed in its own way before it is replaced. Every example is the library's real output, in Fast mode.

  • ID, tax and health numbers

    The official label, and the checksum if it has one.

    In
    NHS number 943 476 5919
    Out
    NHS number UK_NHS1
    All 111 ID and tax formats, by country
  • Passports, licences, permits and plates

    The document's label and the number's shape.

    In
    Passport number: X4821937
    Out
    Passport number: PASSPORT1
  • Phone numbers

    Checked against the country's numbering plan.

    In
    Call (202) 555-0143 ext. 22
    Out
    Call PHONE1
  • Emails

    The address format, spelled-out forms included.

    In
    Mail maria dot lopez at example dot com
    Out
    Mail EMAIL1
  • Cards and IBANs

    The card or IBAN checksum.

    In
    Send it to DE89 3704 0044 0532 0130 00
    Out
    Send it to IBAN1
  • Postal addresses

    Street, number, postcode and town.

    In
    Adresse: Hauptstraße 12, 10115 Berlin
    Out
    Adresse: ADDRESS1
  • Secrets and API keys

    A provider's key format, or a labelled secret.

    In
    api_key = "q8Zr2LmT9vXw4KpN7sYb3HcF"
    Out
    api_key = "SECRET1"
  • IP addresses

    When tied to a person. Server IPs are kept.

    In
    Customer IP: 81.2.69.160
    Out
    Customer IP: IP_ADDRESS1
  • Device IDs and location

    IMEI checksum, MAC format, a person's location.

    In
    My IMEI is 867521043819264
    Out
    My IMEI is IMEI1
  • Dates of birth

    Only a date the text calls a birth date.

    In
    geb. 14.09.1968
    Out
    geb. DATE_OF_BIRTH1
  • Usernames and profile links

    A username label, a platform @handle or link.

    In
    Find me on instagram.com/maria.lopez.88
    Out
    Find me on PROFILE_URL1
  • Company and VAT numbers

    The scheme's checksum and its label.

    In
    Company VAT: FR40303265045
    Out
    Company VAT: EU_VAT1

The same placeholder twice

Within one call, the same value always gets the same placeholder. The mapping comes back to you and is never stored, so the output is pseudonymised, not anonymous.

In
Write to maria.lopez@example.com, cc maria.lopez@example.com
Out
Write to EMAIL1, cc EMAIL1

How a match is decided: evidence, flags and what is kept

All 111 ID and tax formats, by country

Every national ID, social security, health and personal tax number format, by region. Open a region, or filter.

ChecksumChecksum · 69 formats
The format's check digits are verified, so most mistyped or made-up numbers fail.
LabelOfficial label · 42 formats
The library does not verify a check digit for these formats, even where one exists. The number is masked when its official label is in the text, such as Steuernummer or UTR.

111 of 111 formats shown

Europe

34 countries · 60 formats

Austria

AT · 2 formats

Belgium

BE · 3 formats

Bulgaria

BG · 2 formats
  • ЕГН

    personal number; also a person's VAT number

    Checksum
  • ЛНЧ

    foreigner personal number

    Checksum

Croatia

HR · 1 format
  • OIB

    personal identification number

    Checksum

Czechia

CZ · 1 format
  • Rodné číslo

    birth number; a person's DIČ is CZ + this number

    Checksum

Denmark

DK · 1 format

Estonia

EE · 1 format

Finland

FI · 2 formats

France

FR · 2 formats

Germany

DE · 3 formats

Greece

GR · 2 formats
  • AMKA

    social security number

    Checksum
  • ΑΦΜ

    tax number

    Checksum

Hungary

HU · 4 formats

Iceland

IS · 1 format

Ireland

IE · 1 format

Italy

IT · 1 format

Latvia

LV · 1 format

Liechtenstein

LI · 1 format

Lithuania

LT · 1 format

Montenegro

ME · 1 format
  • PIB

    tax number

    Checksum

Netherlands

NL · 3 formats

Norway

NO · 1 format

Poland

PL · 3 formats

Portugal

PT · 2 formats

Romania

RO · 1 format
  • CNP

    personal numeric code

    Checksum

Russia

RU · 2 formats
  • INN

    taxpayer number

    Checksum
  • SNILS

    insurance account number

    Checksum

Serbia

RS · 2 formats
  • Serbia and other former Yugoslav republics

    JMBG

    unique master citizen number

    Checksum
  • PIB

    tax number

    Checksum

Slovakia

SK · 2 formats

Slovenia

SI · 1 format
  • EMŠO

    unique master citizen number

    Checksum

Spain

ES · 3 formats
  • DNI / NIF

    national ID; a citizen's tax ID

    Checksum
  • NIE

    foreigner ID; a foreign resident's NIF

    Checksum
  • NSS

    social security number

    Checksum

Sweden

SE · 1 format

Switzerland

CH · 1 format

Türkiye

TR · 2 formats

Ukraine

UA · 1 format

United Kingdom

GB · 4 formats

The Americas

17 countries · 28 formats

Argentina

AR · 2 formats

Brazil

BR · 1 format
  • CPF

    individual taxpayer ID

    Checksum

Canada

CA · 2 formats
  • BC PHN

    British Columbia health number

    Checksum
  • SIN

    social insurance number

    Checksum

Chile

CL · 1 format

Colombia

CO · 2 formats

Costa Rica

CR · 2 formats

Cuba

CU · 1 format

Dominican Republic

DO · 1 format
  • Cédula

    national ID; a person's RNC

    Checksum

Ecuador

EC · 2 formats

El Salvador

SV · 1 format

Guatemala

GT · 1 format

Mexico

MX · 2 formats
  • CURP

    population registry code

    Checksum
  • RFC

    taxpayer registry code

    Checksum

Paraguay

PY · 1 format
  • RUC

    taxpayer number

    Checksum

Peru

PE · 2 formats

United States

US · 5 formats
  • ATIN

    adoption taxpayer ID

    Label
  • ITIN

    individual taxpayer ID

    Label
  • PTIN

    preparer tax ID

    Label
  • SSN

    social security number

    Label
  • TIN

    taxpayer ID

    Label

Uruguay

UY · 1 format
  • RUT

    tax number

    Label

Venezuela

VE · 1 format

Asia and the Pacific

12 countries · 15 formats

Australia

AU · 1 format
  • TFN

    tax file number

    Label

China

CN · 1 format

India

IN · 4 formats

Indonesia

ID · 1 format
  • NIK

    population ID number

    Label

Japan

JP · 1 format

Malaysia

MY · 1 format

New Zealand

NZ · 1 format

Pakistan

PK · 1 format
  • CNIC

    national identity card number

    Label

South Korea

KR · 1 format
  • RRN

    resident registration number

    Checksum

Taiwan

TW · 1 format

Thailand

TH · 1 format

Vietnam

VN · 1 format
  • MST

    tax number

    Checksum

Middle East and Africa

7 countries · 8 formats

Algeria

DZ · 1 format

Ghana

GH · 1 format

Israel

IL · 1 format

Mauritius

MU · 1 format

Mozambique

MZ · 1 format
  • NUIT

    tax number

    Checksum

Saudi Arabia

SA · 1 format

South Africa

ZA · 2 formats

About this list

  • Each row is a number a natural person holds: a national ID, a social security or health number, or an individual tax number.
  • Checksum means the format's check digits are verified. Formats that are checked only for layout, length or an embedded date count as label: India PAN, Indonesia NIK, Malaysia NRIC, Pakistan CNIC, Liechtenstein PEID, US ATIN and UK NINO.
  • Company registers and company VAT IDs are masked but not listed, for example Italy's partita IVA, France's SIREN, the Czech and Slovak IČO, Poland's REGON and Germany's USt-IdNr. A VAT number is listed where individuals and sole traders hold it as their tax number, as in Hungary and Slovakia.
  • Some IDs are masked but not listed as a row of their own: Vietnam's CCCD / CMND, Mexico's INE, the UAE Emirates ID, Brazil's PIS / PASEP and Ukraine's УНЗР.
  • The JMBG is one row for the former Yugoslav republics. Slovenia's EMŠO has its own row.

Built from the OpenAnonymizer library source, version 0.3.0.

Languages and scripts

34 languages. Labels are matched in the local language, and in the local script where people write it.

10scripts for labels

Latin · Cyrillic · Greek · Arabic · Hebrew · Devanagari · Chinese · Japanese · Korean · Thai

  • In
    Дата народження: 14.09.1968
    Out
    Дата народження: DATE_OF_BIRTH1
  • In
    住所:東京都新宿区西新宿2-8-1
    Out
    住所:ADDRESS1
  • Phone numbers with any country code, checked against that country's numbering plan.
  • Addresses in Latin, Chinese, Japanese and Thai scripts.
  • The 34 languages: Arabic, Bulgarian, Catalan, Chinese, Croatian, Czech, Danish, Dutch, English, Estonian, Finnish, French, German, Greek, Hebrew, Hindi, Hungarian, Icelandic, Italian, Japanese, Korean, Latvian, Lithuanian, Norwegian, Polish, Portuguese, Romanian, Slovak, Slovenian, Spanish, Swedish, Thai, Turkish and Ukrainian.

Text, audio, video, images

The library masks text. Every other medium, from call recordings to scans, we clean for you with the same checks.

Source-available

Text, in your code

Runs in your code, on your machine, with no GPU and no API calls: Python, Node.js, Rust, Go and C with the full engine and both modes, and WebAssembly with Fast in the browser. The median time per item in each mode is on the eval page.

See how it scores on PIIMark

Dataset cleaning

Any medium, cleaned for you

Send us the dataset. You get it back in the same format, with a report of what we removed.

  • Text and chat logs
  • Documents and PDFs
  • Voice, calls and video calls
  • Images and scans
  • Video
How dataset cleaning works