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.
All 111 ID and tax formats, by country- In
- NHS number 943 476 5919
- Out
- NHS number
Passports, licences, permits and plates
The document's label and the number's shape.
- In
- Passport number: X4821937
- Out
- Passport number:
Phone numbers
Checked against the country's numbering plan.
- In
- Call (202) 555-0143 ext. 22
- Out
- Call
Emails
The address format, spelled-out forms included.
- In
- Mail maria dot lopez at example dot com
- Out
Cards and IBANs
The card or IBAN checksum.
- In
- Send it to DE89 3704 0044 0532 0130 00
- Out
- Send it to
Postal addresses
Street, number, postcode and town.
- In
- Adresse: Hauptstraße 12, 10115 Berlin
- Out
- Adresse:
Secrets and API keys
A provider's key format, or a labelled secret.
- In
- api_key = "q8Zr2LmT9vXw4KpN7sYb3HcF"
- Out
- api_key = ""
IP addresses
When tied to a person. Server IPs are kept.
- In
- Customer IP: 81.2.69.160
- Out
- Customer IP:
Device IDs and location
IMEI checksum, MAC format, a person's location.
- In
- My IMEI is 867521043819264
- Out
- My IMEI is
Dates of birth
Only a date the text calls a birth date.
- In
- geb. 14.09.1968
- Out
- geb.
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
Company and VAT numbers
The scheme's checksum and its label.
- In
- Company VAT: FR40303265045
- Out
- Company VAT:
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 , cc
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.
- Checksum · 69 formats
- The format's check digits are verified, so most mistyped or made-up numbers fail.
- Official 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 formatstax account number
social insurance number
Belgium
BE · 3 formatsID for non-registered residents; also their INSZ / NISS
NN; also the INSZ / NISS
Croatia
HR · 1 formatpersonal identification number
Czechia
CZ · 1 formatbirth number; a person's DIČ is CZ + this number
Denmark
DK · 1 formatpersonal ID
Estonia
EE · 1 formatpersonal ID code
Finland
FI · 2 formatspersonal identity code
tax number
France
FR · 2 formatssocial security number
tax number
Germany
DE · 3 formatsID card number
personal tax ID
tax number
Hungary
HU · 4 formatspersonal tax ID
EU VAT number
personal ID
social security number
Iceland
IS · 1 formatpersonal ID code
Ireland
IE · 1 formatpersonal public service number
Italy
IT · 1 formattax code
Latvia
LV · 1 formatpersonal code
Liechtenstein
LI · 1 formattax ID
Lithuania
LT · 1 formatpersonal code
Montenegro
ME · 1 formattax number
Netherlands
NL · 3 formatscitizen service number
student number
Norway
NO · 1 formatnational ID number
Poland
PL · 3 formatsID card number
tax number
national ID number
Portugal
PT · 2 formatscitizen card
taxpayer number
Romania
RO · 1 formatpersonal numeric code
Serbia
RS · 2 formatstax number
Slovakia
SK · 2 formatsVAT number
birth number
Slovenia
SI · 1 formatunique master citizen number
Spain
ES · 3 formatsSweden
SE · 1 formatpersonal ID number
Switzerland
CH · 1 formatsocial security number
Türkiye
TR · 2 formatsnational ID
tax number
Ukraine
UA · 1 formatindividual taxpayer number
United Kingdom
GB · 4 formatsunique taxpayer reference
The Americas
17 countries · 28 formats
Argentina
AR · 2 formatstax ID
national ID
Brazil
BR · 1 formatindividual taxpayer ID
Chile
CL · 1 formattax and national ID
Colombia
CO · 2 formatsnational ID
tax ID
Costa Rica
CR · 2 formatsnational ID
foreigner ID
Cuba
CU · 1 formatnational ID
Dominican Republic
DO · 1 formatnational ID; a person's RNC
Ecuador
EC · 2 formatsnational ID
taxpayer number
El Salvador
SV · 1 formattax ID
Guatemala
GT · 1 formattax ID
Paraguay
PY · 1 formattaxpayer number
United States
US · 5 formatsUruguay
UY · 1 formattax number
Venezuela
VE · 1 formattax ID
Asia and the Pacific
12 countries · 15 formats
Australia
AU · 1 formattax file number
China
CN · 1 formatIndia
IN · 4 formatsincome tax number
EPIC
Indonesia
ID · 1 formatpopulation ID number
Japan
JP · 1 formatindividual number
Malaysia
MY · 1 formatNew Zealand
NZ · 1 formattax number
Pakistan
PK · 1 formatnational identity card number
South Korea
KR · 1 formatresident registration number
Taiwan
TW · 1 formatThailand
TH · 1 formatVietnam
VN · 1 formattax number
Middle East and Africa
7 countries · 8 formats
Algeria
DZ · 1 formattax ID
Ghana
GH · 1 formattax ID
Israel
IL · 1 formatidentity number
Mauritius
MU · 1 formatMozambique
MZ · 1 formattax number
Saudi Arabia
SA · 1 formatAbout 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
- Дата народження:
- In
- 住所:東京都新宿区西新宿2-8-1
- Out
- 住所:
- 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 PIIMarkDataset 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