Skip to content
permesso.love

Codice fiscale (tax code) for foreigners

What a codice fiscale in Italy is, how to get one for free (even without a permesso) and how to decode the 16-character tax code - foreigner's guide.

Author: permesso.love editorial team- updated - 9 min read- how we verify


In short

The in Italy is the country's personal tax code - a 16-character string of letters and digits, similar to a TIN, that identifies you to the tax office, banks, employers and public services. It is free: you do not buy it, the Agenzia delle Entrate (or an Italian consulate) issues it. This is an overview based on community experience, not legal advice; the procedure depends on where you apply, so verify the details on official sources. Below: what it is, how to get a codice fiscale (including without a residence permit) and how to decode a code you already have.

Did this answer help?

You can estimate your own code by the official algorithm - and see what each part means - in the tool:

In brief: community data

  • It is free: per the community you do not pay for the codice fiscale itself - the Agenzia delle Entrate issues it at no charge, and a consulate abroad usually issues it free too.
  • 16 characters, generated from your data: per the community the code is built from your surname, name, date of birth, sex and place of birth - it is not random, so it can be reconstructed from your passport data.
  • Get it before you deal with anything else: per the community you are asked for a codice fiscale almost everywhere - bank, SIM, lease, work contract, - so people request it as early as possible, often before arrival.
  • The issued document is what counts: per the community a computed or consular code can differ from the official one (transliteration, country-of-birth code, omocodia), so always verify against the certificate from the Agenzia delle Entrate.

Timing and procedure depend on the office and the consulate; verify the current details on agenziaentrate.gov.it. This is not legal advice.

What it is and who needs it

The codice fiscale (literally "fiscal code") is the Italian tax identifier assigned to every person who interacts with the country's administration - citizens and foreigners alike. Unlike a residence permit, it says nothing about your immigration status: it is purely an identifier, and having one gives you no right to live in Italy. But without it you cannot take almost any practical step.

In day-to-day life a codice fiscale is requested to:

  • open a bank account or use a fintech app;
  • buy a SIM card and sign phone, internet or utility contracts;
  • rent a home and register the lease (contratto di locazione);
  • sign a work contract, register a Partita IVA or receive an invoice;
  • enrol children in school and register with the public health service ().

Every family member gets their own code, children included. Because it is used so widely, most people try to obtain it as one of the very first steps - see the practical order in the article on codice fiscale, residenza and the tessera sanitaria.

Think of the codice fiscale as the key that unlocks every other door - the bank, the SIM, the lease. It is not a permit and it decides nothing about your status, but until you have it you are stuck at the first step.

community member, rephrasedpersonal opinionA retelling of messages from the community chats, not a verbatim quote. Personal experience, not legal advice.

How to get one - the routes

According to the community there are roughly four ways to obtain a codice fiscale, and which one fits depends on whether you are still abroad or already in Italy. All of them lead to the same 16-character code; the code itself is free, though a CAF or patronato may charge a small service fee for filing.

  • At an Italian consulate abroad. Before you move, many consulates issue the codice fiscale on request - often by email within a few days, sometimes as a plastic card. This lets you arrive with the code already in hand. Verify the procedure and forms on esteri.it.
  • At an Agenzia delle Entrate office in Italy. In person at a tax office you file the request form (Mod. AA4/8 for individuals) with your passport and, if relevant, your visa and the of your permit application. The certificate is usually issued the same day. Waits at the counter vary by city and season.
  • Online or via a delegate. In some situations the request can be sent by certified email or handled by a delegate (for example an employer, landlord or lawyer with a power of attorney). The exact online options change - verify current channels on agenziaentrate.gov.it.
  • Through a CAF or patronato. These assistance centres will copy your passport, fill in the form and send the request to the Agenzia delle Entrate for you, often quickly and by appointment. They may charge a service fee, though in some regions the service is free.

Waiting times and any fees are community-reported and change; confirm them for your office. If you are already in Italy on a D visa and the ricevuta but do not yet have the permit, the detailed path (and the legal basis for it) is covered in the codice fiscale and residenza article.

Without a permesso: on a tourist visa or before you move

A frequent question is whether you need a residence permit first. According to the community you do not: the codice fiscale is an identifier, not a right to stay, so you can usually get one without a . Two workable options:

  • an Italian consulate in your country of residence - requested before any trip, often by email, with no visa in hand;
  • an Agenzia delle Entrate office in Italy - with your passport, form Mod. AA4/8 and a clear reason for the request (for example a lease, a bank account, a transaction, studies, an inheritance).

