Living abroad

Italy Codice Fiscale for Foreign Workers: Who Issues It

The codice fiscale is your 16-character Italian tax code. If you come on a work nulla osta, the Sportello unico per l'immigrazione gives it to you; if you ask for a residence permit at the Questura, you get the final code at once. Anyone else files form AA4/8 at any Agenzia delle Entrate office. It has no expiry date.

Updated November 1, 2026 ·

Rome, Italy
Photo: Jebulon · CC0

What the 16 characters mean

The code is built from your personal data. The first 3 letters come from your surname and the next 3 from your first name. Characters 7 and 8 are the last two digits of your birth year. The 9th character is a letter for your birth month.

Characters 10 and 11 are your day of birth, and for women 40 is added to the day. A woman born on the 7th shows 47, a man born on the 7th shows 07. Characters 12 to 15 show the Italian municipality or the foreign state where you were born. The 16th character is calculated by the system as a check.

Who gives it to you depends on your route

The Agenzia delle Entrate, the Italian tax agency, names four routes. If you come to work under a nulla osta, or for family reunification, the code is attributed at the Sportello unico per l'immigrazione, the immigration desk in every Prefettura. If you ask for a residence permit at the Questura, the police office gives it. If you live abroad, you can ask the Italian embassy or consulate in your country of residence. Otherwise you ask the Agenzia directly.

For the quota and the nulla osta steps, see our decreto flussi guide. For the permit after arrival, see our guide to the permesso di soggiorno.

Provisional numeric code, then the final code with letters

The Sportello unico first gives a provisional numeric code. When your residence permit is issued, you get the final code made of letters and numbers. The Questura works the other way: if you file for a residence permit there, you get the final code immediately.

If two or more people have data that produce the same code, the Sportello unico or Questura sends them to any Agenzia office to receive the final code. Ukrainians who file for temporary protection get the final code from the Questura when they file for the temporary permit.

Asking the Agenzia yourself: form AA4/8 and four possible documents

If you have no code, fill in and sign form AA4/8. The form and its instructions are free to download. You can file it at any Agenzia office, also through a delegate, or send it by certified e-mail (PEC). To book a visit, use the appointment booking for any territorial office. A delegate shows their own ID and a copy of yours.

A non-EU citizen attaches one of these documents:

  • A valid passport, with a visa when one is required, or another document recognised by the Italian authorities
  • An identity attestation from the embassy or consulate of your country in Italy, with your photo
  • A valid residence permit
  • An identity card issued by the municipality where you live

After you receive it: certificate first, card by post

Once the code is attributed, the Agenzia issues a certificate of attribution. You can use it while you wait for the card. If you are registered with the national health service, the card is the Tessera Sanitaria. If you are not registered, you get only the Tesserino del codice fiscale.

The card is sent by ordinary post. For residents it goes to the residence address, and for non-residents to the tax domicile you gave when you made the request. The Agenzia page was last updated on 20 October 2026.

What is different about this code: only the Agenzia's version counts

Some websites generate a 16-character code from your name and birth data. The Agenzia states that the only valid code is the one issued and certified by the Agenzia delle Entrate, and never one generated by software or procedures it does not manage. A code from a website is not valid, even if the characters look right.

The valid code does not expire, and it is the identifier you use in all dealings with public bodies.

Worked example: two routes, one number of steps

Route one: your employer files a nulla osta, you receive a provisional numeric code at the Sportello unico, then the final code when the permit is issued. That is 2 codes, with the second replacing the first.

Route two: you arrive and go to the Questura for the permit. You get the final code on the first visit, so there is 1 code. In both routes the Asl, the local health authority, needs the code before it enrols you with a doctor. With the provisional code, you can already enrol with the Asl and choose a doctor.

Common problems: duplicates, wrong data and a missing code

A duplicate occurs when two people's data give the same code. It is fixed at an Agenzia office, not by you changing your data. A second problem is a typo in your name or birth place on the form, because those are in the characters. Write your name exactly as in your passport.

A third problem is arriving without a code. Foreigners staying legally in Italy without a code can ask any Agenzia office for it. We did not find a fee or a processing time on the pages we read, so ask the office when you book.

Where else you need it: the Asl and your driving licence

You need it to join the national health service and choose a doctor. If you plan to convert your foreign driving licence, the Ministry of Transport list for the application includes the codice fiscale in original and in photocopy. Our guide to driving licence conversion in Italy gives the deadlines.

Who this guide suits, and who it does not

It suits workers who have a nulla osta, a permit appointment or a job offer and want to know who gives them the code. It does not suit people who need a tax number for a business: this page covers the personal code only.

FAQ

Questions.

How many characters does the Italian codice fiscale have?

16, made of letters and numbers built from your surname, first name, birth date, sex and birth place, with a final check character.

Does the codice fiscale expire?

No. The Agenzia delle Entrate states that the valid code, issued by the Agenzia, has no expiry date.

Can I use a code from an online generator?

No. The only valid code is the one issued and certified by the Agenzia delle Entrate, not one made by software it does not manage.

Who gives me the code if I come on a work nulla osta?

The Sportello unico per l'immigrazione gives a provisional numeric code, and the final code with letters arrives when the residence permit is issued.

Can someone apply for me from abroad?

Yes. You can ask the Italian embassy or consulate in your country, or send a delegate to any Agenzia office with their own ID and a copy of yours.

Your job abroad starts here.

Add your profile where employers hiring from abroad find skilled workers like you. Ten minutes to set up, and it's free.

Create your profile

Free. No subscription. No commission on your wages, ever.