Compute an Italian codice fiscale from real input: first name, last name, gender, birth date, and place of birth. For births in Italy you must also supply province and municipality so the correct Belfiore code can be resolved from the official registry.
Encoding algorithm
The 16-character code is assembled in order:
- Characters 1β3 (surname) β extract consonants in order, then vowels; pad with
Xto reach three letters. - Characters 4β6 (first name) β with four or more consonants, take positions 1, 3, and 4; otherwise follow the surname rule.
- Characters 7β8 (year) β last two digits of the birth year.
- Character 9 (month) β letter
AβLmapping to months 1β12 (letterIis skipped). - Characters 10β11 (day) β two-digit day; add 40 for female gender before zero-padding.
- Characters 12β15 (place) β four-character Belfiore code for Italian municipalities, or the foreign-country code when birth occurred abroad.
- Character 16 (check) β control letter computed from the first 15 characters using the standard odd/even weighting table.
When to use it
Helpful when double-checking a manually typed code, building onboarding flows, or learning how name and birth-data rules map to each segment of the identifier.
Limitations
The calculator reproduces the formatting algorithm only. It cannot confirm that a code was actually assigned by Agenzia delle Entrate or that the person exists in civil records. Names with rare characters, transliteration edge cases, or historical municipality mergers may differ from official assignments.
Legal disclaimer
This tool does not replace official government services. For legal, tax, or employment purposes, always verify fiscal codes through authorized channels. Generated or calculated codes must not be presented as proof of identity.
Example
For example, enter the default sample values on the form and compare the output with a known reference; adjust one input at a time to see how the result changes.