Italian Tax ID/SSN (Codice Fiscale)

Prev Next

Codice fiscale is an alphanumeric tax code of 16 characters issued by the Italian tax office.

Validator

Italian Codice Fiscale (Tax ID & SSN) — Validates Codice Fiscale specific pattern and MOD 26 checksum.

Matched expressions

Regex expressions

Description

Score

(?i:\b[A-Z]{3}[ -]?[A-Z]{3}[ -]?[0-9]{2}[A-EHLMPRST](?:[04][1-9]|[1256][0-9]|[37][01])[ -]?[A-MZ][0-9]{3}[A-Z]\b)

Matches a 16-character long alphanumeric code of the format CCCCCCNNCNNCNNNC or CCC-CCC-NNCNN-CNNNC or CCC CCC NNCNN CNNNC, where:

  • Character 1–3: [A-Z]

  • Character 4–6: [A-Z]

  • Character 7–8: [0–9]

  • Character 9: ABCDEHLMPRST

  • Character 10–11: 01–31 or 37 or 41–71

  • Character 12: A-M or Z

  • Character 13–15: 000–999

  • Character 16: A–Z

1



Ignored expressions

None