Free tool · Calcolo codice fiscale
Codice fiscale calculator & checker
Generate or validate an Italian tax code in seconds. Covers every Italian municipality, including former ones, and every foreign country, with omocodia support.
- Instant results
- Private, runs in your browser
- 13.8k municipalities
- 222 countries
All surnames, as on your passport
All given names, as on your passport
Your code appears here instantly
Still needed: surname, first name, sex, date of birth, place of birth.
XXXXXX00X00X000X
0/16 characters · checked instantly in your browser. Nothing is sent to our servers.
Paste a code to decode it
See the sex, date and place of birth, and whether the check character is correct.
- A Jan
- B Feb
- C Mar
- D Apr
- E May
- H Jun
- L Jul
- M Aug
- P Sep
- R Oct
- S Nov
- T Dec
How it works
What each character means.
| Characters | Part | Rule |
|---|---|---|
| RSS | SurnameFirst three consonants; if fewer, then vowels; padded with X. | First three consonants; if fewer, then vowels; padded with X. |
| MRA | First nameWith 4+ consonants, the 1st, 3rd, and 4th; otherwise as for surnames. | With 4+ consonants, the 1st, 3rd, and 4th; otherwise as for surnames. |
| 85 | Year of birthLast two digits of the year. | Last two digits of the year. |
| T | Month of birthOne letter per month (A = January … T = December). | One letter per month (A = January … T = December). |
| 10 | Day & sexDay of birth; women add 40 (so 10 becomes 50). | Day of birth; women add 40 (so 10 becomes 50). |
| A562 | Place of birthMunicipality cadastral code, or Z + three digits for a foreign country. | Municipality cadastral code, or Z + three digits for a foreign country. |
| S | Check characterCalculated from the first 15 characters to catch typing errors. | Calculated from the first 15 characters to catch typing errors. |
Reference
Month letters and country codes.
Month letters
- JanuaryA
- FebruaryB
- MarchC
- AprilD
- MayE
- JuneH
- JulyL
- AugustM
- SeptemberP
- OctoberR
- NovemberS
- DecemberT
South Asia
- PakistanZ236
- IndiaZ222
- BangladeshZ249
- Sri LankaZ209
- NepalZ234
- AfghanistanZ200
- BhutanZ205
- MaldivesZ232
Other common countries
- Iran, Islamic Republic OfZ224
- United Arab EmiratesZ215
- Saudi ArabiaZ203
- ChinaZ210
- United KingdomZ114
- United StatesZ404
- CanadaZ401
- AustraliaZ700
All 222 country codes and every Italian municipality are searchable in the calculator above.
Your official code
How to get a real codice fiscale.
Agenzia delle Entrate
Visit any office in Italy with your passport and the request form. It is issued free of charge.
Italian embassy or consulate
If you are abroad, the Italian mission can issue one. Check your consulate's procedure.
University, visa, or permit
Many students and workers receive one during enrolment, the visa process, or the residence permit.
Read our full guide to the codice fiscale and where it fits in your first weeks in Italy.
Codice fiscale guideFAQ
Codice fiscale questions.
Data sources
- ANPR: archivio comuni (CC BY 4.0) (opens in a new tab)
- ISTAT: elenco comuni italiani (opens in a new tab)
- Foreign states: python-codicefiscale (MIT), compiled from ISTAT (opens in a new tab)
Place codes updated 18 October 2026.
Is a calculated codice fiscale my official tax code?
No. The calculator applies the official algorithm, so the result usually matches, but only the Agenzia delle Entrate issues a valid codice fiscale. In rare cases (omocodia, or a different spelling of your name on official records) your official code differs. Always use the code on your certificate or tessera sanitaria.
What is the codice fiscale for someone born in Pakistan?
People born abroad use the code of their country of birth instead of a municipality. For Pakistan it is Z236, so the 12th–15th characters of the code are Z236. India is Z222, Bangladesh Z249, Sri Lanka Z209, and Nepal Z234.
How do I get an official codice fiscale?
Request it from an office of the Agenzia delle Entrate in Italy with your passport, or, for people abroad, through the Italian embassy or consulate. Many students and workers receive one during their visa, university enrolment, or residence permit process.
What is omocodia?
When two people would end up with the same code, the Agenzia delle Entrate makes one unique by replacing digits with letters (0=L, 1=M, 2=N, 3=P, 4=Q, 5=R, 6=S, 7=T, 8=U, 9=V), starting from the right. This validator accepts and decodes these variants.
Why can't the decoder tell the exact year of birth?
The code stores only the last two digits of the year, so 1925 and 2025 look identical. The decoder shows the most likely year and the alternative.
Is my data sent anywhere?
No. Calculation and validation run entirely in your browser. The only download is the public list of place codes.

Moving to Italy? We'll help with the paperwork.
From the codice fiscale to your residence permit, we help you plan the first weeks properly.