Validating 29 EU, UK (GB), and Northern Ireland (XI) VAT patterns
Cross-border European invoicing fails quickly when a customer VAT ID has a missing digit, a swapped letter, or the wrong country prefix. Under EU Council Directive 2006/112/EC (EUR-Lex), every EU Member State assigns a standardized 2-letter prefix followed by a country-specific alphanumeric body.
This validator checks 29 prefixes offline: all 27 EU Member States plus Great Britain (GB) and Northern Ireland (XI). Before running pattern matching, the normalizer converts text to uppercase and strips spaces, dots, and hyphens with 0 bytes transmitted to any external server. For Italian suppliers, you can follow up a syntax pass with our browser-based partita iva checker to verify the 11-digit Luhn check digit.
| Jurisdiction | Prefix | Official pattern rule | Valid example |
|---|---|---|---|
| Austria | AT |
U followed by 8 digits |
ATU12345678 |
| Belgium | BE |
0 or 1 followed by 9 digits |
BE0123456789 |
| Germany | DE |
9 digits | DE123456789 |
| Greece | EL |
9 digits (uses EL, not GR) |
EL123456789 |
| Netherlands | NL |
9 digits + B + 2 digits |
NL123456789B01 |
| UK & Northern Ireland | GB / XI |
9 or 12 digits, or GD/HA + 3 digits |
GB123456789 |
Why Greece uses EL and Northern Ireland uses XI on VAT numbers
Two European VAT prefixes routinely trip up ERP imports because they do not match standard ISO 3166-1 country codes. According to GOV.UK Check a UK VAT Number Service, mainland UK registrations (GB) are verified via HMRC, whereas Northern Ireland goods traders use XI for EU cross-border reporting.
Greek EL vs ISO country code GR in EU VAT systems
Although Greece uses GR for postal codes, domain names, and customs EORI numbers, EU VAT law assigns EL from the Greek language code for Ellada. Any input starting with GR fails validation here with a reminder to replace the prefix with EL followed by 9 numeric digits.
Northern Ireland XI goods traders vs mainland UK GB numbers
Following Brexit and the Windsor Framework, Northern Ireland businesses trading goods with EU customers receive an XI prefix alongside their UK GB number. Both prefixes accept 9 digits, 12 digits, or GD/HA plus 3 digits. When auditing Spanish e-invoices from EU partners, you can also open Spanish Facturae 3.2.x (.xml and .xsig) e-invoices with IRPF and FACe DIR3 codes locally.
Offline pattern validation vs live VIES and national modulus checks
A passing regex check proves that a VAT ID matches official character rules, not that the company is actively registered today. Under the European Commission VIES VAT Number Validation Portal, suppliers claiming a zero-rated intra-EU B2B reverse charge must still verify active registration and trader name/address online.
Why syntax checks do not confirm active intra-EU reverse charge
Offline syntax validation catches missing digits, stray punctuation, and wrong prefixes instantly without sending confidential customer lists across the internet. However, closed businesses, deregistered traders, and transposed digits inside fixed-length numeric bodies still require a live VIES or HMRC check before shipping tax-free goods.
Running domestic Modulo-11 and Luhn checks on national IDs
While this multi-country checker validates structure across 29 prefixes, several European tax IDs embed domestic check digits such as Modulo-11 weights in Poland or Luhn digits in Italy. Catching a single-digit typo early prevents rejected e-invoices and delayed VAT refunds. If you bill Swiss partners outside the EU VAT area, pair your tax ID checks with our Swiss QR-bill generator to build SIX-compliant payment slips.
Auditing up to 1,000 vendor VAT numbers offline for AP clean-up
Accounts payable teams regularly inherit vendor spreadsheets filled with inconsistent spacing, missing country codes, and invalid characters. Pasting up to 1,000 lines into VAT number or list isolates malformed IDs in a single pass with 0 KB transmitted externally.
Reviewing the Jurisdiction, Country prefix, and Domestic VAT body fields helps finance teams standardize supplier master records before quarterly VAT return filings. This pre-flight clean-up saves hours of manual spreadsheet filtering and prevents formatting rejections before running live portal checks.
Filtering Passed and Failed rows and exporting CSV or Excel
Use the Passed and Failed filter buttons to focus exclusively on broken supplier records, then click Download results (CSV) or Download Excel (.xlsx) for your remediation log. The textarea accepts up to 1,000 lines and 50,000 characters in a single UTF-8 batch. When preparing German B2B invoices from a cleaned EU customer list, you can prepare germany invoice generator records locally without uploading client data in the same browser.
Tip: Click Copy compact (
DE123456789) when uploading vendor IDs into XML e-invoicing schemas such as XRechnung or Peppol BIS 3.0, which disallow spaces insideEndpointIDandCompanyIDtags.
Operational scope and keeping vendor tax lists private
This validator performs offline character-pattern matching across 29 VAT prefixes for operational convenience and data hygiene, sending 0 KB over the network. It does not query EU VIES, HMRC, or national tax registries, and does not constitute certified tax, VAT compliance, or legal advice. Always verify active VAT registration and cross-border tax obligations with a qualified accountant or the relevant national tax authority.