Skip to content

How it works

This validator runs every check that can be done on a codice fiscale without access to the national tax register, and tells you exactly which one fails.

The checks, in order

  1. Structure. Six letters, two digits (or omocodia letters), a month letter, two more digits, a letter followed by three digits for the place, and a final check letter. 16 characters in total.
  2. Check character. The 16th character must match the value computed from the first 15. This catches almost any single typing mistake: one wrong character changes the sum, and the letter no longer matches.
  3. Date of birth. The day must exist in that month. For women 40 is added to the day, so 41 to 71 are valid. 29 February must fall in a leap year.
  4. Place code. The code must belong to a comune that existed in the year of birth (including former comuni), or to a foreign country.
  5. Omocodia. Letters that replace digits must be among L to V. The Agenzia delle Entrate replaces digits from right to left; a different pattern is flagged so you can double-check it.

Formal check versus real check

A code can pass every test and still not belong to anyone, simply because nobody with those details exists or the Agenzia delle Entrate assigned a different variant. Only the Agenzia delle Entrate can confirm that a code is assigned. It offers two free services, linked in the sources: one checks formal correctness, the other confirms whether a code exists in the tax register.

When to use it

  • Before submitting a form, to catch typos in your own code or a tenant’s.
  • When a website rejects a code, to see which part is wrong.
  • When a code contains letters among the digits, to confirm it’s a legitimate omocodia variant.

Worked example

RSSMRA80A01H501U

RSSMRA80A01H501U

  1. Sex

    01

    Male
  2. Born on

    80A01

    01/01/1980
  3. Place of birth

    H501

    Roma
  4. Check character

    RSSMRA80A01H501

    U

What this tool doesn't do

  • A formally valid code isn't necessarily assigned to anyone. To confirm that, use the Agenzia delle Entrate's Verifica codice fiscale service.
  • Temporary 11-digit codes and company codes aren't checked here.
  • Former foreign countries aren't in our data yet, so their Z codes are flagged for a manual check rather than rejected.

Frequently asked questions

What does 'formally valid' mean?

That the code has the right structure, a real date, a known place code and a correct check character. It doesn't mean the code has been assigned to a person.

How can I check that a codice fiscale really exists?

Use the free 'Verifica codice fiscale' service of the Agenzia delle Entrate. It checks the code against the national tax register and, if you provide them, the holder's details.

Why is a code with letters instead of digits valid?

Because of omocodia: to avoid duplicates, the Agenzia delle Entrate replaces digits with letters, starting from the right. Those codes are valid as long as the check character matches.

The check character is wrong. What happened?

Most likely a typing error in one of the 16 characters. The validator shows which check character the first 15 characters would need, which helps you find the mistake.