Codice Fiscale Generator
GeneratorGenerate valid Italian Codice Fiscale (tax code) numbers for testing. Enter surname, first name, birth date, gender, and birthplace to derive a correctly structured 16-character code. Runs entirely in your browser.
⚠ For testing purposes only. This code is not registered with the Agenzia delle Entrate.
About this tool
About Codice Fiscale Generator
The Codice Fiscale is Italy's 16-character tax code, issued by the Agenzia delle Entrate to every citizen and resident. It's built entirely from the person's surname, first name, birth date, gender, and place of birth using a fixed, publicly documented algorithm — no lookup database is required to compute it.
The generator extracts 3 letters from the surname and 3 from the first name using the official consonants-first rule (with a special 1st/3rd/4th-consonant rule when a first name has 4 or more consonants), encodes the birth year, a letter for the birth month, and the day of birth (with +40 added for female), appends a 4-character birthplace code, and computes the 16th check character using the official Modulo-26 odd/even position algorithm.
Useful for testing Italian tax, banking, healthcare, or e-commerce systems that collect a Codice Fiscale, generating realistic sample data for QA, or understanding how the code is structured before implementing your own validation.
Instant generation with the exact official algorithm, verified against a published worked example. All computation happens in your browser — no data is ever sent anywhere.
Key Features
- Official surname/first-name letter-extraction rules
- Correct month-letter table and female (+40) day offset
- Verified Modulo-26 check character calculation
- Dropdown of major Italian cities with correct Belfiore codes
- Manual birthplace code entry for any other comune
- 100% browser-based, no data leaves your device
FAQ
Codice Fiscale Generator — Frequently Asked Questions
What is a Codice Fiscale?
The Codice Fiscale is Italy's 16-character tax identification code, issued by the Agenzia delle Entrate. It's required to open a bank account, sign a lease, get a SIM card, register for healthcare, or start a job in Italy. Unlike many countries' ID numbers, it is computed directly from your name, birth date, and place of birth using a public algorithm.
How are the surname and first name letters chosen?
For the surname, the first 3 consonants (in order) are used; if there are fewer than 3 consonants, vowels fill the remaining slots, then 'X' pads any leftover space. The first name follows the same rule, except that if the first name has 4 or more consonants, the 1st, 3rd, and 4th consonants are used (the 2nd is skipped) — this is the algorithm's most commonly misunderstood rule.
Why does the birthplace need a code, not a city name?
Each Italian comune (and each foreign country) has a unique 4-character 'Belfiore' cadastral code — 1 letter followed by 3 digits, e.g. H501 for Roma. This generator includes a dropdown of major cities with verified codes, plus a manual entry option for any other comune.
Are generated Codice Fiscale numbers real?
The output follows the exact official structure and passes the official check-character algorithm, but it is not registered with the Agenzia delle Entrate. Use it for testing and development only, not as a real identification document.
Tips
- Compound names and surnames are handled by ignoring spaces before extracting letters
- Female birth dates automatically get +40 added to the day (e.g. day 5 becomes 45)
- Use the random fill button to quickly get realistic Italian test data
- Validate your generated code with the Codice Fiscale Validator tool
Explore more
Related Tools
Other tools that might be useful for your workflow