What does an EU VAT number validator check?
A VAT number (value added tax identification number) is the code a business uses on invoices for cross-border trade in the European Union. It starts with a two-letter country prefix and is followed by a national number whose shape and check digit differ in every member state. Germany uses nine digits, Austria a "U" plus eight digits, the Netherlands twelve characters with a "B" in the middle, and so on.
This tool checks the number itself, on your device. It reads the prefix, applies the rules of that country and tells you whether the format is right (length, allowed characters, ranges) and whether the check digit matches. When it fails, it says which of the two failed and shows the shape the country expects. It covers the 27 member states, Northern Ireland (prefix XI, which still uses VAT numbers for trade in goods with the EU) and Great Britain (GB).
What it does not do is just as important. It never contacts VIES, the European Commission service that tells you whether a number is registered and active. A number can have a perfect format and check digit and still belong to nobody, or to a business that has been deregistered. For a supplier check that has legal weight, use VIES and keep its confirmation. This page is the step before: it catches typing errors and malformed numbers in a form, a spreadsheet or an import file, without sending anything to a server.
Greece is a special case: its VAT prefix is EL, not GR. The tool accepts both and shows EL.
How to check a VAT number
- Type or paste the number with its country prefix, for example
DE136695976. The page opens with an example loaded. Spaces, dots and hyphens are fine, soDE 136 695 976works too. - If the number has no prefix, pick the country in the list. The tool adds the prefix for you.
- Read the verdict. On success you get the country, the standard form (prefix plus number without separators) and the expected shape for that country.
- On failure, read the message: it tells you whether the problem is the format (wrong length, characters or range) or only the check digit, which usually means a typo.
- Copy the standard form to use it in your records.
Examples
A valid German number
DE 136 695 976 -> DE136695976Germany: nine digits, the first not zero, with a check digit computed by the ISO 7064 mod 11,10 method. The result shows the standard form without the spaces.
A typo in the last digit
ATU13585626The format fits Austria ("U" followed by eight digits), but the check digit does not match. The message says it is the check digit, so you know to look for a transposed or wrong digit instead of a wrong format.
A format problem
AT13585627The Austrian number must start with "U" after the prefix. This one fails on the format, before any check digit is calculated.
Greece and Northern Ireland
GR094259216 -> EL094259216
XI 980 7806 84Greece is accepted with GR or EL and always shown as EL. Northern Ireland businesses use XI, and the rules are the same as for GB numbers.
| Country | Expected shape |
|---|---|
| Austria | ATU + 8 digits |
| Germany | DE + 9 digits |
| France | FR + 2 characters + 9 digits |
| Netherlands | NL + 9 digits + B + 2 digits |
| Spain | ES + letter or digit + 7 digits + letter or digit |
Common mistakes
- Forgetting the country prefix. Without it the tool cannot know which rules to apply. Type it or choose the country in the list.
- Using GR for Greece in a system that expects EL. The tool shows EL, which is what invoices use.
- Reading "valid" as "registered". Valid here means well formed with a correct check digit. Registration is confirmed only by VIES.
- Copying characters that look like digits. The letter O instead of zero, or a lower-case l instead of one, are common in copy and paste from PDFs.
- Dropping part of the number. Belgian numbers have ten digits (the old nine-digit form lacked a leading zero, which the tool adds), and Dutch numbers end in B plus two digits.
- Applying one country's rule to another. The same digits can be valid in one country and not in another, so choose the right prefix.
Frequently asked questions
Does this tool check VIES?
No. It makes no network request at all. It only validates the format and the check digit. To confirm that a number is active, use the VIES service of the European Commission.
Why does a valid number fail at VIES?
Because the number may not be registered for intra-community trade, may have been cancelled, or the member state's database may be unavailable. Format and registration are different questions.
Which countries are supported?
All 27 EU member states, Northern Ireland (XI) and Great Britain (GB). Great Britain left the EU, so its numbers are not checked in VIES, but the format is still useful for invoices.
Are the rules the official ones?
They are ported from the open-source python-stdnum library, which implements the national algorithms, and tested against it on thousands of numbers per country. National tax authorities can change a rule, so for rare cases confirm with the authority.
Where can I get test numbers?
The test documents tool generates and validates test ID numbers for several countries, such as NIF, SIREN or BSN, which many VAT numbers are built on. The IBAN validator does the same kind of offline check for bank accounts.