Spain IBAN Format & Generator

Complete reference for Spain IBANs: format structure, bank codes, account numbers, examples, and a free generator for testing.

IBAN Structure for Spain

Country (ES) Check digits Bank code (4 digits) Branch (4 chars) Account (10 chars)
ES
XX
Bank
4 chars
Branch
4 chars

Spain IBAN Technical Specifications

PropertyValue
IBAN Length24 characters
BBAN Length20 characters
BBAN Format4!n4!n2!n10!n
Bank CodePosition 5, 4 digits
Branch CodePosition 9, 4 chars
Account NumberPosition 15, 10 chars
SEPA Member✅ Yes
NotesBank: 4 digits; Branch: 4 digits; Check (DC): 2 digits; Account: 10 digits

Banking System in Spain

Spain's banking system features major banks like Banco Santander, BBVA, and CaixaBank. Spanish IBANs are 24 characters and contain a 4-digit bank code, 4-digit branch code, 2-digit control code, and 10-digit account number. IBAN has been mandatory for all SEPA transfers in Spain since 2014.

Example Spain IBANs

Here are 3 randomly generated but mathematically valid Spain IBANs for testing:

⚠ These are randomly generated test IBANs — not real bank accounts. Do not use for actual transactions.

Generate Spain IBANs for Testing

Generate valid Spain IBANs right here. All generation is client-side — no data leaves your browser.

5

Frequently Asked Questions

What is the IBAN format for Spain?

Spain uses a 24-character IBAN with the country code "ES" followed by two check digits and a 20-character BBAN. The format is 4!n4!n2!n10!n. The bank code occupies positions 5 to 8.

Is Spain a SEPA country?

Yes, Spain is part of the SEPA (Single Euro Payments Area) and uses IBAN for all domestic and international transfers.

How long is a Spain IBAN?

A Spain IBAN is exactly 24 characters long. The BBAN portion accounts for 20 characters.

How do I find my Spain IBAN?

Your IBAN is printed on your bank statement, available in your online banking portal, or can be obtained from your bank. It typically appears alongside your BIC/SWIFT code for international transfers.

Can I generate a valid Spain IBAN for testing?

Yes! Use the IBAN generator on this page or visit the IBAN Easy homepage to generate mathematically valid IBANs for any supported country. All generation is client-side and private.

Other IBAN Countries in Europe

Major Bank BIC/SWIFT Codes in Spain

BIC (Bank Identifier Code) / SWIFT codes for major banks in Spain. These codes are used for international wire transfers alongside the IBAN.

BIC CodeBank NameCity
ABANES2BAbancaA Coruña
BBVAESMMBBVAMadrid
BAPUES22Banco Popular EspañolMadrid
BASKES2BBanco SabadellAlicante
BSCHESMMBanco SantanderMadrid
POPIES2ABanco Santander (Popular)Madrid
BEDMESM1Banco de EspañaMadrid
BKKBESMMBankinterMadrid
CECAESMMCECA Confederación EspañolaMadrid
CAIXESBBCaixaBankBarcelona
IBRCESMMIbercaja BancoZaragoza
KBANES22KutxabankBilbao
UBBKESMMUnicaja BancoMalaga

IBAN Tools & Resources