Free EORI checker — validated against official HMRC & EU EOS sources EN DE FR IT
Country guide — ES

EORI Number for Spain

Format, issuing authority, processing time, and FAQs for Spain — plus a free checker to validate your number.

Flag of Spain

Format & example

ES + up to 15 alphanumeric characters (EORI prefix + national identifier).

Valid example ESX1234567X
Regex (reference):
^ES[A-Z0-9]{8,15}$

Authority & validation

  • Issuing authority Agencia Tributaria (AEAT) / Customs & Excise (Spain)
  • Processing time Depends on the application type and documentation. Plan for a review period after submitting via the official electronic office.
  • Validation method EU EORI validation (EU EOS) + Spanish customs/AEAT confirmation.
Check an EORI number

Free validation on our website

Notes & what to watch out for

Spain's Mediterranean ports — Algeciras and Valencia among the busiest in Europe — make it a key gateway for cargo moving between Africa, the Americas and the EU. One nuance worth knowing: the Canary Islands sit inside Spain's customs territory but outside the EU VAT area, so goods moving through the islands can face different VAT treatment even though the same ES EORI applies there.

Spain's EORI registration is handled through AEAT's electronic office, and for most applicants the EORI is built from your existing NIF tax identifier. Registration is free of charge.

What is the EORI number in Spain?

Spain's customs authority, Agencia Tributaria (AEAT) / Customs & Excise (Spain), identifies traders using the EORI (Economic Operators Registration and Identification) number — a single reference quoted on every customs declaration. The number takes the form ES plus a national identifier, shaped like ESX1234567X, and once issued it is recognised for customs purposes across the whole EU, not just Spain. No EORI on file means no import or export can be declared under your name.

Who needs an ES EORI number?

The rule is simple: if you're established in Spain and your name appears on a customs declaration as importer or exporter, you need an EORI number first. That applies whether you're a limited company, a sole trader or a partnership, and whether the goods are inbound stock from outside the EU, outbound sales to overseas customers, or cross-border orders placed through an online marketplace. A forwarder or courier can submit the declaration on your behalf, but it will still show your EORI, not theirs.

There is only one place to register: the EU member state where your business is legally established. For a company based in Spain, that is Agencia Tributaria (AEAT) / Customs & Excise (Spain). The ES-prefixed EORI it issues is then usable on customs declarations across the entire EU, all 27 member states, so there's no need to apply again elsewhere in the bloc. A non-EU business can likewise obtain its EORI in Spain if that's where it first lodges an EU customs declaration.

Great Britain sits outside this EU-wide recognition, so a ES EORI on its own will not clear a UK import. If your Spain business imports into the UK in its own name, apply separately to HMRC for a GB EORI — see our UK EORI guide.

How to apply for an EORI number in Spain

  1. Check whether you already have one. Authorities often assign EORI numbers automatically when a business first interacts with customs. Search old customs correspondence or ask your forwarder, and try our EORI checker with your likely number — the format is usually ES plus your national tax or business identifier.
  2. Gather your business details. You will typically need your company registration number, VAT or tax ID, legal form, registered address and contact details of an authorised person.
  3. Apply with Agencia Tributaria (AEAT) / Customs & Excise (Spain). Applications go through the official portal — depends on the application type and documentation. Plan for a review period after submitting via the official electronic office. Registration is free of charge; no official authority charges for issuing an EORI.
  4. Validate before your first shipment. Once issued, confirm the number is active with our free checker so your first declaration is not rejected over a typo or a not-yet-propagated registration.

Official Spain EORI application page

Checking and using your Spain EORI number

EU EORI validation (EU EOS) + Spanish customs/AEAT confirmation. Because the EOS database behind ES numbers is EU-wide, not just Spain's own system, counterparties anywhere in the bloc can look your number up too — a routine step many businesses take before trading with a new supplier or customer.

Once active, your EORI appears on every customs document tied to your business: import and export declarations, transit paperwork, safety and security filings, and any customs authorisations you hold. Couriers such as DHL, FedEx and UPS will ask for it before they can clear commercial goods in your name. Keep the exact string handy in your shipping profiles — a single mistyped character is enough to stop a consignment at the border. You can compare your number against the national pattern in our EORI format hub, which covers every country's structure with valid examples.

Directory

EORI guides for other countries

See all countries in the EORI format hub

FAQ

Spain EORI questions

Use the official AEAT procedure for obtaining/assigning an EORI. The page explains how to submit your request electronically and what to expect from the customs review.

EORI numbers are issued via customs/AEAT procedures without a charge for the identifier itself when you apply through official processes. Avoid paying intermediaries for standard applications.

Spanish EORI numbers start with the ES prefix. AEAT guidance explains how the tax identifier contributes to the final format.

Review time varies with application completeness and administrative workflow. Apply early if you have a customs deadline.

Use the <a href=\"/eori-checker\">EORI checker</a> to validate EU prefixes when the EU validation service is available.
Before you ship

Validate your Spain EORI

If your EORI is newly issued, validate it with the free checker before your first shipment.