Italian tax code and VAT number generator

Generate test Italian tax codes (codici fiscali) and VAT numbers (partite IVA): formally valid but made up. For each tax code you get first name, surname, sex, date and place of birth consistent with the code. Choose how many to generate, filter by sex, date or municipality and, if needed, apply homocode substitution (omocodia). With a seed you always get the same results.

These are made-up codes, for testing only: they have the right format and check digits, but belong to nobody. Do not use them for official purposes, to sign up for services or to pose as another person.

Your data stays on your computer. Files are processed in your browser and are never uploaded.

Seed in use:

If you enter an exact date, the year range is ignored.

Press “Generate again” to get new codes.

What is valid and what is not

The tax code is calculated with the official rules on the fake data in the row, and the VAT number has the correct check digit. A formal check accepts them, but they do not exist: no office knows them, and the VIES service or the Agenzia delle Entrate would report them as non-existent.

The seed

With the same seed and the same options you always get the same results, even on another computer: useful for repeatable tests. The share link keeps the options and the seed, never the generated codes. If you leave the seed empty a random one is chosen, which you can fix with the button.

Privacy

Everything happens in your browser: generated codes are neither sent nor saved. The list of municipalities is a file on this site, downloaded only if you choose a place.

Keyboard shortcuts

In this tool

This tool has no keyboard actions.

Everywhere

Open this panel (outside text fields)
?
Closes panels and menus, never clears data
Esc
Search for a tool
/ or CtrlK

How to use it

  1. Choose “Tax code” or “VAT number” and set how many codes you want (from 1 to 1000).
  2. For the tax code you can filter by sex, exact date or range of years of birth, and Italian municipality or foreign country of birth; turn on homocode substitution if you need a code with letters in place of digits. For the VAT number choose the provincial office and whether you want the IT prefix.
  3. Optional: enter a seed to always get the same results. Press “Generate again” to get new ones.
  4. Copy a single value with the button next to it, copy all, download CSV or JSON, or use “Send to…” to check them with the validator.

Frequently asked questions

Are the generated codes real?

No. They have the right format and check character, so they pass a formal check, but they are made up: first name, surname and date are fake and do not match any person. They are meant for testing forms, imports and test databases. They must not be used for official purposes, to sign up for services or to pose as another person.

How is a random but consistent tax code generated?

The tool picks a fake first name, surname, sex, date and place of birth and calculates the code with the official rules: three letters from the surname, three from the first name, year, month letter, day (plus 40 for women), the municipality’s cadastral code and a check character. That is why every row shows data that matches the code.

What is a homocode (omocodia) and why generate one?

When two people would have the same code, the Agenzia delle Entrate replaces some digits with letters (L M N P Q R S T U V). Software developers often forget these cases: generating a homocode is useful to check that your validation accepts them. The level says how many digits are replaced, from 1 to 7.

How do I generate a test VAT number?

It is eleven digits: seven of sequence number, three of the provincial office code and one check digit calculated with the Luhn algorithm. You can pick the office from the list of historical province codes or leave it random, and add the IT prefix.

Why is there no individual or company option?

Because in Italy the VAT number does not distinguish them: it has the same format for sole traders, professionals and companies. What changes is the holder’s tax code (16 characters for individuals, 11 digits for many companies), which is not at issue here.

Do I get the same codes with the same seed?

Yes, with the same options (quantity, filters, homocode, office and prefix). The share link contains the options and the seed, never the codes.

Privacy

Everything happens in your browser: no code is sent to a server or saved.

Tool chains

Link several tools into a path: after using a tool, “Send to…” offers the next step first. Saved chains keep only a name and the tools, never your data.

Saved chains

No saved chains.

New chain