Skip to content

What a codice fiscale is

The codice fiscale is the personal tax code of everyone who deals with Italian offices. It has 16 characters: three for the surname, three for the first name, two for the year of birth, a letter for the month, two for the day with an adjustment that marks the sex, four for the place of birth and a final check character. It is computed by a published rule, which is why it can be rebuilt and checked.

Which tool to use

Use the calculator when you need to know a code and have the personal data at hand. Use the decoder when you have a code and want to read the birth date, sex and place it encodes. Use the validator when someone gave you a code and you want to know whether it is well formed. For the place-of-birth part, the comuni directory lists every comune code.

Why a calculated code is not official

A code you calculate follows the rule, but the code that counts is the one the Agenzia delle Entrate assigned. Two cases can make them differ: omocodia, where digits are replaced by letters to separate people who would otherwise share a code, and data entered differently at registration. The guides explain both, and the calculator warns you.

Common mistakes

Typing names with accents or double surnames differently from the passport. Choosing the wrong place of birth, especially for a comune that merged or changed name. Forgetting that foreign-born people use a country code instead of a comune. Treating a formally valid code as proof that it belongs to a given person.

Common questions

Is the calculated code valid for official use?

It is formally correct, but it has no legal value on its own. Confirm the assigned code with the Agenzia delle Entrate.

I was born abroad. Can I get a code?

Yes. The calculator uses the code of your country of birth in place of a comune. The foreigner guide explains how to apply.

Why are some codes different from what the calculator gives?

Omocodia is the usual reason. The decoder reads such codes correctly.

What if my comune of birth no longer exists?

The tools keep the history of merged and renamed comuni, so the code still resolves.