Converter tool

VAT Number Validator for Europe

Check a column of VAT numbers for the country's format and checksum. Prefixes such as DE, EL, XI and CHE are read, old Belgian and Greek lengths are padded, and every failure says which rule broke. There is no VIES lookup.

VAT numbers, with an optional country column

1. Your values

Or paste the table
Or paste a plain list, one value per line

VAT Number Validator for Europe

Operator: Abdulla Al Fahad. How tools are built and checked

A VAT number is the one field on an invoice that a tax office can confirm, and the first line of defence is that its shape and checksum are right. This validator checks a column of numbers for the EU member states, Great Britain and Northern Ireland, Switzerland and Norway with each country's own rule: the weights and modulus of Denmark and Finland, the mod 97 of Belgium, the Luhn digit of Sweden and Italy, the letter keys of Spain and Ireland. It makes no VIES lookup, so a pass means well-formed, not registered.

Key features

  • Format and checksum rules for the 27 EU member states, Great Britain, Northern Ireland, Switzerland and Norway
  • The rule that broke: wrong length, a letter where a digit belongs, a forbidden first digit, or the checksum, with the expected check digit or letter where there is one
  • A country column and a default country for numbers that carry no prefix
  • Report, valid-only and invalid-only exports as CSV or XLSX, with a repeat count

Each country's VAT number shape and checksum rule, and what an offline check cannot tell you

Prefixes are read when present: two letters for each EU state (Greece uses EL, and GR is read as EL), XI for Northern Ireland, GB for Great Britain, CHE for Swiss UIDs with an optional MWST, TVA or IVA suffix, and a trailing MVA for Norway. Spaces, dots, dashes and slashes are ignored.

A number without a prefix is checked against the country in your country column, or against a default country you choose. If the column and a prefix disagree, the row is flagged.

Older forms are accepted with a note: nine digit Belgian numbers get a leading 0, eight digit Greek numbers a leading 0, and Dutch numbers with fewer than nine digits before the B are zero-padded.

How it works

Each country is a short function. Germany and Croatia use the ISO 7064 MOD 11,10 hybrid; Denmark, Finland, Poland, Estonia, Hungary, Malta and Norway use a weighted sum that must be divisible by 11, 10 or 37; Belgium needs its first eight digits plus its last two to leave remainder 0 modulo 97; Sweden and Italy apply Luhn; Spain and Ireland compute a check letter; Luxembourg needs the first six digits modulo 89 to equal the last two.

The Netherlands accepts either the older eleven-test or the mod 97 form issued since 2020 to sole traders. France checks its SIREN with Luhn and, for all-digit numbers, a key equal to (SIREN x 100 + 12) modulo 97.

When to run it

  • An accountant checking customer IDs on 600 B2B invoices before applying the reverse charge, who wants the 20 or so typos out before anything goes to VIES.
  • A webshop cleaning the VAT field of its checkout export, where customers typed "DE 136.695.976", "de136695976" and "DE-136695976" for the same number.
  • A marketplace compliance team screening seller documents for numbers that cannot be real.
  • A CRM administrator merging two customer lists and finding numbers pasted into the wrong country.
  • A bookkeeper splitting a VIES batch rejection list into typos, which fail here on checksum, and genuine non-registrations, which pass here.

Running a check

  1. Load your table or a pasted list of VAT numbers.
  2. Choose the VAT column, the optional country column and a default country.
  3. Read the country breakdown and row results, then download the report or the invalid rows.

Example

A B2B customer list of 12 rows with a country column and a VAT column, checked before the reverse charge is applied

customer,country,vat_id
Berger Maschinenbau GmbH,Germany,DE136695976
Dupont SARL,France,FR23334175221
Rossi SRL,IT,00743110157
Jansen BV,Netherlands,NL004495445B01
Smith Ltd,United Kingdom,GB 980 7806 84
Kowalski,PL,PL 8567346215
Svensson AB,SE,SE556703748501
Bern AG,CH,CHE-116.281.710 MWST
Schulz Elektrotechnik GmbH,DE,DE136695978
Iberica Suministros SL,ES,ESB6471783
Hellenic Olive Trading SA,GR,EL094259216
Fjord AS,NO,923456783MVA

Results

10 of 12 valid, 2 not valid
Schulz Elektrotechnik GmbH, DE136695978: fails the ISO 7064 MOD 11,10 check
Iberica Suministros SL, ESB6471783: Spanish numbers have 9 characters after ES; this has 8
Bern AG, CHE-116.281.710 MWST: valid, shown as CHE116281710
Fjord AS, 923456783MVA: valid for Norway through the country column, shown as NO923456783MVA

Tips for best results

  • Run this first and send only the passing numbers to VIES; it removes typos for free.
  • Add a country column when the export has no prefixes. Spanish and French numbers start with characters that could be mistaken for a prefix, and the column settles it.
  • Sort the invalid rows by problem: a length message means a dropped or added character, a checksum message a likely transposition.
  • A Swiss UID without the MWST, TVA or IVA suffix is a valid UID that may not be VAT-registered; the notes column says so.

Limits

A number that passes can still be unregistered, deregistered or belong to another business. Only VIES, HMRC or the Swiss UID register can say.

Individuals in Bulgaria, the Czech Republic, Latvia, Romania and Slovakia may use personal ID numbers as VAT IDs. The rules for those forms are included but have more special cases than company numbers.

Unissued number ranges are not known offline, so a well-formed number from a range no one holds passes.

Common errors and how to fix them

Spanish numbers have 9 characters after ES; this has 8.
A character was dropped. Spanish numbers are a letter or digit, seven digits and a check character.
No country prefix and no country chosen. Start the number with its prefix (DE, FR, EL ...) or pick a country.
Choose a default country, or add a country column and select it.

Best practices

  • Store the normalised number with its prefix, so later systems do not have to guess the country.
  • Use the invalid-only export as the work list for customers to correct.
  • Treat a pass as plausible in your system, and the VIES confirmation as the field that decides zero-rating.

Frequently asked questions

Why is there no VIES check?

VIES is a service called over the network with each number, which would send your numbers to a server. This page makes no network call for your numbers, so it stops at the format and checksum, the part that needs no lookup.

Does it accept Northern Ireland numbers?

Yes for the 9 and 12 digit forms: XI uses the same check as GB. The GD and HA government and health-authority forms (GB plus GD or HA and three digits) are accepted for Great Britain only. XIGD and XIHA are rejected here, and some secondary sources list them for Northern Ireland, so confirm such a number in VIES instead of trusting the rejection.