Datatypes › Portugal › Finances and banking

Portuguese tax identification number (NIF)

Número de identificação fiscal (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, Cloudflare DLP, Datadog Sensitive Data Scanner, DataPrep, Microsoft Purview Data Loss Prevention, python-stdnum, Snowflake sensitive data classification, validator.js

Regular expression

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

Python re syntax.

Test a value

Examples

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

Translations

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

Sources

Use this record