What the 16 characters mean
Unlike a random ID, the Italian tax code is built from your personal data with a public rule set out in a 1976 ministerial decree. That is why it can be calculated in advance and why, read backwards, it reveals sex, date and place of birth, but not your name.
- Surname (1–3): the consonants in order, then vowels if needed, padded with X.
- First name (4–6): same rule, except that with four or more consonants the 1st, 3rd and 4th are used.
- Year (7–8): the last two digits. The century is not stored.
- Month (9): a letter from a fixed table: A B C D E H L M P R S T for January to December.
- Day and sex (10–11): the day of birth; 40 is added for women, so 01–31 means male and 41–71 female.
- Place (12–15): the cadastral code of the Italian municipality, or Z plus three digits for a foreign country.
- Check character (16): computed from the other fifteen; it catches typing errors.
How to get the official codice fiscale
The code is assigned only by the Agenzia delle Entrate, directly or through other public offices, and it is free. Which office depends on your situation; the rules below are published by the Italian Ministry of Foreign Affairs and the Agenzia delle Entrate.
| Your situation | Who assigns the code |
|---|---|
| Non-EU national entering Italy for work or family reunification | The Sportello Unico per l'Immigrazione at the Prefettura, as part of the entry clearance (nulla osta). |
| Non-EU national applying for or renewing a residence permit for other reasons | The Questura (police headquarters), which is connected to the tax registry and assigns the code if you do not have one. |
| EU citizen moving to Italy | Any local office of the Agenzia delle Entrate: form AA4/8, passport or national ID valid for travel, and the reason for the request. |
| Foreign student (stay up to 90 days) | Any Agenzia delle Entrate office; for stays over 90 days you need a residence permit, and the Questura issues the code with it. |
| Living abroad and needing a code (inheritance, buying property, contracts) | The Italian consulate in your country of residence, or a representative in Italy with a special power of attorney (procura speciale) at an Agenzia office. |
| Italian citizen registered abroad (AIRE) | The consulate, including online through the Fast It portal, where the attribution certificate can be downloaded. |
Documents: form AA4/8 (“Domanda di attribuzione codice fiscale…”), filled in and signed, plus a valid passport (with visa where required), residence permit, or an identity certificate issued by your country's diplomatic representation in Italy. The office issues an attribution certificate on the spot; the plastic card (health card for people registered with the national health service, otherwise a tax code card) is mailed to the address you give, so make sure it is correct. The Agenzia's own guide states that form AA4/8 can also be sent by e-mail or certified e-mail (PEC) to an office, with a copy of your ID attached.
Sources: Ministry of Foreign Affairs – Codice fiscale (in Italian); Agenzia delle Entrate – Mini guide to the tax code for foreigners (PDF available in English and 17 other languages).
Why the official code may differ: omocodia
Because the code is derived from personal data, two people can end up with the same 16 characters. When that happens the Agency replaces one or more digits in the second person's code with letters (0→L, 1→M … 9→V), starting from the right, and recalculates the check character. No calculator can know whether this applies to you: the official code is the one on your card or certificate. People born abroad are more often affected, because conventional birth dates (1 January) and transliterated names increase the chance of collisions.
Checking a code
The Agenzia delle Entrate offers a free online service to check whether a tax code exists and one to check that a code matches a person's data. Both answer only yes or no. CF Inverso has no authorised integration with the tax registry and does not query the official service on your behalf: use the linked government service yourself. This site's own formal checker (in Italian) verifies the structure and the check character locally.
Privacy
Everything is computed in your browser. The site only downloads public tables (municipalities, countries); the data you type is never sent, stored or logged. There are no cookies and no trackers. See the privacy policy (in Italian).
