A VAT number is the identifier a business uses for value-added tax across the European Union. Each member state has its own format — different lengths, prefixes, and in some cases a check digit that must satisfy a published algorithm. When testing tax, invoicing, or checkout tools you need values that look right structurally. This tool generates fictional, correctly-formatted VAT numbers per country, with a valid check digit where the country defines one. They are for testing only and are not registered to any business.
How it works
Every EU VAT number begins with a two-letter ISO country code, followed by the national number. The generator:
- Reads the country you select and looks up its exact format — length and any structural quirks.
- Fills the national portion with random digits.
- For countries with a deterministic public check digit (for example Germany’s modulus-11 routine and the Netherlands’ modulus-11 over nine digits), it computes and appends the correct final digit so the number passes a local format validation.
The country prefix is then prepended to produce the complete VAT identifier.
Tips and notes
- These numbers are designed to pass format validation but to fail a registry lookup against the EU VIES service — ideal safe test data.
- Use a country with a known check-digit rule (such as DE or NL) when you want to verify your own check-digit validator.
- Generate a batch to populate fixtures or a CSV in one pass.
- Everything runs locally with no API call, so you can generate as many as you need.