IBAN country format
Spain IBAN Format, Length and Spanish Example
A Spanish IBAN is 24 characters: ES and 2 international check digits, then a 4-digit bank identifier, 4-digit branch identifier, 2 national check digits, and 10-digit account number.
Use this guide to understand the IBAN country code for Spain, its 24-character length, and example formatting. The ES value below is a labeled Spanish format sample and must not be treated as a confirmed bank account.
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.
- 1. Country code 1-2; 2 letters
- 2. International check digits 3-4; 2 digits
- 3. Bank identifier 5-8; 4 digits
- 4. Branch identifier 9-12; 4 digits
- 5. National check digits 13-14; 2 digits
- 6. Account number 15-24; 10 digits
Synthetic ES example, not verified against a real account. The Spain blocks explain published character positions; they are not a live institution or account lookup.
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
- Spain: 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 table for Spain maps each published segment to the
ES9121000418450200051332 example/test value.
| 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 Spanish institution lookup.
Tracing all 24 positions in the ES example
The synthetic/test ES value demonstrates the published Spanish 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
Compare the grouped invoice-style value used for Spain 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 Spanish 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.
- For Spain, the remaining 20 characters form 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
- Check this ES IBAN locally for country, length, characters, and MOD97 result only.
- Review Spain's SEPA country entry as reference context, not bank or account readiness.
- Compare the IBAN with a separate BIC/SWIFT code when a Spanish invoice includes both values.
Spain in country-level SEPA reference data
For Spain, the local SEPA country reference is: SEPA country - EU. The ES entry provides geographical scope only; participation by a particular Spanish bank or account must be confirmed separately.
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 country reference for Spain 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
Public references for Spanish IBAN structure and national fields are linked below; detailed standard scope, review methods, and licensing boundaries are documented on the Sources and Updates page.
- Swift IBAN Registry
- ISO 13616-1:2020 IBAN structure standard
- Swift BIC / ISO 9362 information
- ISO 9362:2022 BIC standard
- European Payments Council SEPA scheme countries list
- Banco de Espana - Spanish bank account structure
Matching the cited format and reference data for Spanish IBAN structure and national fields does not confirm account existence, ownership, bank reachability, or payment success. Read the detailed disclaimer.
Reference data reviewed: 2026-08-15 Next scheduled data review: 2026-10-17 Sources: Swift IBAN Registry, European Payments Council SEPA scheme countries list, Banco de Espana - Spanish bank account structure Reference data is reviewed periodically. BankCodeKit does not perform live bank, account, sanctions, or payment-network confirmation.