Italy · Codice fiscale · Free tool
Codice Fiscale Calculator — Calculate Your Italian Tax Number Online
The codice fiscale is Italy's personal tax number: sixteen letters and digits derived from your surname, first name, date of birth, sex and place of birth. Because it is built by a fixed public algorithm, anyone can calculate what a person's code should look like — and that is exactly what this tool does. Enter your details to see the code, or switch to the reverse tab to decode an existing one.
- Free
- Runs in your browser
- No data stored
- Free — no sign-up
- Every Italian comune and 222 countries
- Reverse decoding of any code
What clients say
One thing to keep in mind before you type: a calculated code is not an issued code. Only Agenzia delle Entrate, the Italian Revenue Agency, attributes a codice fiscale — and if someone else already holds the same sixteen characters, yours will be issued as a variant. The calculator is for checking, planning and filling in drafts; for a bank, a notary or a landlord you need the official certificate.
Everything is calculated in your browser. Nothing you type here is sent to us or stored anywhere.
How to use the calculator
- Surname — as it appears in your passport. Accents, apostrophes and spaces are ignored.
- First name — all given names, as on your passport.
- Date of birth — day, month and year.
- Sex — male or female; for women the algorithm adds 40 to the day of birth.
- Place of birth — start typing the Italian comune or, if you were born abroad, the country, and pick it from the list.
Press Calculate codice fiscale and the sixteen-character code appears with a position-by-position breakdown, ready to copy. To read an existing code instead, switch to the reverse tab.
How the codice fiscale is calculated
The rules were set by the Italian Ministry of Finance in a decree of 23 December 1976 and have not changed since. Each of the sixteen positions has a fixed meaning:
| Positions | What they encode | Rule |
|---|---|---|
| 1–3 | Surname | The consonants of the surname in order, then the vowels; padded with X if shorter than three letters. ROSSI → RSS, AI → AIX. |
| 4–6 | First name | Same as the surname, with one twist: if the name has four or more consonants, the first, third and fourth are used. GIOVANNA → GNN, MARIO → MRA, ANNA → NNA. |
| 7–8 | Year of birth | The last two digits. 1985 → 85. |
| 9 | Month of birth | One 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. |
| 10–11 | Day of birth and sex | The day, two digits. Women add 40: a man born on the 10th → 10, a woman born on the 10th → 50. |
| 12–15 | Place of birth | The Belfiore (cadastral) code of the Italian comune — H501 Rome, F205 Milan, A124 Alba — or of the foreign country, which always starts with Z. |
| 16 | Check character | A letter calculated from the other fifteen, so a typo anywhere in the code can be detected. |
A worked example
Take Mario Rossi, a man born on 10 December 1985 in Alba, in the province of Cuneo:
- RSS — the consonants of ROSSI: R, S, S.
- MRA — MARIO has only two consonants, M and R, so the first vowel follows: M, R, A.
- 85 — the year.
- T — December.
- 10 — the day; as a man, no +40.
- A124 — the Belfiore code of Alba (CN).
- F — the check character calculated from RSSMRA85T10A124.
Result: RSSMRA85T10A124F. Enter the same data in the calculator above and you will get the same code — that is the point of a public algorithm.
Born outside Italy: the Z-codes
If you were born abroad, positions 12–15 carry the code of the country, not the city: Z404 for the United States, Z114 for the United Kingdom, Z112 for Germany, Z126 for the Netherlands, Z110 for France. The calculator lists every state with a Belfiore code — including states that no longer exist, such as the Soviet Union (Z135) or Yugoslavia (Z118), because a person born there still carries that code.
The same applies inside Italy: hundreds of comuni have been merged or renamed since the codes were assigned, and a person born in one of them keeps its original code. The list behind this calculator therefore includes ceased comuni, marked with the year they ceased.
Omocodia: when two people would get the same code
Sixteen characters built from names, a date and a place are not unique. Two people called Rossi Mario, both born on 10 December 1985 in Alba, would collide. Agenzia delle Entrate resolves this by issuing the second person an omocode: starting from the rightmost digit, digits are replaced by letters — 0 → L, 1 → M, 2 → N, 3 → P, 4 → Q, 5 → R, 6 → S, 7 → T, 8 → U, 9 → V — and the check character is recalculated. RSSMRA85T10A124F becomes RSSMRA85T10A12QC, then RSSMRA85T10A1N4Q, and so on; up to 127 variants exist for every base code.
This is why a calculated code can differ from the one on your certificate even when every character you entered is correct: no calculator can know whether your base code is already taken. The reverse tab recognises omocode variants and shows the base code they derive from.
Decoding a codice fiscale
Because the structure is public, any code can be read backwards — up to a point. From a valid code you can recover the date of birth, sex and place of birth, verify the check character, and see the three letters kept from each name. What you cannot recover is the full surname and first name: RSS could be Rossi, Russo, Rosso or Rasi. The reverse tab of the calculator shows exactly what the code contains and nothing more.
One caveat: the code stores only the last two digits of the year, so 85 could be 1985 or 1885. The decoder assumes the most recent year that is not in the future.
Calculated vs. official: what the difference means in practice
A calculated codice fiscale is a prediction. An official one is an entry in Italy’s national tax registry, proven by the certificato di attribuzione that Agenzia delle Entrate issues. Banks, notaries, landlords, employers and the health service verify the code against that registry, so a code that was never attributed — however correctly calculated — is refused. If you need the code for anything real, get it issued before you rely on it.
Ready? Apply for your codice fiscale in 5 minutes
Fill in the form, upload your passport, sign once — and our team files your application with Agenzia delle Entrate.
Frequently asked questions about the codice fiscale calculator
Is a codice fiscale from a calculator valid?
No — not on its own. A calculator applies the official algorithm to your data and shows the code that algorithm produces, but a codice fiscale only exists once Agenzia delle Entrate attributes it and records it in the national tax registry. Banks, notaries, landlords and employers ask for the certificato di attribuzione, the document that proves the code was issued to you. Use the calculator to check a code or fill in a draft; get the official one before you rely on it.
How is the codice fiscale calculated?
Three letters from the surname (consonants first, then vowels), three from the first name (with a special rule when there are four or more consonants), two digits for the year of birth, one letter for the month, two digits for the day (plus 40 for women), a four-character code for the place of birth, and a final check character calculated from the other fifteen. The rules are set out in the Italian Ministry of Finance decree of 23 December 1976.
Which place code do I use if I was born outside Italy?
The code of the country, not the city. Foreign states have Belfiore codes starting with Z — Z404 for the United States, Z114 for the United Kingdom, Z126 for the Netherlands, Z112 for Germany. In the calculator, type the country name in your language and pick it from the list.
My name has accents or is not written in the Latin alphabet — what do I enter?
Enter the Latin-alphabet spelling that appears in the machine-readable zone of your passport — that is what Agenzia delle Entrate registers. Accented letters count as their base letter (É as E, Ñ as N, Ø as O); apostrophes, hyphens and spaces are ignored. Names written in Cyrillic, Arabic, Hebrew or Chinese characters must be transliterated first.
What is the check character at the end?
The sixteenth character is a checksum. Each of the first fifteen characters is converted to a number using two tables (one for odd positions, one for even), the numbers are added, and the remainder of the sum divided by 26 selects a letter from A to Z. It lets any system detect a typo in a codice fiscale without looking it up.
What is omocodia — and why does my real code contain letters where the calculator shows digits?
Two people with the same surname letters, name letters, date of birth and place of birth would get the same code. When that happens, Agenzia delle Entrate issues the second person a variant in which digits are replaced by letters (0 becomes L, 1 becomes M, and so on up to 9 becoming V), starting from the rightmost digit, and recomputes the check character. A calculator cannot know whether your base code is already taken — only the Revenue Agency can. The reverse tab of this tool recognises omocode variants and shows the base code they derive from.
Can I find someone's name from their codice fiscale?
No. The code keeps only three letters of the surname and three of the first name, so the full names cannot be recovered. The reverse tab decodes what the code does contain: those letters, the date of birth, sex, and the place of birth — and it checks whether the check character is consistent.
Does using the calculator send my data anywhere?
No. Everything is calculated in your browser. The only thing the page downloads is the public list of Italian comuni and countries with their codes. Nothing you type is transmitted to e-residence.com or to anyone else, and nothing is stored.
How do I get the official codice fiscale without going to Italy?
Non-residents can authorise a representative in Italy to file the application on their behalf. Our team does exactly that: you upload your passport or EU ID card and sign a Power of Attorney electronically, we file with Agenzia delle Entrate, and you receive the official certificato di attribuzione by email within a few working days — no consulate appointment, no trip to Italy.
Reviewer and Sources
Reviewed by: E-Residence Team · License No. 62802L · Last updated:
The calculator implements the public algorithm and is provided for information only. It does not attribute a codice fiscale and cannot tell whether a code has already been assigned to someone else. For a code you can use with banks and public offices, apply to Agenzia delle Entrate or use our remote application service.
Official sources
- Decreto del Ministero delle Finanze 23 dicembre 1976 — codice fiscale structure and check-character tables
- Agenzia delle Entrate — codice fiscale attribution and the certificato di attribuzione
- ISTAT — codes of Italian comuni (codice catastale), CC BY 3.0 IT
- Ministero dell'Interno, ANPR — historical archive of Italian comuni, CC BY 4.0