Codice fiscale validator
Check the structure and check character of a codice fiscale, and see exactly which test fails.
- Verified 24 Nov 2026
- Stays in your browser
By Muhammad Shoaib
Check character
Formally valid
- OKStructure (6 letters, 2 digits, month letter, 2 digits, place code, check letter)
- OKCheck character
- OKDate of birth exists
- FailPlace code matches a comune or country
- OKOmocodia letters (if any)
- Sex
- Male
- Born on
- 01/01/1980
- Place of birth
- Not a comune or current country in our data. It may be a former country; see the official list. H501
- Surname letters
- RSS
- First-name letters
- MRA Names cannot be recovered from these letters, only checked against them.
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
- 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.
- 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.
- 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.
- Place code. The code must belong to a comune that existed in the year of birth (including former comuni), or to a foreign country.
- 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
- Male
Sex
01
- 01/01/1980
Born on
80A01
- Roma
Place of birth
H501
- U
Check character
RSSMRA80A01H501
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.
Estimates, not advice. Check anything important with the office or an accountant. · Verified 24 Nov 2026