Portugal NIF Validator

Validate Portuguese Tax ID

Enter a Portuguese Tax Identification Number to verify its validity.

About this Validator

This tool validates Portuguese Tax Identification Numbers according to official requirements.

The validator checks if a given NIF follows the correct structure and verifies its check digit based on entity type.

This validation only confirms if a NIF follows the correct format. It does not verify if the number is actually registered with Portuguese Tax and Customs Authority.

What is a NIF (Número de identificação fiscal)?

NIF Structure (9 digits): First Digit Indicates Type: • 1xx/2xx: Individuals • 3xx: Reserved • 45x: Non-resident individuals • 5xx: Corporations/Public entities • 6xx: State entities • 70x/71x/72x: Inheritances/Non-resident corps/Funds • 90x/91x: Irregular companies • 98x: Non-resident corporations • 99x: Civil partnerships

Validation Features: • Length verification • Entity type check • Check digit validation • Format compliance • Pattern verification

Used for: • Tax identification • Business registration • VAT purposes • Legal transactions • Official documents • Financial services

Important Notes: • No expiration date • Centrally managed • Mandatory allocation • Entity specific • Single identifier

If you need to generate a NIF for testing purposes, here is a Portugal NIF Generator