You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Presidio contains predefined recognizers for PII entities.
This page describes the different entities Presidio can detect and the method Presidio employs to detect those.
A Crypto wallet number. Currently only Bitcoin address is supported
Pattern match, context and checksum
DATE_TIME
Absolute or relative dates or periods or times smaller than a day.
Pattern match and context
EMAIL_ADDRESS
An email address identifies an email box to which email messages are delivered
Pattern match, context and RFC-822 validation
IBAN_CODE
The International Bank Account Number (IBAN) is an internationally agreed system of identifying bank accounts across national borders to facilitate the communication and processing of cross border transactions with a reduced risk of transcription errors.
Pattern match, context and checksum
IP_ADDRESS
An Internet Protocol (IP) address (either IPv4 or IPv6).
Pattern match and context
MAC_ADDRESS
A Media Access Control (MAC) address is a unique identifier assigned to network interfaces for communications on the physical network segment.
Pattern match and context
NRP
A person’s Nationality, religious or political group.
Custom logic and context
LOCATION
Name of politically or geographically defined location (cities, provinces, countries, international regions, bodies of water, mountains
Custom logic and context
PERSON
A full person name, which can include first names, middle names or initials, and last names.
Custom logic and context
PHONE_NUMBER
A telephone number. The PhoneRecognizer can be extended programmatically for country-specific detection by configuring supported_regions and supported_entity (e.g. Philippines: PhoneRecognizer(supported_regions=["PH"], supported_entity="PH_MOBILE_NUMBER"), Turkey: PhoneRecognizer(supported_regions=["TR"], supported_entity="TR_PHONE_NUMBER"))
Custom logic, pattern match and context
MEDICAL_LICENSE
Common medical license numbers.
Pattern match, context and checksum
URL
A URL (Uniform Resource Locator), unique identifier used to locate a resource on the Internet
Pattern match, context and top level url validation
USA
Entity Type
Description
Detection Method
US_BANK_NUMBER
A US bank account number is between 8 to 17 digits.
A Unique Entity Number (UEN) is a standard identification number for entities registered in Singapore.
Pattern match, context, and checksum
Australia
FieldType
Description
Detection Method
AU_ABN
The Australian Business Number (ABN) is a unique 11 digit identifier issued to all entities registered in the Australian Business Register (ABR).
Pattern match, context, and checksum
AU_ACN
An Australian Company Number is a unique nine-digit number issued by the Australian Securities and Investments Commission to every company registered under the Commonwealth Corporations Act 2001 as an identifier.
Pattern match, context, and checksum
AU_TFN
The tax file number (TFN) is a unique identifier issued by the Australian Taxation Office to each taxpaying entity
Pattern match, context, and checksum
AU_MEDICARE
Medicare number is a unique identifier issued by Australian Government that enables the cardholder to receive a rebates of medical expenses under Australia's Medicare system
Pattern match, context, and checksum
India
FieldType
Description
Detection Method
IN_PAN
The Indian Permanent Account Number (PAN) is a unique 12 character alphanumeric identifier issued to all business and individual entities registered as Tax Payers.
Pattern match, context
IN_AADHAAR
Indian government issued unique 12 digit individual identity number
Pattern match, context, and checksum
IN_VEHICLE_REGISTRATION
Indian government issued transport (govt, personal, diplomatic, defence) vehicle registration number
Pattern match, context, and checksum
IN_VOTER
Indian Election Commission issued 10 digit alpha numeric voter id for all indian citizens (age 18 or above)
Pattern match, context
IN_PASSPORT
Indian Passport Number
Pattern match, Context
IN_GSTIN
The Indian Goods and Services Tax Identification Number (GSTIN) is a 15-character identifier with state code (01-37), PAN, registration number, 'Z', and checksum.
Pattern match, context, and validation
Finland
FieldType
Description
Detection Method
FI_PERSONAL_IDENTITY_CODE
The Finnish Personal Identity Code (Henkilötunnus) is a unique 11 character individual identity number.
Pattern match, context and custom logic.
Korea
FieldType
Description
Detection Method
KR_DRIVER_LICENSE
The Korean driver license number is a 12-digit number.
Pattern match, context and custom logic.
KR_FRN
The Korean Foreigner Registration Number (FRN) is a 13-digit number.
Pattern match, context and custom logic.
KR_PASSPORT
The Korean Passport Number
Pattern match, context.
KR_BRN
The Korean Business Registration Number (BRN) is a 10-digit number assigned to business entities for taxation purposes.
Pattern match, context and custom logic.
KR_RRN
The Korean Resident Registration Number (RRN) is a 13-digit number issued to all Korean residents.
Pattern match, context and custom logic.
Nigeria
FieldType
Description
Detection Method
NG_NIN
The Nigerian National Identification Number (NIN) is a unique 11-digit number issued by the National Identity Management Commission (NIMC).
Pattern match, context, and checksum
NG_VEHICLE_REGISTRATION
Nigerian vehicle registration plate number in the current format (2011+): 3 letters (LGA code), 3 digits (serial), 2 letters (year/batch).
Pattern match and context
Philippines
FieldType
Description
Detection Method
PH_TIN
Philippines Taxpayer Identification Number (TIN). 9 or 12-digit number issued by the Bureau of Internal Revenue (BIR).
Pattern match, context, and checksum
Canada
FieldType
Description
Detection Method
CA_SIN
A Canadian Social Insurance Number (SIN) is a 9-digit number issued by Employment and Social Development Canada (ESDC) to administer government programs. The last digit is a Luhn check digit. SINs starting with 0 or 8 are reserved and not issued.
Pattern match, context, and checksum
Sweden
FieldType
Description
Detection Method
SE_ORGANISATIONSNUMMER
The Swedish Organisations ID Number is a unique 10-digit number issued to all Swedish organisations.
Pattern match, context, and checksum.
SE_PERSONNUMMER
The Swedish Personal ID Number is a unique 10/12-digit number issued to all Swedish residents. The recognizer also supports Samordningsnummer (coordination numbers) issued to individuals who are not (yet) registered residents but need a Swedish identifier (e.g., temporary workers, students).
Pattern match, context, and checksum.
South Africa
FieldType
Description
Detection Method
ZA_ID_NUMBER
The South African identity number is a 13-digit identifier in the YYMMDDSSSSCAZ format, where the trailing digit is validated with the Luhn algorithm.
Pattern match, context, and checksum.
Thai
FieldType
Description
Detection Method
TH_TNIN
The Thai National ID Number (TNIN) is a unique 13-digit number issued to all Thai residents.
Pattern match, context and custom logic.
Turkey
FieldType
Description
Detection Method
TR_NATIONAL_ID
The Turkish National Identification Number (TCKN) is a unique 11-digit number issued to all Turkish citizens.
Pattern match, context and checksum.
TR_LICENSE_PLATE
Turkish vehicle license plate (plaka): 2-digit province code (01–81), 1–3 letters (A–Z, excluding Q, W, X), and 2–4 digits. Standard civilian format only. Legal basis: KTK Madde 23.
Pattern match, context and province code validation.
Philippines
FieldType
Description
Detection Method
PH_UMID
Philippine Unified Multi-Purpose ID (UMID) / Common Reference Number (CRN). 12-digit format (e.g., 0111-1234567-8). Acts as a master ID connecting SSS, GSIS, PhilHealth, and Pag-IBIG. Disabled by default.
Pattern match and context
Germany
Entity Type
Description
Detection Method
DE_TAX_ID
German Steueridentifikationsnummer (Steuer-IdNr.): unique 11-digit personal tax identification number issued by the Bundeszentralamt für Steuern. Legal basis: §§ 139a–139e AO.
Pattern match, context and checksum (ISO 7064 Mod 11, 10)
DE_TAX_NUMBER
German Steuernummer: tax number assigned by the local Finanzamt, in ELSTER unified 13-digit format or state-specific slash-separated formats. Legal basis: § 139a AO.
Pattern match and context
DE_PASSPORT
German Reisepassnummer: 9-character alphanumeric document number using ICAO Doc 9303 character set. Legal basis: Passgesetz (PassG) § 4.
Pattern match and context
DE_ID_CARD
German Personalausweisnummer: 9-character alphanumeric document number (nPA since Nov 2010) or legacy T+8-digit format. Legal basis: Personalausweisgesetz (PAuswG).
Pattern match and context
DE_SOCIAL_SECURITY
German Rentenversicherungsnummer (RVNR): 12-character identifier encoding birth date, surname initial, serial and check digit. Legal basis: § 147 SGB VI.
Pattern match, context and checksum (DRV algorithm)
DE_HEALTH_INSURANCE
German Krankenversicherungsnummer (KVNR): 10-character identifier (1 letter + 9 digits) printed on the elektronische Gesundheitskarte (eGK). Legal basis: § 290 SGB V. Special category: health data (DSGVO Art. 9).
Pattern match, context and checksum (GKV-Spitzenverband algorithm)
DE_KFZ
German KFZ-Kennzeichen (vehicle registration plate): district code (1–3 letters), identifier (1–2 letters), and 1–4 digits, optionally with E (electric) or H (historic) suffix. Legal basis: Fahrzeug-Zulassungsverordnung (FZV) § 8.
Pattern match and context
DE_HANDELSREGISTER
German Handelsregisternummer: commercial register number with HRA (sole traders / partnerships) or HRB (corporations) prefix followed by 1–6 digits. HRA entries directly identify natural persons (sole traders). Legal basis: §§ 9, 14 HGB, HRV.
Pattern match and context
DE_PLZ
German Postleitzahl (postal code): 5-digit code in the range 01001–99998. Constitutes personal data in combination with other address fields (DSGVO Art. 4 Nr. 1). High false-positive risk – only reliable with address-context words present; base confidence is 0.05. Legal basis: DSGVO Art. 4 Nr. 1.
Pattern match and context (context required for actionable results)
Medical / Clinical
Detected using the MedicalNERRecognizer (requires the transformers extra). Uses the blaze999/Medical-NER model by default.
Entity Type
Description
Detection Method
MEDICAL_DISEASE_DISORDER
A disease or disorder (e.g. diabetes, hypertension).
NER model (HuggingFace transformers)
MEDICAL_MEDICATION
A medication or drug name (e.g. metformin, aspirin).
NER model (HuggingFace transformers)
MEDICAL_THERAPEUTIC_PROCEDURE
A therapeutic or diagnostic procedure (e.g. surgery, MRI).
NER model (HuggingFace transformers)
MEDICAL_CLINICAL_EVENT
A clinical event (e.g. admission, discharge).
NER model (HuggingFace transformers)
MEDICAL_BIOLOGICAL_ATTRIBUTE
A biological attribute or measurement (e.g. blood pressure, BMI).
NER model (HuggingFace transformers)
MEDICAL_BIOLOGICAL_STRUCTURE
A biological or anatomical structure (e.g. liver, left ventricle).
NER model (HuggingFace transformers)
MEDICAL_FAMILY_HISTORY
A family medical history reference.
NER model (HuggingFace transformers)
MEDICAL_HISTORY
A patient medical history reference.
NER model (HuggingFace transformers)
Adding a custom PII entity
See this documentation for instructions on how to add a new Recognizer for a new type of PII entity.
Complementing Presidio with Azure AI Language PII
Azure AI Language PII
is a cloud-based service that provides Natural Language Processing (NLP) features for detecting PII in text.
A list of supported entities by Azure AI Language PII can be found here.