According to the community, with a tourist or short-stay Schengen visa the counter sometimes digs in and sends you to the . It helps to explain the reason calmly and, if they refuse verbally, to ask for a reasoned (written) refusal citing the rule - after that the question is often resolved. Practice varies by office, so verify the current procedure and the list of documents on agenziaentrate.gov.it. This is not legal advice and not a guarantee of the outcome.

Decoding a codice fiscale: what the code contains (codice fiscale inverso)

The reverse direction - reading a code you already have and working out which data is embedded in it - is what Italian services call codice fiscale inverso, the reverse decode. It works because the codice fiscale is not random: it is generated from your personal data by a fixed algorithm, so the code can be read like a small barcode. It always has 16 characters in this order:

  • 3 letters - surname: consonants first, then vowels, padded with X if there are too few.
  • 3 letters - first name: with 4 or more consonants the 1st, 3rd and 4th are taken; otherwise it follows the same rule as the surname.
  • 2 digits - year of birth: the last two digits.
  • 1 letter - month of birth: A B C D E H L M P R S T stand for January through December.
  • 2 digits - day of birth and sex: the day of the month for men; for women 40 is added to the day (so a day above 31 signals a woman).
  • 4 characters - place of birth (Belfiore code): a country Z-code for people born abroad, or the cadastral code of the Italian comune for those born in Italy.
  • 1 letter - control character: computed from all the previous characters with the standard odd/even tables and mod 26, as a checksum.

A reverse-decode example. Take the synthetic textbook code RSSMRA85M01H501Z (this is not a real person - it is the classic "Mario Rossi" placeholder used in Italian documentation) and read it part by part:

  • RSS - surname consonants (Rossi);
  • MRA - first-name letters (Mario);
  • 85 - born in 1985;
  • M - born in the eighth month, August;
  • 01 - born on the 1st; the value is under 40, so this is a man;
  • H501 - the Belfiore code of the birthplace, here the comune of Rome;
  • Z - the control character.

You can plug your own details into the calculator above to see the same breakdown for your data. Keep in mind that a computed code can differ from the official one - the Agenzia delle Entrate is the only authority that assigns the valid codice fiscale.

For foreigners: nuances

A few points trip up people born abroad more often than Italians; know them in advance.

  • Transliteration must match your passport. The surname and first-name letters are taken from the Latin spelling in your travel document. If a bank, employer or comune uses a different transliteration, the generated code will not match your official one - so always give your name exactly as it appears in the passport, and keep the issued certificate to settle any dispute.
  • The USSR-vs-Russia country code (135 vs 154). For people born in the former USSR the community reports a recurring problem: 135 is the correct country-of-birth code for "born in the USSR", while 154 (Russia) is sometimes entered by mistake. A wrong code can stall the issuance of a permit and send the case to Rome; it is corrected through the comune, which has priority. This is covered in depth in the codice fiscale and residenza article.
  • You need it for everyday contracts. As above, banks, mobile operators, landlords and employers all ask for the codice fiscale. A paper Certificato di attribuzione del codice fiscale with the tax office's stamp is usually accepted where a plastic card is requested.
  • Temporary protection (Ukrainian citizens included). According to the community there is no separate route for temporary protection holders: the codice fiscale is requested in the same place, at the Agenzia delle Entrate, with the passport and the document proving the status (the permesso or the ricevuta), or through a consulate before arrival. Who is eligible and on what basis depends on the current rules - verify them on agenziaentrate.gov.it. The country-of-birth nuance above also applies to anyone born in the USSR, whatever their present citizenship.

The one thing I would tell anyone born in the former Soviet Union: check the country-of-birth code on your certificate. If it says 154 instead of 135, sort it out early through the comune - it is far cheaper than untangling a blocked permit later.

community member, rephrasedpersonal opinionA retelling of messages from the community chats, not a verbatim quote. Personal experience, not legal advice.

Official sources

See also: registering a newborn and the baby's codice fiscale.

Frequently asked questions

What is an Italian codice fiscale?

The codice fiscale is Italy's personal tax code - a 16-character string of letters and digits (like a TIN) generated from your surname, first name, date of birth, sex and place of birth. It identifies you to the tax office, banks, employers and public services. This is an overview based on community experience, not legal advice; verify current details on agenziaentrate.gov.it.

