← VAT Validator

EU VAT number formats by country — and how to validate one

A practical reference to VATIN structures across the EU, plus the difference between a format check and a real validity check.

A VAT number that looks correct can still be unregistered, cancelled or fake. Format validation is a first filter, not proof of validity. For authoritative confirmation use VIES.

What is a VAT number (VATIN)?

A VAT identification number is the unique identifier a tax authority assigns to a business registered for VAT. In the EU it starts with a two-letter country code and is followed by 8–12 characters whose structure is defined nationally. It is used on invoices, in cross-border B2B transactions, and in the reverse-charge mechanism.

Format reference (selected countries)

CountryFormatCheck digit
AustriaATU + 8 digitsMOD 97
BelgiumBE0 + 9 digitsMOD 97
FranceFR + 2 key chars + 9-digit SIRENSIREN key
GermanyDE + 9 digitslegacy algorithm (not reproduced here)
ItalyIT + 11 digitsMOD 97
NetherlandsNL + 9 digits + B01not reproduced here
SpainES + 1 letter/digit + 7 digits + 1 check charnot reproduced here
SwedenSE + 12 digitsMOD 97

Our validator covers all 27 member states plus the UK, Norway and Switzerland, applying a checksum only where a reliable public rule exists.

How the MOD 97 check works

Many EU VAT numbers use the ISO 7064 MOD 97-10 algorithm: strip the country prefix, treat the remaining digits as a number, and check that it leaves remainder 1 when divided by 97. This catches random typos and transpositions. It does not verify that the number was ever issued. France uses a related rule on the SIREN: (12 + 3 × SIREN) mod 97 = key.

Format check vs. VIES validity

Think of it as three levels:

For invoicing, always do the third check on the counterparty's number before applying a reverse charge or claiming an intra-community supply exemption.