Dev TooloraLocal dev tools

> Data

VAT Number Format Validator

Check the format and checksum of European VAT numbers for 31 countries, detecting the country from the prefix or a forced country code.

Runs locallyWorks offline
Back to results
Input

Source data

Output

Result

Your result will appear here.

Tool guide

About this tool.

A VAT number starts with a two-letter country prefix followed by a national body. Most countries add a check digit or check letter calculated from the other characters, so a mistyped number usually fails the checksum.

This tool normalizes each line, detects the country from the prefix (or uses the country you choose), checks the length and character layout and then runs the national checksum where one is implemented. Nine countries are checked for format only.

Everything runs locally in your browser. A valid result only means the number is well-formed, never that the company is registered.

  • Catch typos in a customer VAT number before you submit an invoice or a VIES lookup.
  • Clean a pasted list: separators and case are normalized and the failing rows show which part is wrong.
  • Check a body-only number by forcing the country when the prefix is missing.

Paste one VAT number per line. Spaces, dots and hyphens are ignored, case does not matter and blank lines are skipped. Leave Country on Auto to read the prefix, or choose a country to validate bodies without a prefix.

The table shows the input, the detected country, whether the layout fits, the checksum verdict and the overall result. An unknown prefix is reported as country ?? with a bad format.

A row is valid when the format is ok and the checksum did not fail. Countries without a checksum are valid on format alone.

Copy the table or save vat-check.txt. Everything is computed locally and nothing is looked up online.

  • ATU13585627 → Austria, format ok, checksum pass.
  • DE136695977 → Germany, format ok, checksum fail (the last digit is wrong).
  • ES B12345678 → Spain, format ok, checksum not checked.
  • CHE-123.456.788 MWST → Switzerland with the MWST suffix, checksum pass.
  • 136695976 with country DE → the prefix is optional when the country is forced.
  • ZZ123 → unknown prefix ??, format bad.

  • The tool checks format and checksum only, not registration (VIES).
  • Input is limited to 1,000 non-blank lines of at most 32 characters each, and 40,000 characters overall.
  • Supported prefixes: AT BE BG CH CY CZ DE DK EE EL ES FI FR GB HR HU IE IT LT LU LV MT NL NO PL PT RO SE SI SK XI.
  • Format only (checksum not checked): BG, CY, EL, ES, LT, LV, MT, RO and XI.
  • Not checked layouts: Czech 9 and 10 digit numbers, French letter keys, GB GD and HA forms, and the old Irish digit-letter layout.
  • Only ASCII digits are digits; anything else is a bad format row, and an unsupported forced country is rejected.

FAQ

Questions about VAT Number Format Validator

Does a valid result mean the company is registered?

No. Only the format and checksum are checked. To know whether a company is registered you must query the official VIES service or your national register.

Why does a row say the checksum was not checked?

Bulgaria, Cyprus, Greece, Spain, Lithuania, Latvia, Malta, Romania and Northern Ireland have no checksum here, so they show not checked. Some layouts of other countries, such as French letter keys, are also not checked.

Which prefixes are special?

Greece uses the prefix EL in VAT numbers, not GR. Northern Ireland uses XI, and Great Britain GB. Swiss numbers start with CHE and may end with MWST, TVA or IVA.

What happens with unusual characters?

Letters, spaces, dots and hyphens are handled as separators or format errors per row, never as exceptions. Only ASCII digits count as digits, so other scripts make the format bad.

Continue with

IBAN ValidatorCheck an IBAN’s country format, exact length, BBAN structure and MOD 97-10 checksum offline.Country, Currency & Language CodesLook up ISO 3166 country, ISO 4217 currency and ISO 639 language codes by code or by English name.Number FormatterFormat exact decimal input for a locale as a number, currency or percentage with explicit fraction digits.