calcolihoreca

Free calculators for restaurants, bars and pizzerias. Results are operational estimates and do not replace professional tax, legal, health or technical advice.

Food cost calculatorCocktail cost calculatorBlood alcohol calculatorPizza dough calculatorBreak-even calculatorBMI calculatorPercentage calculatorItalian tax codeAll calculatorsBar gamesBlogAuthorsAbout usEditorial policyContactPrivacyCookieTerms
Made in Italy
$calcoli·HoReCaFree · fast · no sign-up
Food CostMarginsBar & CocktailPizzaPastaStaff & HREventsCoffee
Home/Useful Tools

Useful Tools

Italian Tax Code Calculator — Codice Fiscale with Barcode

Generate, validate and decode your Italian Codice Fiscale (fiscal code / tax identifier). Unique: generates Code 39 barcode for tessera sanitaria. Works for Italian citizens and foreigners born abroad. 7,900+ municipalities (including historic/suppressed), 150+ country codes. Runs entirely in your browser.

Updated: May 2026
No registration Instant calculation Data stays in browser
Selected Belfiore code: H501

Codice Fiscale

StatusEnter surname and first name
150 persone trovano utile questo calcolatore

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)

CountryBelfiore codeCountryBelfiore code
FranceZ110United KingdomZ114
GermanyZ112SpainZ131
USAZ404CanadaZ401
RomaniaZ129UkraineZ138
IndiaZ222ChinaZ210
BrazilZ602MoroccoZ330
SwitzerlandZ133AlbaniaZ100

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.

Example: Foreign Worker in Italian HoReCa

A Romanian chef (cuoco) wants to sign a seasonal employment contract under CCNL Pubblici Esercizi. They need their Codice Fiscale before the employer can register the contract with INPS.

  • Name: Andrei Ionescu
  • Born: 22 March 1990, Romania
  • Country code: Z129 (Romania)

Calculation:

  • Surname (Ionescu): NSC (consonants: N, S, C)
  • First name (Andrei): NDR (consonants: N, D, R)
  • Year: 90
  • Month March: C
  • Day 22 (male): 22
  • Country: Z129
  • Result: NSCNDR90C22Z129 + check digit

The Code 39 barcode is generated automatically and can be attached to the hiring documentation.

Example: Italian Citizen — Step by Step

Mario Rossi, born 15 January 1990 in Rome:

  1. Surname “Rossi” → consonants R-S-S → RSS
  2. Name “Mario” → consonants M-R + vowel A → MRA
  3. Year 1990 → 90
  4. Month January → A
  5. Day 15 (male) → 15
  6. Rome Belfiore code → H501
  7. Check digit (mod 26) → K
  8. Result: RSSMRA90A15H501K
Tax disclaimer

For information only. VAT rates, taxes and tax rules depend on the specific case and change over time: always check with your accountant and official sources.

Risposte rapide

Direct answers

What is the Codice Fiscale?
The Codice Fiscale is a 16-character alphanumeric tax identifier issued by the Italian Revenue Agency (Agenzia delle Entrate). You need it for any official activity in Italy: signing an employment contract, opening a bank account, renting an apartment, accessing the National Health Service (SSN), buying a car, or registering a SIM card.
How is the Italian fiscal code calculated?
The code is built from: 3 letters from surname (consonants first, vowels, then X padding), 3 letters from first name (same rule; if 4+ consonants, take the 1st, 3rd, 4th), 2 digits for birth year, 1 letter for birth month (A=Jan, B=Feb, C=Mar, D=Apr, E=May, H=Jun, L=Jul, M=Aug, P=Sep, R=Oct, S=Nov, T=Dec), 2 digits for birth day (women add +40), 4-character municipality code, 1 check digit.
How does the calculator work for foreigners born outside Italy?
If you were born outside Italy, use your country's Belfiore code instead of an Italian municipality code. Common codes: Z110 France, Z112 Germany, Z114 UK, Z131 Spain, Z404 USA, Z401 Canada, Z222 India, Z210 China, Z129 Romania. The calculator supports all 150+ countries via autocomplete.
What is omocodia (homocode)?
When two people have the same fiscal code, the Revenue Agency creates a variant by replacing digits with letters progressively from the rightmost position (0 to L, 1 to M, 2 to N, 3 to P, 4 to Q, 5 to R, 6 to S, 7 to T, 8 to U, 9 to V). The calculator generates all 7 progressive homocode variants.
What is the barcode Code 39 feature?
The Italian tessera sanitaria (health card) encodes the codice fiscale as a Code 39 barcode (ISO/IEC 16388). This calculator is the only free web tool in Italy that generates the barcode SVG ready for printing, useful for HR departments, professional offices, and document management.
Is this calculator official?
No. The algorithm is deterministic and correct (D.M. 12/03/1974), but the official fiscal code is the one registered by Agenzia delle Entrate. To verify an existing codice fiscale, use their official service at telematici.agenziaentrate.gov.it. The calculator is useful for self-generation and understanding the algorithm.
Quick answers

