European tax ID generator

Generate test tax identification numbers for 24 European countries, with each country's structure and check digit. Everything happens in your browser.

Generated number
Press Generate to create a number

Generated numbers are test data: they do not belong to real people, although one may match an existing number by chance.

Nothing is stored or sent to any server.

Every European country has its own tax or personal identification number, each with a different format: the German Steuerliche Identifikationsnummer, the Italian codice fiscale, the Swedish personnummer or the Dutch BSN. Many include a check digit calculated with a public algorithm, and others derive the number from the date of birth and gender. This tool generates one test number per click for 24 countries, with the correct structure and, when the algorithm can be verified, a valid check digit. For countries without a verifiable check it generates the format only and warns you. The numbers are test data and do not belong to real people. Everything is calculated in your browser, so nothing is sent or stored anywhere.

How to use it

  1. Choose the country in the selector, which is sorted by name in your language.
  2. Click Generate to create a test number with that country's structure.
  3. Read the document name and, if the country is format only, the notice next to the result.
  4. Click Copy to take the number as shown, or Generate to get another one.

Frequently asked questions

Which countries are included?
Twenty-four European countries, including Germany, Italy, the Netherlands, Poland, Portugal, the United Kingdom, Romania and Sweden. Spain has its own tool.
Do the numbers have a correct check digit?
In 19 countries they do, calculated with each country's public algorithm and cross-checked with an open implementation. For Denmark, Hungary, Luxembourg, Malta and the United Kingdom only the format is generated, and the tool says so.
Why do some numbers contain a date?
Countries such as Belgium, Bulgaria, Estonia, Finland, Italy or Sweden embed the date of birth and gender. The generator picks an adult date and a random gender.
Is my data sent to a server?
No. Everything is generated in your browser with no network requests, and nothing is stored or added to the URL.

Related tools