NIF Validator - Check if a Tax ID Number is valid

Use our online NIF validator to check if a Tax Identification Number is valid. Instant verification according to the Tax Agency regulations.

NIF Format

The NIF format varies according to the type of holder. For Spanish individuals, it coincides with the DNI (8 numbers + letter). For foreigners, it is based on the NIE (X/Y/Z + 7 numbers + letter). For legal entities, the CIF is used.

Validation Criteria

  • For individuals: 8 numbers + letter or X/Y/Z + 7 numbers + letter
  • The letter must correspond to the result of the official algorithm
  • Must not contain special characters or spaces

Validation Uses

  • Verify the technical validity of a NIF
  • Test tax validation systems
  • Development of tax management applications

Important Notice: This validator only checks the technical validity of the NIF according to the official algorithm. It does not verify if the number is actually registered with the Tax Agency or belongs to a specific taxpayer.