Published on Nov 28, 2024Thelma NwosuRead time: 11m3.8K viewer
IBAN vs SWIFT Code: Which One Identifies the Account and Which the Bank

IBAN vs SWIFT Code: Which One Identifies the Account and Which the Bank

A payout form usually has one box for bank details, and the support queue shows what that costs. Someone types an IBAN, leaves the SWIFT field empty because an article said the IBAN was all they needed, and the transfer waits in a repair queue while the seller checks their balance every morning.

Both codes are short strings that travel with an international payment, and both get called a bank code on invoices. They do different jobs. One names the account, the other names the institution that holds it, and each one fails in its own way when it is wrong.

European law states the split more precisely than most payment pages do.

Under Directive (EU) 2015/2366, the only determinant of the correct execution of the transaction with respect to the payee is the unique identifier, as defined in that Directive, and PSPs are not required to verify the name of the payee.

Regulation (EU) 2024/886, recital 20, EUR-Lex

That sentence is the argument of this article in one line. The account identifier decides where money lands. Nothing in the standard flow checks who owns the account, which is why the same regulation then adds a payee verification service in Article 5c.

What the two codes do

An IBAN identifies one account at one bank in one country. A SWIFT code, which is the same value as a BIC, identifies an institution and one of its offices. Neither is a replacement for the other, because a payment has to reach an institution before it can be credited to an account.

The difference between an IBAN and a SWIFT code is the two hops in the message. The sending bank needs an address for the receiving institution so the message can be routed. That is the SWIFT code. Once the message arrives, the receiving bank needs to know which of its customers gets the money. That is the IBAN. A message with an address and no account number has nowhere to land, and an account number with no address cannot be routed.

What an IBAN is built from

An IBAN has three parts: a two letter country code, two check digits, and the national account number of that country, which the standard calls the BBAN. Total length runs from 15 characters to 34 depending on the country. Norway uses 15, Belgium 16, Germany 22, Turkey 26, Malta 31.

The two check digits come from a modulus 97 calculation. You move the first four characters to the end, turn the letters into numbers, divide by 97, and a valid IBAN leaves a remainder of 1. That calculation catches a mistyped character before the payment moves, which makes it the cheapest failure you can have.

The part worth understanding is the bank code hidden inside the BBAN, because its position changes by country. In Belgium it is the first three characters after the check digits. In Germany it is the first eight. In the Netherlands it is four letters. In France the BBAN opens with five digits for the bank and five for the branch. You cannot slice a bank code out of an IBAN at a fixed position across countries, which is why a lookup beats a regular expression.

What a SWIFT code is built from

A SWIFT code is 8 or 11 characters: an institution code, a country code, a location code, and an optional branch code. It is defined in ISO 9362, and SWIFT assigns and publishes the codes, so the market uses both names for the same string. The character by character breakdown, including the test and passive codes that look valid and cannot receive money, is in our guide to what a SWIFT code proves before a payout.

For this comparison, one property is enough. A SWIFT code never contains an account number, so it cannot identify the beneficiary. It points at a building, not at a person.

Why a payout asks for both

The two fields exist because the message travels through two systems. Cross border transfers run over the SWIFT network or a correspondent chain, where each hop needs an institution address to forward the message. The credit at the end needs an account identifier that the receiving country recognises.

That is also why the two codes come from different registries. SWIFT maintains the BIC directory, and each country maintains its own IBAN format and length. An institution can change its BIC without the account changing, and an account can close while the BIC stays valid.

When the BIC is not needed

Regulation (EU) No 260/2012 set the end of the requirement to communicate a BIC on euro credit transfers inside the EU at 1 February 2016, on the basis that in most Union payments the IBAN alone identifies the account. That is why a supplier in the Netherlands can invoice with nothing but an IBAN and still get paid.

The rule that survives in practice is narrower than "Europe needs no BIC". A euro transfer to a SEPA country does not need one. A dollar transfer to a European bank does. A euro transfer to a country outside SEPA does. And a payment that starts outside the EU follows the rules of both ends, which usually means the BIC is required.

Do not encode that as a country list in your code. Greip's IBAN lookup returns country.is_sepa and country.currency on every validation, so the form can decide at runtime whether the BIC field is required, optional, or irrelevant for that corridor.

Mark the BIC field optional only when is_sepa is true and the payout currency is EUR. Any other combination still needs an institution address.

IBAN vs SWIFT and BIC vs IBAN: the four questions people ask

Search traffic on this topic is mostly four variants of one question. Here they are with the answer and the sentence behind it.

QuestionAnswerReason
Is an IBAN the same as a SWIFT code?NoOne identifies an account, the other identifies an institution
Does an IBAN contain a SWIFT code?NoThe IBAN holds a country code, check digits and a national account number
Do I need both?Only outside SEPA, or outside the euroEuro transfers inside SEPA route on the IBAN alone
Is BIC the same as SWIFT code?YesBIC is the standard's name, SWIFT is the network that publishes it

The fourth row causes more work than it should. Two forms collect "BIC" and "SWIFT code" as separate fields, a database gets two columns, and someone eventually has to reconcile them. Store one value under one name and label it with both terms.

Is an IBAN the same as your account number?

In most SEPA countries, yes in substance and no in form. The IBAN contains the domestic account number, with the country code and the check digits wrapped around it. The number your bank prints on a statement is the same account, written the shorter way.

Two consequences follow. First, a customer who gives you the domestic number instead of the IBAN is not wrong about owning the account, they are giving you an incomplete identifier, and a validation will reject it. Second, some banks still use the local number internally, so a support agent looking at a core banking screen may see a different string than the one on your payment record. Store both when you can, and treat the IBAN as the value that travels.

