Codice Fiscale Algorithm — D.M. 12/03/1974
Structure: SSS NNN YY M DD CCCC X SSS = 3 chars from surname (consonants first, then vowels, then X) NNN = 3 chars from first name (if 4+ consonants: 1st, 3rd, 4th) YY = last 2 digits of birth year M = month letter (A-T, excluding some) DD = birth day (women: day + 40) CCCC = Belfiore code: municipality (Italian) or country (Z***) X = check digit (mod 26 on positions 1-15) Month codes: A=Jan B=Feb C=Mar D=Apr E=May H=Jun L=Jul M=Aug P=Sep R=Oct S=Nov T=Dec Example: Mario Rossi, born 15 January 1990, Rome Surname: RSS (R, S, S from Rossi) Name: MRA (M, R, A from Mario) Year: 90 Month: A (January) Day: 15 (male, no +40) Rome code: H501 Result: RSSMRA90A15H501 + check digit K
Code 39 Barcode — Tessera Sanitaria
The Italian health card (tessera sanitaria) encodes the codice fiscale as a Code 39 barcode (ISO/IEC 16388). This calculator is the only free web tool that generates the barcode SVG ready for printing — useful for HR departments, professional studios, and document management systems.
5 Calculation Modes
- Direct — generate CF from personal data
- Inverse — decode an existing CF into birth date, sex and municipality
- Verify — validate the check digit of any codice fiscale
- Omocodia — generate all 7 progressive homocode variants
- Batch CSV — bulk calculation from file, ideal for accountants and HR
Foreign Country Codes (selected)
| Country | Belfiore code | Country | Belfiore code |
|---|---|---|---|
| France | Z110 | United Kingdom | Z114 |
| Germany | Z112 | Spain | Z131 |
| USA | Z404 | Canada | Z401 |
| Romania | Z129 | Ukraine | Z138 |
| India | Z222 | China | Z210 |
| Brazil | Z602 | Morocco | Z330 |
| Switzerland | Z133 | Albania | Z100 |
Free REST API and Embeddable Widget
The calculator is also available as a free REST API (POST endpoints for calculation, verification and inverse lookup) and as an embeddable widget for any website. Ideal for professional studios, patronati, management software and HR portals.