Launch offer20% off every Pro version until 30 November, applied at checkoutSee the pricesHoliday offer15% off every Pro version until 31 December, applied at checkoutSee the prices
mutewareAdd to Chrome

Free tools / VAT number checker / Spain

Check a Spanish VAT number

A Spanish VAT number starts with ES, followed by 9 characters, with a letter at the start, at the end, or both. Type or paste the number to check it against VIES, the service of the European Commission, and see below how the number is built.

To check the registration, the number is sent from our server to VIES. We do not keep it. Name and address come from VIES and the tax office of that country.

How a Spanish VAT number is built

PartWhat it is
Country codeES
Number9 characters, with a letter at the start, at the end, or both
FormESX12345678, ES12345678X, ESX1234567X
Local nameNIF (número de identificación fiscal)

The forms show how a number is built; they are not numbers of real companies. Source of the formats: the list of EU VAT number formats that HMRC publishes on GOV.UK.

Questions

What does a Spanish VAT number look like?

It starts with the country code ES, followed by 9 characters, with a letter at the start, at the end, or both. For example the form ESX12345678, ES12345678X, ESX1234567X. Spaces and dots are not part of the number.

What is a VAT number called in Spain?

NIF (número de identificación fiscal). On an invoice to a business in another EU country it is written with ES in front.

How do I check whether a Spanish VAT number is valid?

Type it in the box on this page. The number goes to VIES, the service of the European Commission, which asks the tax office of Spain whether it is registered for trade within the EU on the day of the check.

Why do I see no name or address?

Spain does not share the name and address of the business through VIES. The check of the number itself still works. To be sure who the number belongs to, ask your customer for a copy of their registration.

Why does a number show as not valid when the company exists?

A company can have a VAT number that is only for domestic trade and not activated for trade within the EU, and a new number can take some days to appear. Ask the customer to check their registration with their tax office.

Is what I type sent anywhere?

Yes, unlike our other tools: to check the registration, the number goes to our server and on to VIES of the European Commission. We do not store it, and nothing else you do on this page is sent.

VAT numbers in other countries

Customer details belong in your books, not in an AI chat

Scrub for AI replaces names of contacts, email addresses, phone numbers and IBANs with placeholders before you paste a text into ChatGPT, Claude, Gemini or Copilot, and puts them back in the answer. Free to start. Scrub Pro adds Paste Guard, which cleans text as you paste it, and scrubbing of whole files; team plans give every colleague Pro with one invoice.