Where IBAN does not exist

IBAN is a European standard that spread to much of the world, and it stopped short of several large markets. A payout form that requires one breaks for a US seller on the first attempt.

CorridorAccount identifierInstitution identifier
Euro areaIBANBIC, optional inside SEPA
United StatesAccount numberABA routing number, or a BIC for an international wire
CanadaAccount numberTransit and institution numbers
AustraliaAccount numberBSB
IndiaAccount numberIFSC
JapanAccount numberBank and branch codes

The practical rule is that the identifier fields should be required by destination country, not by your own preference. A single IBAN field with a validation error for every US seller turns a payout feature into a support category.

Comparing the BIC against the bank behind the IBAN

This is the check most payout forms skip, and it is the only one that tests the two fields against each other. An IBAN lookup resolves the institution that holds the account, so you can compare it with the BIC the customer typed.

curl -X GET "https://v2.greipapi.com/lookup/iban/BE71096123456769" \
  -H "Authorization: Bearer $GREIP_API_KEY"

The response returns the bank that belongs to that account.

{
  "success": true,
  "data": {
    "is_valid": true,
    "iban": "BE71096123456769",
    "country": { "iso3166": "BE", "currency": "EUR", "is_sepa": true },
    "bank": { "identifier": "GEBABEBB", "name": "BNP Paribas Fortis", "bban": "096123456769" }
  }
}

Now compare. Uppercase the submitted BIC, drop the spaces, and test its first eight characters against bank.identifier.

const submittedBic = "GEBABEBB";
const bicOnAccount = response.data.bank.identifier;
const agrees = bicOnAccount
  ? submittedBic.slice(0, 8).toUpperCase() === bicOnAccount.toUpperCase()
  : null;

Three outcomes need three different responses. When the two agree, the form is consistent and the payment can continue. When they disagree, the account sits at a different institution than the one the customer named, and that is a hold while someone confirms the details. When bank.identifier comes back as null, the IBAN is valid in format but the institution is not resolvable for that corridor, and a manual check costs less than a recall.

The same response fills the field for the customer instead of making them hunt for it. Show the returned bank name next to the IBAN, and let the payer confirm. Someone who sees "BNP Paribas Fortis" against an IBAN they meant to send to a German bank catches the mistake before the money moves. The IBAN validation service returns the bank name, BIC and SEPA status in the same call, and the endpoint reference lists every field.

Why a valid pair still is not proof of ownership

A passing IBAN and a matching BIC mean the account exists, the institution exists, and the pair is consistent. They say nothing about who controls the account, whether it is a mule account, or whether the person who sent you the details owns it.

Regulation (EU) 2024/886 answers that with verification of the payee. Article 5c requires a payer's provider to offer a check that matches the account identifier against the payee name before the payer authorises the transfer, and Article 5b makes that service free of charge for payment service users. The result is one of three states: match, near match, or no match. If you build payout screens, those three outcomes map onto your own warning states, so a near match becomes a confirmation step rather than a block.

Outside the EU, the same gap is covered by name checking services, bank directory lookups and risk scoring on the request behind the payment details. None of it changes the underlying fact: an IBAN and a BIC describe an account and a bank, and ownership is a separate question.

What to change in your payout form

Separate the values before you improve the validation. Four fields, no merging:

  • Account identifier, which is the IBAN where the country uses one and the local account number where it does not
  • Institution identifier, which is the BIC or the local routing number for that corridor
  • Account holder name, exactly as the bank holds it
  • Destination country and currency

Two habits pay for themselves on the first week of support tickets. Accept spaces in an IBAN and normalize on the server, because bank statements print them in groups of four. And never auto-correct a submitted identifier. If the check digits fail, show the error and let the payer retype, because a silent correction maps a typo onto a real account.

The rest of the control set around a first payout sits in our guide to IBAN validation before a payout, and the worked example in the docs shows the same checks in a payment flow. Neither replaces the comparison above, which takes one line once you have the lookup response.

FAQ

Is an IBAN the same as a SWIFT code?

No. The IBAN identifies one account at one bank in one country, and the SWIFT code identifies the institution and office that hold it. A payment needs the account to credit and, outside SEPA, the institution to route it.

Does an IBAN contain a SWIFT code?

No. An IBAN carries a country code, two check digits and the national account number. A bank code is embedded in the national part for some countries, and a lookup can return the institution's BIC from it, but the BIC itself is a separate value.

Do I need a SWIFT code if I have an IBAN?

For a euro transfer to a SEPA country, no. Regulation (EU) No 260/2012 ended the BIC requirement for those payments on 1 February 2016. For a transfer outside SEPA, or in another currency, the receiving side still needs the institution's BIC.

Is a BIC the same as a SWIFT code?

Yes. BIC is the name used in the ISO 9362 standard, and SWIFT is the cooperative that assigns and publishes the codes. The eight or eleven characters are the same value, so a form should accept either label.

Do US banks use IBANs?

No. A US account uses an ABA routing number for domestic transfers, and a BIC plus the account number for international wires. A payout form that requires an IBAN will reject every US seller.

Can a valid IBAN belong to someone else?

Yes. The check digits prove the string is well formed, not that the beneficiary owns it. Ownership needs a name check or a payee verification service, and neither is part of the IBAN or the SWIFT code.

Get started

Start protecting your business today

Our service is trusted by thousands of businesses worldwide.

  • 1,000 requests during trial
  • Cancel anytime

Related Articles