🇪🇸 IBAN COUNTRY PROFILE · Spain

Check an IBAN from Spain and understand its structure

An IBAN for Spain always contains 24 characters. After ES and two IBAN check digits, the national BBAN contains 4-character bank identifier, 4-character branch identifier, 10-character account part and 2-character national check digit. IBAN-Test can additionally compare the bank identifier with the available bank directory for Spain.

24 charactersFixed total length
20 charactersNational BBAN
ESISO country code

Structure of an IBAN from Spain

The reference example ES91 2100 0418 4502 0005 1332 shows the country-specific components. It is provided for explanation only and is not a request to make a payment.

ES 91 2100 0418 45 0200051332
ESCountry code
91IBAN check digits
2100Bank identifier
0418Branch identifier
45National check digit
0200051332Account part
PositionLengthComponentFormat
1–22Country codeLetters: ES
3–42IBAN check digitsDigits
5–84Bank identifierDigits
9–124Branch identifierDigits
13–142National check digitDigits
15–2410Account partDigits

Validate an IBAN for Spain

This validator accepts only IBANs from the selected country.

What IBAN-Test validates for Spain

Validation covers normalization, country assignment, the fixed 24-character length, the country-specific segment structure and MOD-97. Account ownership and real-time account existence are not checked.

1. Normalize the input

Spaces are removed and the representation is normalized.

2. Country and structure

ES, the length and the segment sequence are checked.

3. MOD-97

The international checksum catches many typing errors.

4. Available depth

The bank identifier is compared with the available directory.

Validation stepAvailableDetails
Country, length and structureYesES, 24 characters; 4-character bank identifier, 4-character branch identifier, 10-character account part and 2-character national check digit.
MOD-97 checksumYesMathematical IBAN validation.
Known bank identifierYesCompared with the available bank directory for Spain.
National account checkNoNo additional national account check method.
Bank details and BICWhen availableReturned from the available bank directory.
IBAN name checkNoNo comparison between an account holder’s name and the IBAN.
Account existenceNoNo request is sent to the account-holding institution.

Validate an IBAN from Spain via API

The same validation is available through the REST API. The IBAN is sent in the request and is not placed in a public, indexable URL.

curl --get 'https://www.iban-test.eu/api/v2/iban/validate' \
  --header 'Authorization: Bearer YOUR_API_TOKEN' \
  --data-urlencode 'iban=ES91 2100 0418 4502 0005 1332'

When available, the response can include bank details from the country-specific directory.

Generate an IBAN for Spain

The generator accepts up to 4 characters for bankcode and 16 characters for accountnumber. It then calculates the IBAN check digits and validates the result.

curl --get 'https://www.iban-test.eu/api/v2/iban/generate' \
  --header 'Authorization: Bearer YOUR_API_TOKEN' \
  --data-urlencode 'countrycode=ES' \
  --data-urlencode 'bankcode=2100' \
  --data-urlencode 'accountnumber=0418450200051332'

What a valid IBAN from Spain does not prove

Formal validity is a strong signal against input errors, but it is not real-time confirmation of an account.

No existence confirmation

The account may be closed or unreachable.

No account-holder match

A person or company name is not compared with the IBAN.

No payment guarantee

A valid IBAN does not guarantee that a payment will be accepted.

Bank data can change

Results depend on the bank directory currently available to IBAN-Test.

Privacy: The input is transmitted only for validation and is not placed in the page URL.

Bank data validation

Validation against bank directories

For these countries, we check IBANs against available bank directories and return bank details such as institution, city and BIC when available.

ATAustria BEBelgium BGBulgaria HRCroatia CYCyprus CZCzech Republic DKDenmark EEEstonia FIFinland FRFrance DEGermany GRGreece HUHungary IEIreland ITItaly LVLatvia LTLithuania LULuxembourg MTMalta NLNetherlands PLPoland PTPortugal RORomania SKSlovakia SISlovenia ESSpain SESweden

IBAN syntax check

Format checks for 115 IBAN formats

Check IBANs for a valid structure, correct length and checksum. This helps you catch typos and transposed digits before a payment fails. Additional bank validation against real bank directories is available for the countries listed above.

MCP Server for AI Agents - Connect AI clients to IBAN validation tools - https://www.iban-test.eu/mcp - MCP Documentation