Codice Fiscale Calculator
This calculator works out a codice fiscale, the Italian tax code, from a surname, a first name, a sex, a date of birth and a place of birth. It knows every Italian municipality, including ones that no longer exist, and every foreign country. You can also paste an existing code to check its control letter and read the birth date, sex and birthplace inside it.
Calculate the code
Fill in every field and pick the place of birth from the list.
Check an existing code
This is the standard code built from your data. The only official code is the one issued by the Agenzia delle Entrate, which can differ in rare cases.
How to calculate a codice fiscale here
Enter the surname and the first name as they appear on the passport or birth certificate. Choose the sex and the date of birth. Then start typing the place of birth and pick it from the list. For people born in Italy this is the municipality, and for people born abroad it is the country. The code appears at once. The codice fiscale calculator needs your name, birth date, sex and birthplace.
Below the code, small tiles show which part comes from the surname, the name, the birth date and the place. Press Copy to put the code on the clipboard. To test a code you already have, type or paste it into the second box. The page checks the control letter and shows the data stored in the code.
When you need the code
In Italy you need it for almost every official step. Examples are opening a bank account, signing a work or rental contract, buying a house or a car, getting a SIM card and registering with the health service. Students need it to enrol at a university. Many forms also ask for it before the official card has arrived, and that is when a calculator helps.
How a codice fiscale is built
The Italian tax code has 16 characters. The first three come from the surname and the next three from the first name. Then come two digits for the year of birth, one letter for the month and two digits for the day. Four characters identify the place of birth, and a final control letter closes the code.
For the surname, take the first three consonants. If there are not enough, add vowels, and then the letter X. The first name works the same way, with one twist. If it has four or more consonants, the first, third and fourth are used. So Rossi gives RSS and Mario gives MRA.
The month is a letter: A, B, C, D, E, H, L, M, P, R, S and T stand for January to December. For women, 40 is added to the day, so a woman born on the 5th gets 45. For example, Mario Rossi, born in Rome on 1 August 1985, has the code RSSMRA85M01H501Q. This codice fiscale calculator knows every Italian comune and every foreign country code.
Who gets a codice fiscale and how
Every person born in Italy receives a code at birth. Foreigners need one as soon as they work, study, rent or buy in Italy. The code is issued by the Agenzia delle Entrate, the Italian revenue agency, and it is free. It has existed in this form since 1973.
If you live in Italy, you ask for it at a local office of the agency with your passport. If you live abroad, you can apply through an Italian consulate. Citizens later receive the tessera sanitaria, the health card, which shows the code on the front and as a barcode on the back.
Companies are a different case. A company uses its partita IVA, a number of eleven digits, as its tax code. This page handles codes of persons only. If you need to add or remove Italian VAT from a price, use our VAT calculator. The codice fiscale calculator can also check a code that you already have.
Why an official codice fiscale can differ
Two people can share the same name, birth date and birthplace. In that case the standard code would be identical, which is called omocodia. The agency then changes one or more digits into letters, starting from the right. The digits 0 to 9 become L, M, N, P, Q, R, S, T, U and V.
Therefore a calculator always gives the standard code, and that is correct for the great majority of people. However, only the code printed on your official card counts. If the two differ, use the official one. The checker on this page understands replaced digits and still reads the date correctly.
The control letter protects against typing errors. It is computed from the other 15 characters with two tables, one for odd and one for even positions. If one character is wrong, the letter almost always changes. So a code that passes the check is well formed, although the check cannot prove that the person exists. Nothing you type into the codice fiscale calculator leaves your browser.
Special cases worth knowing
If you were born outside Italy, the place code is the code of the country, not of the city. These codes start with Z. For example, Romania is Z129, Germany is Z112, France is Z110 and the United States is Z404. Just type the country name in the place field.
Municipalities change over time. Some merged, some changed their name and some moved to another province. The code always uses the municipality as it was on the day of birth. That is why the list also contains former municipalities, which are marked as such.
Spaces, apostrophes and accents in names are ignored, so D'Angelo counts as DANGELO and Niccolò as NICCOLO. With two surnames or two first names, all the letters are read together as one word. To work out an exact age from a birth date, try our age calculator. The tool can also check a codice fiscale that you already have.
Need a tool like this built for your business?
We build fast, private web tools and apps that run in the browser. That includes calculators, booking widgets and internal dashboards.
Talk to us about a web toolFrequently Asked Questions
What is a codice fiscale?
It is the Italian tax code, a 16-character code that identifies a person in dealings with public offices and companies.
Is the calculated code official?
No. It is the standard code. Only the Agenzia delle Entrate issues the official one, which is almost always the same.
How do I get an official code?
Ask at an office of the Agenzia delle Entrate in Italy or at an Italian consulate abroad. It is free.
What do I enter if I was born abroad?
Type your country of birth. Foreign countries have codes that start with Z.
Why is 40 added to the day for women?
It is how the code stores the sex. A day from 41 to 71 means the person is female.
Codice fiscale: more questions
What is omocodia?
It is the case of two people with the same standard code. The agency then replaces digits with letters.
Can I check a code I already have?
Yes. Paste it in the second box to verify the control letter and read the data inside.
Is my data sent anywhere?
No. The calculation runs in your browser, and the page only downloads the list of places.
Does it work for companies?
No. Companies use the partita IVA of eleven digits as their tax code.
My municipality no longer exists. What now?
Type its old name. The list includes former municipalities with their original codes.