Italian Codice Fiscale Calculator
Work out the codice fiscale from surname, name, date and place of birth, or decode a code to see the date, sex and place of birth it contains.
Calculate the code
All names and surnames as written in Italian records; married women use their maiden surname.
Italian municipality, or the foreign state for people born abroad. You can also type the code, such as H501.
Fill in all the fields to see the code.
The official codice fiscale is assigned by the Agenzia delle Entrate. A code calculated here is only an estimate: the one you were given can be different, for example in a case of omocodia.
Check and decode a code
16 characters for a person, or the 11-digit numeric code of a company or a provisional code. Spaces and lower case are fine.
Enter a code to see what it contains.
A check only shows whether the code has the right form and control character. It does not tell you whether the code was assigned, or to whom; the Agenzia delle Entrate has an online service for that.
Test codes
Test values only. Do not use them as the code of a real person.
Codes built from random letters, a random date and a random place code, with a correct control character, for development and testing. They are not taken from any name, but a random code can match one that has really been assigned.
How the code is built
- Decreto ministeriale of 23 December 1976: 3 letters for the surname, 3 for the name, 2 digits for the year of birth, a letter for the month, 2 digits for the day of birth (plus 40 for women), 4 characters for the municipality or foreign state of birth and a control letter.
- Surname: the first three consonants; if there are fewer, the vowels follow, and X completes a code of two letters. Name: the same, except that with four or more consonants the 1st, 3rd and 4th are used.
- Months: A January, B February, C March, D April, E May, H June, L July, M August, P September, R October, S November, T December.
- Control letter: each of the first 15 characters gets a value from the decree's table for odd or even positions; the remainder of the sum divided by 26 gives the letter (0 = A … 25 = Z).
- Omocodia: when two people would get the same code, the Agenzia delle Entrate replaces digits from the right with letters (0 = L, 1 = M, 2 = N, 3 = P, 4 = Q, 5 = R, 6 = S, 7 = T, 8 = U, 9 = V) and recalculates the control letter.
- Place codes (codici catastali) come from the ANPR tables of the Ministero dell'Interno, which list municipalities with the periods in which each name and code was valid. States that no longer exist are not in the foreign-states table.
- Everything runs in your browser. The names, dates and codes you enter are not sent to LeedyBox or saved.
Source: Decreto ministeriale 23 dicembre 1976, «Sistemi di codificazione dei soggetti da iscrivere all'anagrafe tributaria» (Gazzetta Ufficiale n. 345, suppl. ord.) · Last checked:
Source: Decreto ministeriale 23 dicembre 1976, artt. 6–10 (Gazzetta Ufficiale n. 345, suppl. ord.) · Last checked:
Source: Agenzia delle Entrate: Codice fiscale e tessera sanitaria – Risposte alle domande più frequenti · Last checked:
Source: Agenzia delle Entrate: «Il Codice Fiscale» (scheda) · Last checked:
Source: Ministero dell'Interno, ANPR: Tabelle di decodifica – Archivio comuni (aggiornamento 4 giugno 2026) · Last checked:
Source: Ministero dell'Interno, ANPR: Tabelle di decodifica – Stati esteri (aggiornamento 12 gennaio 2024) · Last checked: Place codes: ANPR data of the Ministero dell'Interno, licence CC BY 4.0.
Wrong result? If a place is missing or a code is decoded wrongly, email us. Please do not send your own code or name: tell us the place and date, or send a generated test code that shows the problem.
Does a sentence on this page sound unnatural in your language? Let us know that too.
How to use
- Enter surname, name, sex and date of birth, then type the place of birth and pick it from the list.
- The code appears with each part explained. Open “Codes in case of omocodia” to see the variants the Agenzia uses when two people share a code.
- To read a code, type it in “Check and decode a code”: the tool checks the control letter and shows the date, sex and place of birth.
Frequently asked questions
How is the codice fiscale calculated?
Under the Decreto ministeriale of 23 December 1976 it is made of three letters from the surname, three from the name, the last two digits of the year of birth, a letter for the month, the day of birth (plus 40 for women), the code of the place of birth and a control letter. For Mario Rossi, born in Rome on 1 January 1980, that gives RSS, MRA, 80, A, 01, H501 and the control letter U: RSSMRA80A01H501U.
Is a calculated codice fiscale valid?
No. The Agenzia delle Entrate assigns the code and states that codes calculated by applications on websites have no value. Use the code on your card or certificate; a calculated one can differ, for example in a case of omocodia.
What is omocodia?
When two people have data that produce the same 16 characters, the Agenzia gives each a different code by replacing digits from the right with letters (0 = L … 9 = V) and recalculating the control letter. A code with letters where digits normally are is therefore still valid.
Where do the place codes come from?
Each municipality and foreign state has a codice catastale, such as H501 for Rome or A944 for Bologna. The tool uses the ANPR tables of the Ministero dell'Interno, which also list former municipalities and the periods in which each name was valid.
Can the tool tell me whose code it is?
No. It only reads what the code itself contains and checks its control character in your browser. Only the Agenzia delle Entrate's records show whether a code was assigned and to whom.