Skip to content

Free · No sign-up · Nothing is sent

BIC / SWIFT code checker, and the BIC of a Spanish IBAN

BIC / SWIFT

8 or 11 characters, with or without spaces. Any country.

ISO 9362 has no check digit: a valid format does not guarantee that the BIC exists or belongs to the account holder's bank.

Type a BIC to check its format and see what each part means, or paste a Spanish IBAN to get its bank's BIC from the official Bank of Spain list. For euro transfers within the EU, banks cannot require it.

Calculated in your browser. The BIC and IBAN you type are never sent or stored.

What it checks

What this tool checks (and what it does not)

  • Yes: the ISO 9362 format (8 or 11 characters, country in positions 5 and 6), what each part means, the 8- and 11-character forms, and whether it is a test BIC.
  • Yes, for Spain: which institution it belongs to if it is in the Bank of Spain BIC list, and the BIC of a Spanish IBAN from its bank code.
  • No: whether the BIC exists and is active. The standard has no check digit, so a made-up BIC can have a perfect format.

What it is

What a BIC or SWIFT code is

The BIC (Business Identifier Code) identifies a bank or other institution in international payments. It is defined by ISO 9362 (current edition 2022) and issued by SWIFT, the registration authority, which is why it is also called a SWIFT code. BIC identifies the bank; the IBAN identifies an account and has check digits.

How it works

How to read a BIC: the ISO 9362 structure

  1. 101

    Institution (prefix)

    DEUT

    4 characters. Since the 2014 edition it can contain digits.

  2. 202

    Country

    DE

    2 letters, ISO 3166-1.

  3. 303

    Location (suffix)

    FF

    2 letters or digits. A 0 in the second one (position 8) is a SWIFT Test & Training address.

  4. 404

    Branch (optional)

    XXX

    3 letters or digits. Missing or “XXX” means head office: DEUTDEFF = DEUTDEFFXXX.

Source: SWIFT, ISO 9362 – BIC implementation: changes and impact. Until November 2018 a 1 in position 8 meant “not connected to SWIFT FIN”; SWIFT now asks users not to infer that from the code.

From an IBAN

Getting the BIC of a Spanish IBAN

Digits 5 to 8 of a Spanish IBAN are the bank code. We look it up in the Bank of Spain list of TARGET participants, which gives the 11-character BIC of each. It only covers about 50 institutions; if a bank is not there, we say so instead of guessing.

CodeInstitution (as written by the Bank of Spain)BIC
1000INSTITUTO DE CRÉDITO OFICIALICROESMMXXX
1474CITIBANK EUROPE PLC, S.E.Not published
1479NATIXIS, S.A., S.E.NATXESMMXXX
1491TRIODOS BANK, N.V., S.E.Not published
1497HAITONG BANK, S.A., S.E.ESSIESMMXXX
1525BANQUE CHAABI DU MAROC, S.E.BCDMESMMXXX
1544MYINVESTOR BANCO, S.A.BACAESMMXXX
2000CECABANK, S.A.CECAESMMXXX
2045CAJA DE AHORROS Y M.P. ONTINYENTCECAESMM045
2056COLONYA-CAIXA D'ESTALVIS DE POLLENSACECAESMM056
2080ABANCA CORPORACIÓN BANCARIA, S.A.CAGLESMMVIG
2085IBERCAJA BANCO, S.A.CAZRES2ZXXX
2095KUTXABANK, S.A.BASKES2BXXX
2100CAIXABANK, S.A.CAIXESBBXXX
2103UNICAJA BANCO, S.A.UCJAES2MXXX
3001CAJA RURAL DE ALMENDRALEJO, S.C.C.Not published
3025CAIXA C. DELS ENGINYERS, S.C.C.CDENESBBXXX
3035CAJA LABORAL POPULAR C.C.CLPEES2MXXX
3058CAJAMAR CAJA RURAL, S.C.C.CCRIES2AXXX
3081EUROCAJA RURAL, S.C.C.ERSVES22XXX
3183ARQUIA BANK, S.A.CASDESBBXXX
3669INTERMONEY VALORES, S.V., S.A.IVALESMMXXX
3682GVC GAESCO BEKA, S.V., S.A.GVCBESBBETB
3760IBROKER GLOBAL MARKETS, S.V., S.A.IBGMESMMXXX
7415EUROPEAN DIGITAL SECURITIES EXCHANGE, S.V. S.A.EDSXESM2XXX
9020SOCIEDAD ESPAÑOLA DE SISTEMAS DE PAGO, S.A. (IBERPAY)IPAYESMMAS1
9094BME CLEARING, S.A.U.MEFFESBBCCP
9096SOC. GES. SIS. REG., COMP. Y LIQ. VALORES, S.A.U (IBERCLEAR)IBRCESMMXXX
0011ALLFUNDS BANK, S.A.ALLFESMMXXX
0049BANCO SANTANDER, S.A.BSCHESMMXXX
0061BANCA MARCH, S.A.BMARES2MXXX
0078BANCA PUEYO, S.A.BAPUES22XXX
0081BANCO DE SABADELL, S.A.BSABESBBXXX
0083RENTA 4 BANCO, S.A.RENBESMMXXX
0128BANKINTER, S.A.BKBKESMMXXX
0136ARESBANK, S.A.AREBESMMXXX
0169BANCO DE LA NACIÓN ARGENTINA, S.E.NACNESMMXXX
0182BANCO BILBAO VIZCAYA ARGENTARIA, S.A.BBVAESMMXXX
0186BANCO MEDIOLANUM, S.A.BFIVESBBXXX
0188BANCO ALCALÁ, S.A.ALCLESMMXXX
0198BANCO COOPERATIVO ESPAÑOL, S.A.BCOEESMMXXX
0200ANDBANK ESPAÑA BANCA PRIVADA, S.ADEGRESBBXXX
0211EBN BANCO DE NEGOCIOS, S.A.PROAESMMXXX
0219BANK OF AFRICA EUROPE, S.A.BMCEESMMXXX
0229WIZINK BANK, S.A.POPLESMMXXX
0232BANCO INVERSIS, S.A.INVLESMMXXX
0234CBNK BANCO DE COLECTIVOS, S.A.CCOCESMMXXX
0235BANCO PICHINCHA ESPAÑA, S.A.PICHESMMXXX
0240BANCO DE CRÉDITO SOCIAL COOPERATIVO, S.A.BCCAESMMXXX
0241A&G BANCO, S.A.AYGBESMMXXX
50 institutions. Source: Bank of Spain, account holders in TARGET-Banco de España by bank code, file dated 07/04/2026. A bank missing here may still have a BIC: ask it. See the PDF

