Italian tax code (codice fiscale) calculator
Calculate the codice fiscale (Italian tax code) of a person from their personal details, or paste a code to check whether it is formally valid and see what it contains. Everything happens in your browser.
Your data stays on your computer. Files are processed in your browser and are never uploaded.
Personal details
Spaces, apostrophes and accents are handled for you; with several names or surnames, type them all.
Calculated tax code
Fill in all the fields to calculate the code. Missing: surname, first name, sex, date of birth, place of birth.
The calculated code is the theoretical one
The real code is assigned by the Italian Revenue Agency (Agenzia delle Entrate): in case of omocodia (two people with the same code) it changes some characters. This tool applies the official rules but contacts no service, so it cannot know whether your code was altered or whether it really exists.
Need test codes? Fake tax code and VAT number generator (in Italian)
How it works
The code has 16 characters: 3 from the surname, 3 from the first name, year (2 digits), month letter, day (plus 40 for women), the cadastral code of the place of birth and a check character. The rules are those of the Ministerial Decree of 23 December 1976 and the Revenue Agency circulars. No service is contacted: the list of places is a file of this site, loaded only when needed.
Place data: ISTAT (the Italian National Institute of Statistics), "Codici dei comuni, delle province e delle regioni" and the SITUAS report of suppressed municipalities; foreign states from the ANPR table of the Italian Ministry of the Interior. Licence Creative Commons Attribution 4.0 (CC BY 4.0), reworked into a compact format. Source and licence
How to use it
- Under “What do you want to do” leave “Calculate” selected.
- Enter “Surname” and “First name” as they appear on your documents: the tool handles spaces, apostrophes and accents; if you have several names or surnames, type them all.
- Choose the “Sex” and the “Date of birth”.
- Set the “Place of birth”: “Italian municipality” (type the name and pick from the list), “Foreign country” or “I will enter the code” if you already know the cadastral code.
- The result appears under “Calculated tax code”: use “Copy the tax code” to copy it, and below you can see where each part comes from.
- To check a code you already have, switch to “Check and decode” and paste it: the tool tells you whether it is formally valid and what it contains.
Frequently asked questions
Is the calculated code the official one?
Not necessarily. It is the theoretical code obtained with the official rules. The real one is assigned by the Agenzia delle Entrate and, in case of homocode substitution (omocodia), it may be different: for official use refer to the code printed on your health card (tessera sanitaria).
How is the codice fiscale built?
It has 16 characters: 3 from the surname, 3 from the first name, 2 digits for the year of birth, one letter for the month, 2 digits for the day (plus 40 for women), 4 characters for the cadastral code of the place of birth and a check character calculated on the previous 15.
Why are different consonants used for the first name than for the surname?
For the surname the first three consonants are taken. For the first name, if there are four or more consonants, the first, third and fourth are taken. If there are not enough, it is completed with vowels and, finally, with the letter X.
What is homocode substitution (omocodia)?
If two people would end up with the same code, the Agenzia delle Entrate modifies one by replacing, starting from the right, some digits with the letters L M N P Q R S T U V. The tool shows the possible alternative codes, but it cannot know whether one has been assigned to you.
What does “Check and decode” verify?
Length, allowed characters, existing date of birth, place and check character, and it tells you where there is an error. It does not contact any service: it cannot say whether the code really exists or who it belongs to.
I cannot find my municipality or country in the list: what do I do?
The list includes current and abolished municipalities (ISTAT data) and foreign countries (ANPR table). If you cannot find it, choose “I will enter the code” and type the cadastral code: one letter and three digits, with an initial Z for foreign countries.
Privacy
Surname, first name and date of birth stay in your browser: no personal data is sent or stored. The list of places is a file on this site, loaded only when needed.