Free · No sign-up · Nothing stored
Check an EU VAT number in VIES
The check tells you whether the number is active in VIES today. For your records, keep the official proof of the check (see below).
Type your customer's or supplier's VAT number. We check the format in your browser against each country's official structure and, when you press the button, check it in VIES, the European Commission system that queries each Member State's register.
The format is checked in your browser. To query VIES, the country and number go through our server to the European Commission. We do not store or log them.
What it checks
What this tool tells you (and what it does not)
- Format, in your browser: whether the number has the prefix and structure the European Commission publishes for that country. For Spain, also whether the letter of an individual's NIF matches.
- Validity, in VIES: whether the Member State reports the number as active for intra-EU transactions today. VIES cannot confirm validity in the past (VIES FAQ, question 6).
- Name and address: only if the country provides them. Spain does not.
- What it does not say: that the operation is exempt. The VIES disclaimer states the result «does not in itself give a right to exempt» (disclaimer).
How it works
What VIES is
VIES (VAT Information Exchange System) is the European Commission search engine for EU VAT numbers. It is not a database: each query is forwarded to the national database of the country that issued the number (VIES FAQ, question 23). «Invalid» means the number is not active or not allocated (VIES help).
If VIES fails
What to do if VIES does not answer (MS_UNAVAILABLE)
| VIES code | Meaning | What to do |
|---|---|---|
MS_UNAVAILABLE | The Member State (or Northern Ireland) service is unavailable | Try again later. It does not mean the number is wrong |
TIMEOUT | The country did not answer in time | Try again later |
MS_MAX_CONCURRENT_REQ, GLOBAL_MAX_CONCURRENT_REQ | Too many simultaneous requests | Wait and retry |
INVALID_INPUT | Country or number format is not valid | Check prefix and number |
National databases stop for backups; the Spanish one «is unavailable daily around 06:30 AM for a few minutes» (VIES FAQ, question 14).
Proof
Keeping proof: the consultation number
If you enter your own VAT number as requester, VIES returns a unique consultation number you can use to show a tax administration that you checked the number on that date. The Commission notes it is only one of the elements of evidence (VIES help). Open «Want a consultation number as proof?» in the tool above.
Format
VAT number format in each EU country
Always the two-letter country code, in capitals and without spaces or dots. Greece uses EL, not GR, and Northern Ireland uses XI. Spanish VAT numbers are the Spanish NIF with «ES» in front (Royal Decree 1065/2007, art. 25); Spain does not return name or address in VIES (VIES FAQ, question 22).
| Prefix | Country | After the prefix | Shape |
|---|---|---|---|
| AT | Austria | U + 8 digits | ATU12345678 |
| BE | Belgium | 10 digits (starting with 0 or 1) | BE0123456789 |
| BG | Bulgaria | 9 or 10 digits | BG123456789 |
| CY | Cyprus | 8 digits + 1 letter | CY12345678X |
| CZ | Czechia | 8, 9 or 10 digits | CZ12345678 |
| DE | Germany | 9 digits | DE123456789 |
| DK | Denmark | 8 digits | DK12345678 |
| EE | Estonia | 9 digits | EE123456789 |
| EL | Greece | 9 digits (prefix EL, not GR) | EL123456789 |
| ES | Spain | 9 characters: the Spanish NIF; the first or last is a letter | ESA28015865 |
| FI | Finland | 8 digits | FI12345678 |
| FR | France | 2 characters (digits or letters) + 9 digits | FR12345678901 |
| HR | Croatia | 11 digits | HR12345678901 |
| HU | Hungary | 8 digits | HU12345678 |
| IE | Ireland | 8 or 9 characters (digits and 1 or 2 letters) | IE1234567WA |
| IT | Italy | 11 digits | IT12345678901 |
| LT | Lithuania | 9 or 12 digits | LT123456789 |
| LU | Luxembourg | 8 digits | LU12345678 |
| LV | Latvia | 11 digits | LV12345678901 |
| MT | Malta | 8 digits | MT12345678 |
| NL | Netherlands | 12 characters | NL123456789B01 |
| PL | Poland | 10 digits | PL1234567890 |
| PT | Portugal | 9 digits | PT123456789 |
| RO | Romania | 2 to 10 digits | RO1234567890 |
| SE | Sweden | 12 digits | SE123456789001 |
| SI | Slovenia | 8 digits | SI12345678 |
| SK | Slovakia | 10 digits | SK1234567890 |
| XI | Northern Ireland | 9 or 12 digits, or GD/HA + 3 digits | XI123456789 |
Code
Check VIES from your own software
The Commission publishes a free REST API: POST /check-vat-number with countryCode and vatNumber; add requesterMemberStateCode and requesterNumber to get a requestIdentifier (technical information, Swagger).
// Check an EU VAT number in VIES (official European Commission REST API).
// From your SERVER: the API does not accept browser requests from other sites (CORS).
async function checkVies(country, number) {
const r = await fetch(
"https://ec.europa.eu/taxation_customs/vies/rest-api/check-vat-number",
{
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ countryCode: country, vatNumber: number }),
signal: AbortSignal.timeout(12000),
},
);
const json = await r.json();
// Member State down: { actionSucceed: false,
// errorWrappers: [{ error: "MS_UNAVAILABLE" }] } → try again later
const error = json.errorWrappers?.[0]?.error;
if (error) throw new Error(error);
return json; // { valid, name, address, requestDate, requestIdentifier, ... }
}
await checkVies("ES", "A28015865"); // { valid: true, name: "---", ... }VIES blocks IPs that check the same number many times a day or send lots of invalid numbers, and its disclaimer forbids extracting and redistributing its data.
FAQ
VIES frequently asked questions
What is VIES?
The European Commission search engine for EU VAT numbers. It forwards each query to the national register of the issuing country.
What does MS_UNAVAILABLE mean?
That the Member State's service is not responding right now. It does not mean the number is wrong: try again later.
Why is there no name for Spanish companies?
Spain does not provide name or address to VIES. It only confirms whether the number is valid.
Can I check whether a VAT number was valid in the past?
No. VIES only confirms validity on the day of the check, so keep the consultation number.
Why does Greece use EL instead of GR?
That is the prefix VIES uses for Greece. GR fails; use EL with the same number.
Do you store the number I check?
No. The format is checked in your browser. To query VIES the number goes through our server to the European Commission, but it is not stored or logged.
About
About this validator
Built by Black Wings, a software studio in Valencia (Spain) working with small and medium businesses. Our validators are free, single-purpose tools that show how we work.
- Check: the official VIES REST API of the European Commission,
check-vat-number. - Formats: the VIES FAQ table.
- Not an official service and not affiliated with the European Commission or the Spanish Tax Agency.
- Reviewed: 22 November 2026.
Privacy
What happens to the number you check
Unlike our IBAN and DNI validators, this one sends the number. While you type, the format is checked in your browser. When you press «Check in VIES», the country and number go to our server (hosted on Vercel) and from there to the European Commission. If you add your own VAT number for a consultation number, it is sent too.
We do not store or log the number or the result. Your IP address is used only in memory to rate-limit requests. More in our privacy policy.
Other validators
More free validators
Need this inside your own software?
Validating IBANs and tax IDs when a customer signs up, checking whole lists or connecting invoicing to the bank: that is the kind of work we do at Black Wings.
Tell us about it