VAT Number Validator

Paste a VAT number to validate its country format.

How it is calculated

Spaces, hyphens and dots are removed and letters are made uppercase. The first two characters are read as the country prefix and the rest as the body, which is then tested against the structure the European Commission gives in its VIES FAQ (question 11, VAT identification number structure). Only five countries are known: DE (9 digits), FR (2 letters or digits + 9 digits), IT (11 digits), ES (a letter or digit, 7 digits, a letter or digit, where the first and last may not both be digits) and NL (9 digits + B + 2 digits, as the Dutch tax administration describes its btw-id). A number from any other country, even a real EU one such as BE or PL, is reported as invalid with an unrecognized prefix.

No check digit is tested: the Commission says it cannot divulge the algorithms member states use to build their numbers, so a correctly shaped number with a typing error still passes. Nothing is looked up in VIES or any tax register.

Worked example

Input ESA1234567B. The prefix ES means Spain; the body A1234567B has 9 characters: a letter, seven digits and a letter, which fits the VIES structure X9999999X. The tool reports Valid format for Spain (ES). ES123456789 fails: its first and last characters are both digits, which the VIES table does not allow for Spain. DE136695976 passes as 9 digits for Germany. A pass only shows the shape fits, not that the number is registered to anyone.

Try this example →

Common mistakes

  • Treating “Valid format” as proof that the company is registered. The tool never contacts a registry, so a correctly shaped number can still be unassigned, canceled or belong to someone else.
  • Entering a VAT number from a country outside DE, FR, IT, ES and NL. It is shown as invalid with an unrecognized prefix even though the number may be perfectly good, so use the official EU VIES service for those.
  • Omitting the country prefix, as in 136695976 alone. The first two characters must be the prefix, so the tool reports an unrecognized prefix and cannot work out the country.
  • Expecting the tool to catch a mistyped digit. There is no checksum, so DE136695977 passes just as DE136695976 does; confirm the number in VIES.
  • Typing a Spanish number of nine digits. ES123456789 fails because the VIES structure needs a letter at one end at least.

Sources

About this calculator

An EU VAT number pairs a two-letter country prefix with a digit sequence of a fixed length set by each member state's tax authority — for example Germany's DE followed by 9 digits, France's FR with 2 characters plus 9 digits, Italy's IT with 11 digits, Spain's ES with 9 characters (a letter or digit, 7 digits, a letter or digit, and the first and last not both digits), and the Netherlands' NL with 9 digits, “B”, and 2 more digits. Only these five countries are supported; any other prefix is reported as unrecognized. The patterns are those of the European Commission's VIES FAQ table of VAT identification number structures (and the Dutch tax administration's own description for NL); the Commission says it cannot divulge the member states' check-digit algorithms, so the tool does not run any.

Businesses trading across EU borders must quote a valid VAT number to apply the reverse-charge mechanism and zero-rate intra-community supplies, so accountants, bookkeepers and invoicing systems routinely check that a supplied number matches the expected shape for its country before accepting it. This tool checks format and length only — it does not query VIES or any live tax registry to confirm the number is actually registered.

Was this helpful?

You can pick up to 3 reactions.

Comments

  • Be the first to comment.

Popular calculators

All Calculators