How much does a codice fiscale cost?

According to the community the codice fiscale is free - the Agenzia delle Entrate issues it at no charge, and an Italian consulate abroad usually issues it free too. A CAF or patronato may charge a small service fee for filing on your behalf, but the code itself is not something you buy. Verify current details on agenziaentrate.gov.it - this is not legal advice.

How can a foreigner get a codice fiscale?

According to the community there are four common routes: through an Italian consulate before you move, in person at an Agenzia delle Entrate office in Italy (form Mod. AA4/8), online or via a delegate, or through a CAF/patronato. The right route depends on whether you are still abroad or already in Italy. Verify the current procedure on agenziaentrate.gov.it and esteri.it - this is not legal advice.

Can I get a codice fiscale without a permesso, on a tourist visa?

According to the community usually yes: the codice fiscale is an identifier, not a right to stay, so it is issued without a residence permit too - through an Italian consulate abroad or at an Agenzia delle Entrate office when the request has a clear reason (a contract, a bank account, a transaction, studies). The counter may ask you to justify the request; if they refuse verbally, the community says asking for a reasoned written refusal helps. Practice varies by office - verify the current procedure on agenziaentrate.gov.it; this is not legal advice and not a guarantee.

What does a codice fiscale like RSSMRA85M01H501Z mean?

RSSMRA85M01H501Z is a synthetic textbook example. It decodes as: RSS = surname consonants, MRA = first-name letters, 85 = birth year, M = birth month (August), 01 = birth day (a man; women have 40 added to the day), H501 = the Belfiore code of the place of birth (here Rome), and Z = the control character. Your real code is the one issued by the Agenzia delle Entrate.

Can I calculate my codice fiscale online?

You can estimate it with our unofficial calculator, which follows the official algorithm and explains each part, but the only valid codice fiscale is the one issued by the Agenzia delle Entrate. According to the community a computed code can differ from the official one because of transliteration, the country-of-birth code, or omocodia. Always verify against your issued document.

Do I need a codice fiscale to open a bank account or get a SIM in Italy?

According to the community yes - a codice fiscale is asked for almost everywhere: to open a bank account, sign a phone or utility contract, rent a home, sign a work contract or register a Partita IVA. Getting it early makes the other steps much smoother. Verify current details on agenziaentrate.gov.it - this is not legal advice.

What do I need to bring to my codice fiscale appointment?

The completed and signed form AA4/8 and one document: a non-EU citizen can use a valid passport with a visa (where one is required), an identity certificate with photo issued by their country's consulate in Italy, a valid permesso di soggiorno or a comune carta d'identità. A foreigner's first codice fiscale is issued only at an in-person appointment, because the office has to identify you. Once the code is assigned you get a certificato di attribuzione, which you use until the tessera sanitaria or the tesserino arrives by post. Source: the page 'Il codice fiscale - che cos'è e come si ottiene' on agenziaentrate.gov.it, checked 05.10.2026.

How do I fill in form AA4/8 for a codice fiscale?

Following the Agenzia delle Entrate instructions: in section A tick D if you apply for yourself, and request type 1 (assignment of a code). Section B is mandatory: surname and first name in full, in block capitals, as in your ID, without special characters (Müller is written Mueller); place of birth - the name of the country, and EE in the province box; the date in digits (7 March 2010 = 07 03 2010). Section C: residents of Italy give their residenza, non-residents their domicilio fiscale if they have one; non-residents must fill in section D (address abroad). List the attached documents, add the date and sign - an unsigned form is void. Source: 'Istruzioni per la compilazione' of form AA4/8 on agenziaentrate.gov.it, checked 05.10.2026.

What if my codice fiscale or my card shows wrong data?

Wrong data on the tessera sanitaria is corrected by your comune if you are registered in ANPR (you have a residenza); if not, by any Agenzia delle Entrate office on presentation of a valid ID. Errors on the plastic tesserino del codice fiscale are fixed at an Agenzia office by appointment. If your data produce the same code as another person's (omocodia), the agency assigns you a new code; the Verifica codice fiscale service checks that a code is valid and matches the personal data. Source: the FAQ of the 'Codice fiscale e tessera sanitaria' section on agenziaentrate.gov.it, checked 05.10.2026.

Next stepCodice fiscale calculatorAlgorithm + breakdown

Documents for this topic