Skip to content
ITALYZA

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.

Versione italiana: calcolo codice fiscale

  • 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

Sex
Place of birth

Your code appears here instantly

Still needed: surname, first name, sex, date of birth, place of birth.

XXXXXX00X00X000X

How it works

What each character means.

A codice fiscale has 16 characters in seven parts. Example: Mario Rossi, born 10 December 1985 in San Giuliano Terme.
CharactersPart
RSSSurnameFirst three consonants; if fewer, then vowels; padded with X.
MRAFirst nameWith 4+ consonants, the 1st, 3rd, and 4th; otherwise as for surnames.
85Year of birthLast two digits of the year.
TMonth of birthOne letter per month (A = January … T = December).
10Day & sexDay of birth; women add 40 (so 10 becomes 50).
A562Place of birthMunicipality cadastral code, or Z + three digits for a foreign country.
SCheck characterCalculated 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.

Read our full guide to the codice fiscale and where it fits in your first weeks in Italy.

Codice fiscale guide

FAQ

Codice fiscale questions.

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.