SEPA

Do you need the BIC for a SEPA transfer?

Not for euro transfers within the EU. Article 5(7) of Regulation (EU) No 260/2012 says payment service providers shall not require users to indicate the BIC: from 1 February 2014 for national payments (Member States could delay this to 1 February 2016) and from 1 February 2016 for cross-border ones. The Bank of Spain puts it simply: since February 2016 it is no longer needed within SEPA. Outside that scope, your bank may ask for it.

Code

Validate a BIC in JavaScript and Python

Format only, like this tool: no code can tell whether a BIC exists, because there is no check digit.

bic.js · JavaScript
// BIC (SWIFT code) format under ISO 9362:
// 4 alphanumeric (institution) + 2 letters (country) + 2 alphanumeric (location)
// + 3 optional alphanumeric (branch).
const BIC = /^[A-Z0-9]{4}[A-Z]{2}[A-Z0-9]{2}([A-Z0-9]{3})?$/;

function parseBic(text) {
  const bic = text.replace(/[\s.\-]/g, "").toUpperCase();
  if (!BIC.test(bic)) return { validFormat: false, bic };
  return {
    validFormat: true,
    bic,
    bic11: bic.length === 8 ? bic + "XXX" : bic, // BIC8 = BIC11 ending in XXX
    country: bic.slice(4, 6),
    test: bic[7] === "0", // 0 in position 8: Test & Training
  };
}

// BICs have no check digit: this does not tell you whether it exists.
parseBic("deut de ff"); // { validFormat: true, bic11: "DEUTDEFFXXX", country: "DE", ... }
bic.py · Python
import re

BIC = re.compile(r"^[A-Z0-9]{4}[A-Z]{2}[A-Z0-9]{2}([A-Z0-9]{3})?$")

def parse_bic(text: str) -> dict:
    """ISO 9362 format. Does not check that the BIC exists."""
    bic = re.sub(r"[\s.\-]", "", text.upper())
    if not BIC.match(bic):
        return {"valid_format": False, "bic": bic}
    return {
        "valid_format": True,
        "bic": bic,
        "bic11": bic + "XXX" if len(bic) == 8 else bic,
        "country": bic[4:6],
        "test": bic[7] == "0",   # 0 in position 8: Test & Training
    }

FAQ

BIC and SWIFT code frequently asked questions

Are BIC and SWIFT code the same?

Yes. BIC is the ISO 9362 name; it is called a SWIFT code because SWIFT issues it.

How many characters does a BIC have?

8 or 11. The last 3 (branch) are optional; “XXX” means head office.

How do I get the BIC from a Spanish IBAN?

Digits 5 to 8 are the bank code. This tool looks it up in the Bank of Spain list; if the bank is not listed, ask your bank.

Do I need a BIC for a SEPA transfer?

Not for euro transfers within the EU: Regulation (EU) No 260/2012, Article 5(7), forbids banks from requiring it (cross-border since 1 February 2016).

Does a valid format mean the BIC exists?

No. ISO 9362 has no check digit, so only the format can be checked.

Do you store what I type?

No. Everything runs in your browser and never leaves your device.

About

About this validator

Built by Black Wings, a software studio in Valencia (Spain) working with small and medium businesses. Our validators are free, single-purpose tools that show how we work.

Privacy

What happens to what you type

It never leaves your browser. The check and the Bank of Spain lookup run in JavaScript on your device; the list ships with the page, so no server is queried and nothing is stored.

More in our privacy policy.

Other validators

More free validators

Need this inside your own software?

Validating IBANs and tax IDs when a customer signs up, checking whole lists or connecting invoicing to the bank: that is the kind of work we do at Black Wings.

Tell us about it