PII entities supported by Presidio

July 29, 2026 · View on GitHub

Presidio contains predefined recognizers for PII entities. This page describes the different entities Presidio can detect and the method Presidio employs to detect those.

In addition, Presidio allows you to add custom entity recognizers. For more information, refer to the adding new recognizers documentation.

List of supported entities

Global

Entity TypeDescriptionDetection Method
CREDIT_CARDA credit card number is between 12 to 19 digits. https://en.wikipedia.org/wiki/Payment_card_numberPattern match and checksum
CRYPTOA Crypto wallet number. Currently only Bitcoin address is supportedPattern match, context and checksum
DATE_TIMEAbsolute or relative dates or periods or times smaller than a day.Pattern match and context
EMAIL_ADDRESSAn email address identifies an email box to which email messages are deliveredPattern match, context and RFC-822 validation
IBAN_CODEThe 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_ADDRESSAn Internet Protocol (IP) address (either IPv4 or IPv6).Pattern match and context
MAC_ADDRESSA Media Access Control (MAC) address is a unique identifier assigned to network interfaces for communications on the physical network segment.Pattern match and context
NRPA person’s Nationality, religious or political group.Custom logic and context
LOCATIONName of politically or geographically defined location (cities, provinces, countries, international regions, bodies of water, mountainsCustom logic and context
PERSONA full person name, which can include first names, middle names or initials, and last names.Custom logic and context
PHONE_NUMBERA 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_LICENSECommon medical license numbers.Pattern match, context and checksum
URLA URL (Uniform Resource Locator), unique identifier used to locate a resource on the InternetPattern match, context and top level url validation
UUIDA Universally Unique Identifier (UUID) in the standard 8-4-4-4-12 hyphenated hexadecimal format. Covers RFC 4122 versions 1-5 and RFC 9562 versions 6-8; the nil UUID (all zeros) is excluded as a non-identifying sentinel.Pattern match, validation of version/variant nibbles, and context

USA

Entity TypeDescriptionDetection Method
US_BANK_NUMBERA US bank account number is between 8 to 17 digits.Pattern match and context
US_DRIVER_LICENSEA US driver license according to https://ntsi.com/drivers-license-format/Pattern match and context
US_ITINUS Individual Taxpayer Identification Number (ITIN). Nine digits that start with a "9" and contain a "7" or "8" as the 4 digit.Pattern match and context
US_MBIA US Medicare Beneficiary Identifier (MBI) with 11 alphanumeric characters.Pattern match and context
US_NPIA US National Provider Identifier (NPI) is a 10-digit number issued to healthcare providers by CMS under HIPAA.Pattern match, context and checksum
US_PASSPORTA US passport number with 9 digits.Pattern match and context
US_SSNA US Social Security Number (SSN) with 9 digits.Pattern match and context

UK

Entity TypeDescriptionDetection Method
UK_DRIVING_LICENCEUK driving licence number issued by the DVLA. A 16-character alphanumeric string encoding surname, date of birth, and initials.Pattern match, context and validation
UK_NHSA UK NHS number is 10 digits.Pattern match, context and checksum
UK_NINOUK National Insurance Number is a unique identifier used in the administration of National Insurance and tax.Pattern match and context
UK_PASSPORTA UK passport number consists of 2 letters followed by 7 digits (e.g., AB1234567), used in passports issued from 2015 onwards.Pattern match and context
UK_POSTCODEA UK postcode is a 5-8 character alphanumeric code used by the Royal Mail for mail sorting.Pattern match and context
UK_VEHICLE_REGISTRATIONA UK vehicle registration number (number plate) in current (2001+), prefix (1983-2001), or suffix (1963-1983) format.Pattern match, context and validation

Spain

Entity TypeDescriptionDetection Method
ES_NIFA Spanish NIF number (Personal tax ID).Pattern match, context and checksum
ES_NIEA Spanish NIE number (Foreigners ID card).Pattern match, context and checksum
ES_PASSPORTA Spanish passport number.Pattern match and context

Italy

Entity TypeDescriptionDetection Method
IT_FISCAL_CODEAn Italian personal identification code. https://en.wikipedia.org/wiki/Italian_fiscal_codePattern match, context and checksum
IT_DRIVER_LICENSEAn Italian driver license number.Pattern match and context
IT_VAT_CODEAn Italian VAT code numberPattern match, context and checksum
IT_PASSPORTAn Italian passport number.Pattern match and context
IT_IDENTITY_CARDAn Italian identity card number. https://en.wikipedia.org/wiki/Italian_electronic_identity_cardPattern match and context

Poland

Entity TypeDescriptionDetection Method
PL_PESELPolish PESEL numberPattern match, context and checksum

Singapore

FieldTypeDescriptionDetection Method
SG_NRIC_FINA National Registration Identification CardPattern match and context
SG_UENA Unique Entity Number (UEN) is a standard identification number for entities registered in Singapore.Pattern match, context, and checksum

Australia

FieldTypeDescriptionDetection Method
AU_ABNThe 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_ACNAn 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_TFNThe tax file number (TFN) is a unique identifier issued by the Australian Taxation Office to each taxpaying entityPattern match, context, and checksum
AU_MEDICAREMedicare number is a unique identifier issued by Australian Government that enables the cardholder to receive a rebates of medical expenses under Australia's Medicare systemPattern match, context, and checksum

India

FieldTypeDescriptionDetection Method
IN_PANThe 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_AADHAARIndian government issued unique 12 digit individual identity numberPattern match, context, and checksum
IN_VEHICLE_REGISTRATIONIndian government issued transport (govt, personal, diplomatic, defence) vehicle registration numberPattern match, context, and checksum
IN_VOTERIndian Election Commission issued 10 digit alpha numeric voter id for all indian citizens (age 18 or above)Pattern match, context
IN_PASSPORTIndian Passport NumberPattern match, Context
IN_GSTINThe 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

FieldTypeDescriptionDetection Method
FI_PERSONAL_IDENTITY_CODEThe Finnish Personal Identity Code (Henkilötunnus) is a unique 11 character individual identity number.Pattern match, context and custom logic.

Korea

FieldTypeDescriptionDetection Method
KR_DRIVER_LICENSEThe Korean driver license number is a 12-digit number.Pattern match, context and custom logic.
KR_FRNThe Korean Foreigner Registration Number (FRN) is a 13-digit number.Pattern match, context and custom logic.
KR_PASSPORTThe Korean Passport NumberPattern match, context.
KR_BRNThe Korean Business Registration Number (BRN) is a 10-digit number assigned to business entities for taxation purposes.Pattern match, context and custom logic.
KR_RRNThe Korean Resident Registration Number (RRN) is a 13-digit number issued to all Korean residents.Pattern match, context and custom logic.

Nigeria

FieldTypeDescriptionDetection Method
NG_NINThe 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_REGISTRATIONNigerian 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

FieldTypeDescriptionDetection Method
PH_PASSPORTPhilippine Passport Number. Alphanumeric format, usually 1 letter followed by 7 digits and 1 letter, or 2 letters followed by 7 digits (e.g., P1234567A, EB1234567).Pattern match and context
PH_TINPhilippines Taxpayer Identification Number (TIN). 9 or 12-digit number issued by the Bureau of Internal Revenue (BIR).Pattern match, context, and checksum

Canada

FieldTypeDescriptionDetection Method
CA_SINA 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
CA_POSTAL_CODEA Canadian postal code in the standard A1A 1A1 format (letter-digit-letter, space, digit-letter-digit). The letters D, F, I, O, Q, U are never used in any letter position; W and Z are additionally excluded from the first letter position.Pattern match and context

Sweden

FieldTypeDescriptionDetection Method
SE_ORGANISATIONSNUMMERThe Swedish Organisations ID Number is a unique 10-digit number issued to all Swedish organisations.Pattern match, context, and checksum.
SE_PERSONNUMMERThe 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

FieldTypeDescriptionDetection Method
ZA_ID_NUMBERThe 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.
ZA_PASSPORTThe South African passport number is a 9-character identifier with prefix letter A, D, M, or T followed by 8 digits.Pattern match, context, and validation.
ZA_INCOME_TAX_NUMBERThe South African SARS income tax reference number is a 10-digit numeric identifier, commonly starting with 0, 1, 2, 3, or 9.Pattern match, context, and validation.
ZA_DRIVER_LICENSEThe South African eNaTIS driver's licence number is an alphanumeric identifier of 10–14 characters.Pattern match, context, and validation.
ZA_VAT_NUMBERThe South African VAT registration number is a 10-digit identifier starting with 4.Pattern match, context, and validation.
ZA_COMPANY_REGISTRATIONThe South African CIPC company registration number uses modern YYYY/NNNNNN/NN format or legacy prefixed formats such as CK.Pattern match, context, and validation.
ZA_TRAFFIC_REGISTER_NUMBERThe South African eNaTIS traffic register number is a 13-digit identifier for foreigners and organisations, disambiguated from ZA_ID_NUMBER via validation.Pattern match, context, and validation.
ZA_LICENSE_PLATEThe South African vehicle licence plate uses provincial formats such as compact suffix forms (e.g. KD93GKGP) or spaced layouts (e.g. DK 28 LF GP).Pattern match, context, and validation.
ZA_MOBILE_NUMBERThe South African mobile (cellular) number uses a 9-digit national significant number with country code +27 or domestic trunk prefix 0 (primarily 06x, 07x, and cellular 08x ranges).phonenumbers match, line-type filter, and context.
ZA_TELEPHONE_NUMBERThe South African telephone number covers geographic landlines (01x–05x) and non-mobile service lines such as toll-free (080), sharecall (086), and VoIP (087).phonenumbers match, line-type filter, and context.

Thai

FieldTypeDescriptionDetection Method
TH_TNINThe Thai National ID Number (TNIN) is a unique 13-digit number issued to all Thai residents.Pattern match, context and custom logic.

Turkey

FieldTypeDescriptionDetection Method
TR_NATIONAL_IDThe Turkish National Identification Number (TCKN) is a unique 11-digit number issued to all Turkish citizens.Pattern match, context and checksum.
TR_LICENSE_PLATETurkish 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

FieldTypeDescriptionDetection Method
PH_UMIDPhilippine 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 TypeDescriptionDetection Method
DE_TAX_IDGerman 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_NUMBERGerman 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_PASSPORTGerman Reisepassnummer: 9-character alphanumeric document number using ICAO Doc 9303 character set. Legal basis: Passgesetz (PassG) § 4.Pattern match and context
DE_ID_CARDGerman 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_SECURITYGerman 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_INSURANCEGerman 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_KFZGerman 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_HANDELSREGISTERGerman 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_PLZGerman 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 TypeDescriptionDetection Method
MEDICAL_DISEASE_DISORDERA disease or disorder (e.g. diabetes, hypertension).NER model (HuggingFace transformers)
MEDICAL_MEDICATIONA medication or drug name (e.g. metformin, aspirin).NER model (HuggingFace transformers)
MEDICAL_THERAPEUTIC_PROCEDUREA therapeutic or diagnostic procedure (e.g. surgery, MRI).NER model (HuggingFace transformers)
MEDICAL_CLINICAL_EVENTA clinical event (e.g. admission, discharge).NER model (HuggingFace transformers)
MEDICAL_BIOLOGICAL_ATTRIBUTEA biological attribute or measurement (e.g. blood pressure, BMI).NER model (HuggingFace transformers)
MEDICAL_BIOLOGICAL_STRUCTUREA biological or anatomical structure (e.g. liver, left ventricle).NER model (HuggingFace transformers)
MEDICAL_FAMILY_HISTORYA family medical history reference.NER model (HuggingFace transformers)
MEDICAL_HISTORYA 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.

To add Azure AI language into Presidio, see this sample.

Complementing Presidio with Azure Health Data Services PHI

Azure Health Data Services PHI is a cloud-based service that provides Natural Language Processing (NLP) features for detecting PHI in text.

A list of supported entities by Azure Health Data Services PHI can be found here.

To add Azure AI language into Presidio, see this sample.

Connecting to 3rd party PII detectors

See this documentation for instructions on how to implement an external PII detector for a new or existing type of PII entity.