Datatypes

Portuguese tax identification number (NIF)

ID pt_nif

DatatypePersonal data (PII)identifierDraft

This record is a draft: it has not been reviewed yet and may be incomplete or wrong. Do not rely on it for compliance decisions. Help improve it (see CONTRIBUTING.md).

Número de identificação fiscal, the 9-digit tax number of individuals and legal persons in Portugal (for legal persons also called NIPC). The first digit is not 0 and the last is a check digit. With the PT prefix it is the VAT number.

Parent datatype
EU VAT ID vatin
Categories
Finances and banking, Personally identifiable information
Countries
Portugal
Languages
Portuguese
Microsoft Purview
Portugal tax identification number, EU Tax Identification Number (TIN), EU Tax identification number
Schema.org
taxID, vatID
python-stdnum
stdnum.pt.nif
ORG-ID.guide
PT-NIPPC
Quality
100/100
Metacrafter rules
no detection rule yet
Supported by tools
AWS Glue Sensitive Data Detection, Azure AI Language PII detection, DataPrep, Microsoft Purview Data Loss Prevention, python-stdnum, Snowflake sensitive data classification

Regular expression

^(?:PT[ -]?)?[1-9]\d{2} ?\d{3} ?\d{3}$

Python re syntax.

Examples

ValueDescription
301211760Synthetic number with a valid check digit
290048842Synthetic number with a valid check digit
3012117607 invalidOne character too many

Translations

LanguageNameDescription
PortugueseNúmero de identificação fiscal (NIF)

Sources

Use this record