IBAN country format

Spain IBAN Format, Length and Spanish Example

Use this guide to understand the IBAN country code for Spain, its 24-character length, and example formatting. The ES value shown below remains clearly marked as an example/test IBAN rather than a confirmed bank account.

A Spanish IBAN contains 24 characters and includes bank, branch, national check, and account fields inside its numeric BBAN.

Key Spain IBAN details

Country
Spain
Country code
ES
IBAN length
24 characters
Print format
ES91 2100 0418 4502 0005 1332
SEPA status
SEPA country - EU
BBAN structure
20 digits after the country code and check digits.
Does not prove
Real account, owner, bank reachability, or payment success

Two check systems inside a Spanish IBAN

The Swift IBAN Registry pattern for this published format is ES2!n4!n4!n2!n10!n. The Spain table maps each published segment to the ES9121000418450200051332 example/test value.

Spain IBAN positions and example segments
Part Positions Swift pattern Example segment
Country code 1-2 2 letters ES
International check digits 3-4 2 digits 91
Bank identifier 5-8 4 digits 2100
Branch identifier 9-12 4 digits 0418
National check digits 13-14 2 digits 45
Account number 15-24 10 digits 0200051332

This ES breakdown describes visible positions; it does not turn the embedded bank or routing fields into a live Spain institution lookup.

Bank, branch, national checks, and account in ES91

The ES diagram distinguishes the four-digit bank and branch fields, two national check digits, and ten-digit account number.

Bank, branch, national checks, and account in ES91 The ES diagram distinguishes the four-digit bank and branch fields, two national check digits, and ten-digit account number. Synthetic example, not a real account. 1 ES 1-2 2 91 3-4 3 2100 5-8 4 0418 9-12 5 45 13-14 6 0200051332 15-24
  1. 1. Country code 1-2; 2 letters
  2. 2. International check digits 3-4; 2 digits
  3. 3. Bank identifier 5-8; 4 digits
  4. 4. Branch identifier 9-12; 4 digits
  5. 5. National check digits 13-14; 2 digits
  6. 6. Account number 15-24; 10 digits

Synthetic example, not a real account. The blocks show character positions only and do not identify a live bank or account.

Tracing all 24 positions in the ES example

The synthetic/test ES value demonstrates the published Spain layout. Preserve its label and never treat the sample as a recipient's real payment instruction.

Example/test IBAN
ES9121000418450200051332
Print format example
ES91 2100 0418 4502 0005 1332
Digital format example
ES9121000418450200051332

How Spain divides bank, branch, checks, and account

Spain uses a 24-character IBAN. The Swift IBAN Registry describes the 20-digit Spanish BBAN as a four-digit bank identifier, a four-digit branch identifier, two national check digits, and a ten-digit account number. This all-numeric BBAN can look simple, but the internal blocks still have fixed positions. The two national check digits inside the BBAN are separate from the international check digits that follow ES at the start of the complete IBAN, so neither pair should be removed.

When moving a Spanish IBAN from print to digital form, remove only spacing and confirm that all 24 characters remain. Numeric strings are vulnerable to transposed digits, omitted groups, and accidental additions from an invoice reference printed on the same line. Comparing the first eight BBAN digits and the final ten account digits against the original source can help locate a copy mistake, while the MOD97-10 result provides a whole-value structural check. It does not explain which character was intended when a value fails.

A Spanish bank identifier or branch identifier visible in the IBAN is not a live directory result. BankCodeKit does not contact a Spanish clearing system, bank, or recipient, and it does not test whether a particular transfer type is supported. Keep the beneficiary name, amount, BIC, and payment reference outside the IBAN field. If bank details differ from a previous invoice, confirm the change through a known telephone number or established account contact before sending money, even when the replacement IBAN passes every local format check.

Separating Spanish grouping from the stored value

For Spain, compare the grouped invoice-style value with the compact ES input produced after presentation spaces are removed.

Input shown on page
ES91 2100 0418 4502 0005 1332
Normalized digital value
ES9121000418450200051332
Expected length
24 characters
Result interpretation
A passing ES result means the visible value matched supported Spain structure and MOD97 rules, not that the account or payee was verified.

MOD97 versus the embedded Spanish check digits

  • Whether the IBAN starts with the ES country code.
  • Whether the IBAN has 24 characters after normalization.
  • Whether the value uses allowed letters and digits.
  • Whether the MOD97-10 checksum is valid.

The numeric Spanish BBAN after ES91

  • The value starts with ES, the IBAN country code for Spain.
  • The next two characters are international check digits.
  • The remaining 20 characters are the country-specific BBAN section: 20 digits after the country code and check digits.
  • Spanish IBANs in this reference use a 20-digit BBAN after the country code and international check digits.
  • The example is numeric after ES91, which makes missing or extra digits easier to overlook during copy-paste review.

Digit shifts around the Spanish national checks

  • Losing one digit from the account section when copying grouped invoice text.
  • Changing the group spacing and accidentally changing the underlying digits.

Use the ES structure with the local checkers

Spain in country-level SEPA reference data

For Spain, the local SEPA country reference is: SEPA country - EU. This Spain country-level entry does not establish scheme support for a particular bank or account.

When a Spanish position map is useful

  • Checking that a Spanish IBAN has 24 characters before running a checksum review.
  • Comparing invoice print grouping with the compact value used in online payment forms.
  • Use the IBAN Checker after this Spain reference when you need a local MOD97 result for one ES value.

Questions about ES length and the two check layers

How long is a Spanish IBAN?

A Spanish IBAN has 24 characters.

What country code does a Spanish IBAN use?

Spanish IBANs use the country code ES.

Is the Spanish example a real payment account?

No. It is an example for explaining the format.

What does the checksum prove?

The checksum can show that the IBAN is structurally valid, but it does not prove the account exists.

Spain sources and update note

BankCodeKit keeps payment-code checks browser-local and uses local reference data for format and country information. Local IBAN data was reviewed 2026-07-17 against Swift IBAN Registry Release 102 - Jun 2026. Official public source pages are used for reference, but BankCodeKit does not perform live bank, account, sanctions, or payment-network confirmation.

Format checks only. This page does not confirm account existence, ownership, bank reachability, or payment success. Read the detailed disclaimer.

Last reviewed: 2026-07-17 Sources: Swift IBAN Registry, European Payments Council SEPA scheme countries list Reference data is reviewed periodically. BankCodeKit does not perform live bank, account, sanctions, or payment-network confirmation.