codice fiscale calculator

Generate Your Italian Codice Fiscale

Enter personal details exactly as they appear in official documents. The calculator generates the standard 16-character fiscal code format.

Format: 1 letter + 3 digits (example: H501). For births abroad, use the relevant foreign state code (Z###).

What is the Codice Fiscale?

The codice fiscale is Italy’s tax identification code used by citizens, residents, and many non-residents interacting with public offices, healthcare services, banks, employers, and schools. It is a 16-character alphanumeric string generated from personal data: surname, name, date of birth, gender, and place of birth, plus a final control letter.

While it often looks random at first glance, each section has a precise meaning. That structure is exactly what this calculator follows.

How this calculator builds the code

1) Surname and name blocks

  • Surname (3 chars): consonants first, then vowels, then X fillers if needed.
  • Name (3 chars): same principle, but if the name has 4+ consonants, characters 1, 3, and 4 are used.

2) Date and gender block

  • Year: last two digits.
  • Month: represented by a letter (A, B, C, D, E, H, L, M, P, R, S, T).
  • Day: day of month for males; day + 40 for females.

3) Place of birth code

The next 4 characters come from the official codice catastale of the city (or foreign country code for births abroad). This calculator expects that code as input so results can be generated instantly.

4) Control character

The final character is a checksum letter computed from the first 15 characters using official odd/even position conversion tables. This catches many typing errors.

Important notes and limitations

  • This tool follows standard generation rules and is ideal for learning, pre-filling forms, and quick checks.
  • It does not implement every institutional edge case (for example, assigned omocodia substitutions).
  • For legal or administrative certainty, always verify with official Italian authorities (Agenzia delle Entrate or local offices).

Common mistakes when calculating manually

  • Using the wrong month letter (for example confusing June and July mappings).
  • Forgetting +40 on day value for female entries.
  • Entering an incorrect birthplace code.
  • Ignoring accent normalization and special characters in names.
  • Miscalculating the final control letter.

Quick example

Suppose we use: surname Rossi, name Marco, date 1985-01-12, gender Male, and city code H501 (Rome). The calculator combines all blocks, computes the checksum, and returns the complete 16-character codice fiscale.

FAQ

Can two people share the same codice fiscale?

Very rarely, base data may collide. In those cases, authorities can apply omocodia rules to distinguish records.

Do I need to enter accents?

You can, but this calculator normalizes accented characters automatically before processing.

Is this a substitute for official registration?

No. It is a practical calculator. Official assignment and validation remain with competent public institutions.

🔗 Related Calculators