Codice Fiscale Calculator and Validator (Italy)
Paste codici fiscali to check them in batch and decode sex, birth date and place, or fill in the details to calculate one.
Runs in your browser. Your files never leave your device. See how to check
…
How to do it
- 1Paste codes
One codice fiscale per line to validate.
- 2Read the details
Sex, birth date, place and omocodia.
- 3Or calculate
Fill surname, name, birth date, sex and place.
- 4Generate
Press the button to create the code.
- 5Export
Download the results as CSV.
About this tool
The codice fiscale is the Italian tax code assigned to every person by the Agenzia delle Entrate. It has 16 characters: three letters from the surname, three from the name, two digits for the year of birth, a letter for the month, two digits for the day (plus 40 for women), a four-character code for the municipality or foreign country of birth, and a check character. When two people would get the same code, digits are replaced by letters (omocodia). This tool calculates codes and validates them in batch.
Who this is for
Foreigners moving to Italy, HR and payroll staff, developers validating forms, and anyone checking a code.
How the letters are chosen
For the surname, take the consonants in order, then the vowels, then X if needed, up to three letters. For the name, if there are four or more consonants, take the first, third and fourth; otherwise as for the surname. Accents and spaces are ignored.
Birth date and sex
The year uses its last two digits. The month uses a letter: A January, B February, C March, D April, E May, H June, L July, M August, P September, R October, S November, T December. The day is written with two digits; for women, 40 is added, so a woman born on the 1st has 41.
Place of birth
The place is the Belfiore code of the municipality, such as H501 for Rome or F205 for Milan, or a Z code for a foreign country, such as Z112 for Germany. The tool lists the main cities and countries; you can type any code.
The check character
The last letter is calculated from the first 15 characters with a table of values for odd and even positions; the sum modulo 26 gives the letter. A single typing error almost always changes it.
Omocodia
If two people share the same first 15 characters, the Agenzia replaces digits with letters, starting from the right: 0 becomes L, 1 M, 2 N, 3 P, 4 Q, 5 R, 6 S, 7 T, 8 U, 9 V. The validator accepts and decodes these codes.
Only the official code counts
A calculated code is only a guess: the official code is the one on your health card (tessera sanitaria) or the certificate from the Agenzia. Foreigners must request it at an office or a consulate, and the assigned code may differ if omocodia applies.
Batch use
Paste codes one per line to check them all, decode the details and export the results.
Worked example
Mario Rossi, born on 10 December 1985 in San Giuliano Terme (A562), has the code RSSMRA85T10A562S: RSS from Rossi, MRA from Mario, 85, T for December, 10 and the check letter S. Changing the last letter to X makes it invalid.
Limits
A format and check calculation. Only the Agenzia delle Entrate assigns official codes.
Worked example
Mario Rossi, born 10 December 1985 in San Giuliano Terme, has the codice fiscale RSSMRA85T10A562S.
Quick facts
- Category: Legal & Government
- Works in your browser, no sign-up, no upload.
- Your input stays on your device.
- Available in English.
- Content last reviewed:
- Official source: DM 23 December 1976 and DPR 605/1973 (codice fiscale: 3 letters surname, 3 letters name, year, month letter, day plus 40 for women, Belfiore place code, check character; omocodia substitution LMNPQRSTUV)
Frequently asked questions
How is the codice fiscale calculated?
From surname, name, birth date, sex and place of birth, plus a check letter.
Why do women have a day over 40?
40 is added to the day of birth for women.
What is omocodia?
Replacing digits with letters when two people would have the same code.
Is a calculated code official?
No, only the code assigned by the Agenzia delle Entrate is official.
What code is used for people born abroad?
A Z code for the country, such as Z112 for Germany.
Is my data stored?
No. It stays in your browser.
