CheckIDs Try the redaction API

🇮🇹 Codice fiscale validator

Also in: Italiano

The Italian codice fiscale is a 16-character tax code built from the surname, first name, date and place of birth, ending with a check letter.

Runs entirely in your browser; nothing you type is sent anywhere.

Generate test codice fiscale numbers

Fictional numbers with correct check digits, for testing software. They may by chance match a real person's number, so never use them to identify or impersonate anyone.

Click a number to copy it.

How a codice fiscale is structured

How the check works

Using the published example RSSMRA85T10A562S:

Characters in odd positions (1st, 3rd, … 15th) are converted with a special table (e.g. A=1, B=0, C=5, 0=1, 1=0); characters in even positions count as their value (A=0 … Z=25, 0=0 … 9=9). For RSSMRA85T10A562 the odd positions give 80 and the even positions 42, together 122. 122 mod 26 = 18, and letter number 18 (A=0) is S.

A passing check only means the number is well-formed; it doesn't prove the number was issued to anyone.

Finding codice fiscale numbers in text? The EU PII Redaction API finds and replaces national ID numbers from 21 EU/EEA countries, plus names, IBANs, emails and phones, in free text: for example before sending customer messages to an LLM. Free plan available; Python package and MCP server on GitHub.

Frequently asked questions

Why does a woman's codice fiscale have a day above 40?

40 is added to the day of birth for women, so 10 becomes 50.

Can two people have the same codice fiscale?

The Agenzia delle Entrate resolves collisions by replacing digits with letters (omocodia). This validator accepts those variants.

Other validators