What would you like to do?
Check a codice fiscale or VAT number
Calculate the codice fiscale from personal details
Official check
Format check only – no legal value. The tool checks whether a code is built according to the official rules and calculates a code from personal details. Only the Agenzia delle Entrate can tell whether a code has actually been issued. According to the Agenzia, codes calculated on websites “have no value”. The code on your health card (tessera sanitaria), your codice fiscale card (tesserino) or the Agenzia’s certificate is the one that counts.
In brief: codice fiscale and VAT number
How the codice fiscale is built
A person’s codice fiscale has 16 characters: letters from the surname and first name, the year, month and day of birth, the code of the place of birth and a check character at the end. For women, 40 is added to the day of birth. Example (fictitious person): MSTNNA90C47A952F.
Details
The 16 characters in detail:
| Position | Content |
|---|---|
| 1–3 | 3 letters from the surname |
| 4–6 | 3 letters from the first name |
| 7–8 | 2 digits for the year of birth |
| 9 | 1 letter for the month |
| 10–11 | 2 digits for the day (for women day + 40) |
| 12–15 | 4 characters for the place of birth: municipality or, if born abroad, “Z” and three digits for the country |
| 16 | check character |
Month letters:
| Jan | Feb | Mar | Apr | May | Jun |
|---|---|---|---|---|---|
| A | B | C | D | E | H |
| Jul | Aug | Sep | Oct | Nov | Dec |
|---|---|---|---|---|---|
| L | M | P | R | S | T |
Example (fictitious person): Anna Mustermann, born on 7 March 1990 in Bolzano → MSTNNA90C47A952F
| MST | NNA | 90 | C |
|---|---|---|---|
| from the surname | from the first name | 1990 | March |
| 47 | A952 | F |
|---|---|---|
| day 7 + 40 (female) | Bolzano | check character |
The code only distinguishes between male and female (for women day + 40). Umlauts and ß are transliterated (Ä → AE, Ö → OE, Ü → UE, ß → SS); spaces, apostrophes and hyphens are dropped.
Source: DM 23.12.1976 n. 13813 (GU n. 345 of 29.12.1976), Art. 2–7 – text from DocTrib/MEF · Agenzia delle Entrate, Circolare 34/E of 20 Jul 2011 · As of 20 Oct 2026
Omocodia: when two people would get the same code
If two people would get the same code, it is changed for the person registered later: the Agenzia delle Entrate replaces digits with letters and recalculates the check character. Such codes are correct; the tool recognises them.
Details
Replacement starts with the last digit on the right, according to this table:
| Digit | 0 | 1 | 2 | 3 | 4 |
|---|---|---|---|---|---|
| Letter | L | M | N | P | Q |
| Digit | 5 | 6 | 7 | 8 | 9 |
|---|---|---|---|---|---|
| Letter | R | S | T | U | V |
For the breakdown, the tool converts the letters back.
If the letters do not follow the usual order from the right, the tool shows a note – that does not automatically make the code wrong.
Source: DM 23.12.1976 n. 13813, Art. 6 · As of 20 Oct 2026
VAT number and numeric codice fiscale
Companies, associations and public bodies have an 11-digit codice fiscale; the VAT number (partita IVA) also has 11 digits and the same structure. The tool only checks the check digit and whether the office code is in the usual range. Whether the number has been issued and is active is shown by the Agenzia delle Entrate’s “Verifica partita IVA” service.
Details
Structure of the 11 digits:
| Position | Content |
|---|---|
| 1–7 | serial number |
| 8–10 | code of the issuing office (under the 1976 decree, the code of the province where the office is located) |
| 11 | check digit |
For business within the EU, this is shown by VIES.
Source: DM 23.12.1976 n. 13813, Art. 8–10 · Agenzia delle Entrate: Verifica partita IVA · Agenzia delle Entrate: Codice fiscale (AA5/6) – Che cos’è · As of 20 Oct 2026
Where do I get my codice fiscale?
For newborns, the municipality assigns the code when the child is entered in the population register. Otherwise any office of the Agenzia delle Entrate issues it; in some cases other offices are responsible (see Details). Only the code issued by the Agenzia delle Entrate is valid – according to the Agenzia, codes calculated on websites have no value.
Details
| Who? | Where? |
|---|---|
| Newborns | The municipality assigns the code when the child is first entered in the national population register ANPR. If it has not been assigned yet or it is urgent, parents can request it online or at any office of the Agenzia delle Entrate. |
| Foreign nationals applying for entry for salaried employment or family reunification | at the Sportello unico per l’immigrazione (SUI, immigration one-stop office) where the application is made |
| Those applying for or renewing a residence permit | through the Questura |
| People living abroad | on request to the Italian embassy or consulate in their country of residence |
| Everyone else | at any office of the Agenzia delle Entrate |
Source: Agenzia delle Entrate: Il Codice Fiscale – Che cos’è e come si ottiene · Agenzia delle Entrate: Codice fiscale – Risposte alle domande più frequenti · As of 20 Oct 2026
Sources of the list of municipalities and countries
Municipality and country codes come from ISTAT (licence CC BY 4.0), the German and English country names from Unicode CLDR (Unicode License v3); merged, reduced and cross-checked by AlpFinanz against Table T4 of the Agenzia delle Entrate. Very old or ceded municipalities and countries dissolved before 1990 may be missing – the tool then shows a note instead of an error.
Details
- Municipality and country codes: ISTAT – Elenco dei comuni italiani and ISTAT SITUAS (dissolved and newly created municipalities, foreign countries), retrieved on 20 Oct 2026, licence CC BY 4.0.
- German and English country names: Unicode CLDR (Unicode License v3).
- Cross-checked with Table T4 of the Agenzia delle Entrate (as of 20 Jan 2020), from which one code was added.
- Merged, reduced (code, names, province, year only) and supplemented with search names by AlpFinanz.
- May be missing: very old or ceded municipalities (e.g. in Istria) and countries dissolved before 1990.
Source: ISTAT – Codici dei comuni · Licence CC BY 4.0 · Unicode License v3 · Agenzia delle Entrate, Table T4 (20 Jan 2020) · As of 20 Oct 2026
Terms for this tool (3)
Frequently asked questions
Contact
Questions, feedback or suggestions?
Send an email