Spanish Tax Identifier/Code (CIF)

Prev Next

The Spanish Tax Identifier/Code (CIF) is the tax ID number that identifies a company or legal entity in Spain.

Validator

Spanish Tax Identification Number — Validates position weighted Mod 10 checksum.

Matched expressions

Regex expressions

Description

Score

(?i:\b[A-Z0-9][ -]?[0-9]{7}[ -]?[A-Z0-9]\b)

Matches an alphanumeric string of the format C NNNNNNN C, or C-NNNNNNN-C, or CNNNNNNNC, where the first and last characters are [0–9] or [A-Z].

1



Ignored expressions

None