A practical reference to VATIN structures across the EU, plus the difference between a format check and a real validity check.
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.
| Country | Format | Check digit |
|---|---|---|
| Austria | ATU + 8 digits | MOD 97 |
| Belgium | BE0 + 9 digits | MOD 97 |
| France | FR + 2 key chars + 9-digit SIREN | SIREN key |
| Germany | DE + 9 digits | legacy algorithm (not reproduced here) |
| Italy | IT + 11 digits | MOD 97 |
| Netherlands | NL + 9 digits + B01 | not reproduced here |
| Spain | ES + 1 letter/digit + 7 digits + 1 check char | not reproduced here |
| Sweden | SE + 12 digits | MOD 97 |
Our validator covers all 27 member states plus the UK, Norway and Switzerland, applying a checksum only where a reliable public rule exists.
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.
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.