Skip to main content
Free • Unlimited checks • No signup

Validate Spain TIN (NIF / NIE / CIF)

Free online Número de Identificación Fiscal validator. Instant validation using OECD-compliant rules for Spain tax identification numbers.

Validation Workspace

Validate NIF / NIE / CIF

Enterprise checks for Spain tax identification numbers.

Instant one-by-one format validation

Country

Spain

Document

NIF / NIE / CIF format check

Enter a NIF / NIE / CIF to validate for Spain

Awaiting input

Paste values with or without separators. Validation also checks a normalized value.

Use a real NIF / NIE / CIF sample to verify format compliance before filing.

About Spain TIN (NIF / NIE / CIF)

The Número de Identificación Fiscal is the official tax identification number used in Spain. Format: 8 digits + 1 letter (NIF), or letter + 7 digits + letter (NIE)

Valid Examples

  • 12345678Z
  • X1234567L

Invalid Examples

  • 12345678A (Invalid check letter)
  • X123456 (Too short)

Common Use Cases

  • Tax declarations
  • Employment
  • Property purchases
  • Banking

Official source: Agencia Tributaria

Frequently Asked Questions

What's the difference between NIF, NIE, and CIF?
NIF (Número de Identificación Fiscal) is for Spanish citizens. NIE (Número de Identidad de Extranjero) is for foreign residents. CIF is for companies (now replaced by NIF for legal entities).
How is the NIF check letter calculated?
The check letter is calculated by dividing the 8-digit number by 23 and mapping the remainder (0-22) to a letter using the sequence TRWAGMYFPDXBNJZSQVHLCKE.

Need to validate 100s of TINs?

Sign up for 1,000 validations/month completely free. Bulk upload, API access, and webhooks included.

No credit card required • 1,000 free validations/month