Calcolatore e validatore di Codice Fiscale (Italia)

Inserisci i codici fiscali per controllarli in lotto e decodifica sesso, data di nascita e luogo o compila i dettagli per calcolarne uno.

Funziona nel tuo browser. I tuoi file non lasciano mai il dispositivo. Scopri come verificarlo

…

Come si usa

  1. 1
    Incollare codici

    Un codice fiscale per riga da convalidare.

  2. 2
    Leggi i dettagli

    Sesso, data di nascita, luogo e omocodia.

  3. 3
    O calcolare

    Compila il cognome, nome, data di nascita, sesso e luogo.

  4. 4
    Generare

    Premere il pulsante per creare il codice.

  5. 5
    Esportazione

    Scarica i risultati in CSV.

Informazioni su questo strumento

The codice fiscale is the Italian tax code assigned to every person by the Agenzia delle Entrate. It has 16 characters: three letters from the surname, three from the name, two digits for the year of birth, a letter for the month, two digits for the day (plus 40 for women), a four-character code for the municipality or foreign country of birth, and a check character. When two people would get the same code, digits are replaced by letters (omocodia). This tool calculates codes and validates them in batch.

Who this is for

Foreigners moving to Italy, HR and payroll staff, developers validating forms, and anyone checking a code.

How the letters are chosen

For the surname, take the consonants in order, then the vowels, then X if needed, up to three letters. For the name, if there are four or more consonants, take the first, third and fourth; otherwise as for the surname. Accents and spaces are ignored.

Birth date and sex

The year uses its last two digits. The month uses a letter: A January, B February, C March, D April, E May, H June, L July, M August, P September, R October, S November, T December. The day is written with two digits; for women, 40 is added, so a woman born on the 1st has 41.

Place of birth

The place is the Belfiore code of the municipality, such as H501 for Rome or F205 for Milan, or a Z code for a foreign country, such as Z112 for Germany. The tool lists the main cities and countries; you can type any code.

The check character

The last letter is calculated from the first 15 characters with a table of values for odd and even positions; the sum modulo 26 gives the letter. A single typing error almost always changes it.

Omocodia

If two people share the same first 15 characters, the Agenzia replaces digits with letters, starting from the right: 0 becomes L, 1 M, 2 N, 3 P, 4 Q, 5 R, 6 S, 7 T, 8 U, 9 V. The validator accepts and decodes these codes.

Only the official code counts

A calculated code is only a guess: the official code is the one on your health card (tessera sanitaria) or the certificate from the Agenzia. Foreigners must request it at an office or a consulate, and the assigned code may differ if omocodia applies.

Batch use

Paste codes one per line to check them all, decode the details and export the results.

Worked example

Mario Rossi, born on 10 December 1985 in San Giuliano Terme (A562), has the code RSSMRA85T10A562S: RSS from Rossi, MRA from Mario, 85, T for December, 10 and the check letter S. Changing the last letter to X makes it invalid.

Limits

A format and check calculation. Only the Agenzia delle Entrate assigns official codes.

Esempio svolto

Mario Rossi, nato il 10 dicembre 1985 a San Giuliano Terme, ha il codice fiscale RSSMRA85T10A562S.

In breve

Domande frequenti

Come viene calcolato il codice fiscale?

Da cognome, nome, data di nascita, sesso e luogo di nascita.

Perché le donne hanno un giorno dopo i 40?

40 viene aggiunto al giorno di nascita per le donne.

Che cos' è l' omocodia?

Sostituire le cifre con lettere quando due persone avrebbero lo stesso codice.

E' ufficiale un codice calcolato?

No, solo il codice assegnato dall'Agenzia delle Entrate è ufficiale.

Quale codice si usa per le persone nate all'estero?

Un codice Z per il paese, come Z112 per la Germania.

I miei dati sono archiviati?

No, rimane nel tuo browser.

Completamente gratisNessun costo, nessuna registrazione
I file restano privatiTutto funziona nel tuo browser
Facile nella tua linguaDisponibile in molte lingue