ES VAT format

Spain VAT number check

Check the Spanish NIF-IVA supplied by the business. Keep the ES prefix, separate its format from the VIES registration response, and keep a dated result.

Spain: read the NIF-IVA before checking

Prefix
ES
Official format table
nine characters; the first and last, or either one, may be a letter
Invented illustration
ESA1234567Z

The illustration only shows how to read the structure. It is not a real taxpayer, a checksum guarantee, or a positive VIES result. Keep the complete identifier supplied by the business before asking VIES.

Three separate decisions

  1. Format: keep the ES prefix and do not turn a local NIF into an ES number by guessing. The checker checks the local shape before it asks VIES.
  2. Registration: a valid response means VIES confirmed the number for intra-EU transactions at that moment. It does not certify every tax detail or the invoice.
  3. No response: an unavailable or timeout result is unresolved. Keep the input and time, consult the VIES error guide, and retry later instead of recording it as invalid.

Sources: BZSt, VAT identification structures (Spain row) · European Commission / Your Europe, VIES scope and results. The sources explain format and service meaning; this page does not run a live check for the illustration.

What VIES can return

  • Valid: the VAT number is currently confirmed for intra-EU transactions.
  • Invalid: VIES did not confirm the number as valid at the time of the check.
  • Unavailable: VIES or the national VAT registry did not reply.

Before relying on the result

Match the VAT result with your customer's invoice details and keep your own evidence of the check. A valid VIES response is a useful record, but it is not a substitute for your compliance workflow or advice from a tax professional.

If Spain is unavailable in VIES, retry later before treating the VAT number as invalid. Member-state registry outages can look like a failed check even when the number itself is fine.

Other EU country checks

All 28 supported VAT countries

Check now

You can paste the full VAT ID with country prefix, or choose the country and enter the local number. A leading VAT label is accepted.