Frequently Asked Questions

What is the Codice Fiscale?

The Codice Fiscale is a 16-character alphanumeric tax identifier issued by the Italian Revenue Agency (Agenzia delle Entrate). You need it for any official activity in Italy: signing an employment contract, opening a bank account, renting an apartment, accessing the National Health Service (SSN), buying a car, or registering a SIM card.

How is the Italian fiscal code calculated?

The code is built from: 3 letters from surname (consonants first, vowels, then X padding), 3 letters from first name (same rule; if 4+ consonants, take the 1st, 3rd, 4th), 2 digits for birth year, 1 letter for birth month (A=Jan, B=Feb, C=Mar, D=Apr, E=May, H=Jun, L=Jul, M=Aug, P=Sep, R=Oct, S=Nov, T=Dec), 2 digits for birth day (women add +40), 4-character municipality code, 1 check digit.

How does the calculator work for foreigners born outside Italy?

If you were born outside Italy, use your country's Belfiore code instead of an Italian municipality code. Common codes: Z110 France, Z112 Germany, Z114 UK, Z131 Spain, Z404 USA, Z401 Canada, Z222 India, Z210 China, Z129 Romania. The calculator supports all 150+ countries via autocomplete.

What is omocodia (homocode)?

When two people have the same fiscal code, the Revenue Agency creates a variant by replacing digits with letters progressively from the rightmost position (0 to L, 1 to M, 2 to N, 3 to P, 4 to Q, 5 to R, 6 to S, 7 to T, 8 to U, 9 to V). The calculator generates all 7 progressive homocode variants.

What is the barcode Code 39 feature?

The Italian tessera sanitaria (health card) encodes the codice fiscale as a Code 39 barcode (ISO/IEC 16388). This calculator is the only free web tool in Italy that generates the barcode SVG ready for printing, useful for HR departments, professional offices, and document management.

Is this calculator official?

No. The algorithm is deterministic and correct (D.M. 12/03/1974), but the official fiscal code is the one registered by Agenzia delle Entrate. To verify an existing codice fiscale, use their official service at telematici.agenziaentrate.gov.it. The calculator is useful for self-generation and understanding the algorithm.

Do I need a Codice Fiscale to work in Italian HoReCa?

Yes. Any employment contract in Italy requires a Codice Fiscale for both employer and employee. Foreign workers in Italian bars and restaurants (common in tourism and seasonal work) must obtain their codice fiscale from the nearest Italian consulate abroad or from Agenzia delle Entrate in Italy before signing a CCNL Pubblici Esercizi contract.

What is Batch CSV mode?

Batch CSV lets you calculate or verify hundreds of codici fiscali at once by uploading a CSV file with surname, name, birth date, sex and municipality. Ideal for accountants, HR departments and payroll services managing multiple employees.

Italian version: Calcola codice fiscale
Selected Belfiore code: H501

Codice Fiscale

StatusEnter surname and first name
150 persone trovano utile questo calcolatore

Explore 3 similar calculators

BMI CalculatorWeighted Average CalculatorDays Between Dates Calculator
Next useful tools

Related calculators

Useful ToolsBMI CalculatorCalculate Body Mass Index and understand your weight category.Open calculatorUseful ToolsWeighted Average CalculatorCalculate weighted averages for grades, prices and mixed measurements.Open calculatorUseful ToolsDays Between Dates CalculatorCalculate the number of days, weeks or months between two dates.Open calculator