EU VAT number validator
When you trade across the EU you need to put the right VAT number on invoices, and the format differs in every member state. This tool checks the structure of a VAT number — the country prefix, expected length and character pattern — for all 27 EU countries, so you can catch a malformed number before it reaches an invoice or a VIES lookup. It is ideal for finance teams, e-commerce checkout validation, and developers.
How it works
The validator reads the 2-letter country prefix, looks up that member state’s documented rule, and tests the body (everything after the prefix) against a precise pattern. For example:
- DE (Germany) — exactly 9 digits.
- AT (Austria) —
Ufollowed by 8 digits. - NL (Netherlands) — 9 digits, then
B, then 2 digits. - FR (France) — 2 control characters then 9 digits.
- EL (Greece) — 9 digits, using the prefix EL, not GR.
A passing result means the number is well-formed. The tool deliberately performs no VIES network call, so it cannot tell you whether the number is actually registered.
Example
Enter DE123456789:
- Prefix
DE→ Germany, rule “9 digits”. - Body
123456789is exactly 9 digits → Valid format.
Enter GR123456789 and it is rejected, because Greek VAT numbers use the prefix EL.
Selected EU VAT formats (body after the prefix)
| Country | Prefix | Format |
|---|---|---|
| Germany | DE | 9 digits |
| France | FR | 2 chars + 9 digits |
| Italy | IT | 11 digits |
| Spain | ES | 8 chars + 1 control |
| Netherlands | NL | 9 digits + B + 2 digits |
| Austria | AT | U + 8 digits |
| Poland | PL | 10 digits |
| Greece | EL | 9 digits |
Privacy: every check runs locally in your browser and the number never leaves your device. To confirm a number is genuinely registered, use the official EU VIES service.