SWIFT BIC Code Format: What 8 or 11 Characters Prove Before a Payout
Introduction
A payout that fails on a data error costs more than the transfer fee. It costs the FX quote you have to take again, the recall you have to chase, and the customer who now trusts your payment page less. Small formatting mistakes are the usual cause of that failure.
When analysing payment exceptions on the Swift network, we found that 72% were the result of formatting errors, account issues and invalid data. Swift, Payment Pre-validation
The BIC is the field most teams check last, and the one most likely to be quietly wrong. This guide reads the code character by character, shows what each part proves about the bank, and then covers the checks that catch the errors a format check will never see.
What a BIC identifies
A BIC points at an institution and one of its offices. It does not point at an account, a person or a company. That distinction matters when you validate it, because a correct BIC only tells you that the bank exists and where it is registered. It says nothing about whether the beneficiary exists, whether the account is open, or whether the name you hold matches the account holder.
Business Identifier Code is the name in the ISO 9362 standard. Banks, brokers, custodians and payment institutions each get one when they join the network. A corporate can hold one too, and that is common for treasury operations that send their own messages rather than going through a bank.
BIC code format: reading the eight characters
The short form is eight characters, split as AAAA BB CC:
- Positions 1 to 4, the institution code. Four letters that identify the bank or business. Most are short forms of the name, and the same institution keeps them across countries only when the registry assigns them so.
- Positions 5 and 6, the country code. Two letters from ISO 3166-1. This is the country where the office is registered, not the country where the payment is going or the currency being used.
- Positions 7 and 8, the location code. Two characters, letters or digits, that locate the office inside that country. A digit in the second position carries meaning:
0marks a test BIC that no live payment should ever use, and1marks a passive participant that does not connect to the network itself.
A BIC that ends in a test code is a real failure case. The format looks right, a basic pattern check passes it, and the institution cannot receive anything.
What the last three characters change
The long form adds a three character branch code, giving eleven characters. XXX in those positions means the primary office of the institution, so GEBABEBBXXX and GEBABEBB point to the same place.
Anything other than XXX names a specific branch or a specific service. When a beneficiary gives you an eleven character code, send it as written if your bank accepts it. Shortening it to eight can move the payment to the head office, and a head office that does not hold the account will reject or return it.
A BIC code example, decoded
The Greip IBAN lookup returns GEBABEBB as the bank identifier for a Belgian IBAN, with the bank name BNP Paribas Fortis. Reading it against the format:
GEBAis the institution code assigned to that bank.BEis Belgium.BBis the location code for the office registered there.- There is no branch code, so this is the primary office rather than a branch.
Nothing in those eight characters says which account at that bank the money should reach. That is what the IBAN does, and the two pieces of data answer two different questions.
Is a BIC the same as a SWIFT code?
Yes in practice, with a naming caveat. The identifier is defined by ISO 9362 as a Business Identifier Code. SWIFT assigns and publishes it, so the market calls the same string a SWIFT code, a SWIFT BIC, or a BIC number.
Two details trip people up. The first is length: both names cover the eight and eleven character forms, and a system that accepts only one of them will reject valid data. The second is scope: since the standard moved beyond banks, "bank identifier code" is the outdated reading of the acronym, because payment institutions, brokers and corporates hold these codes too.
Because the two codes answer different questions, the comparison that matters for a payout is the pair, not either one alone. IBAN versus SWIFT code covers how the account number and the institution identifier fit together in one message.
What a valid BIC does not prove
A passing format check leaves most of the risk untouched. Six gaps come up in payout reviews:
- The account may not exist. A BIC identifies the bank, and the account number or IBAN is a separate claim that needs its own validation.
- The name may not match. Beneficiary names are typed, abbreviated and transliterated, and a mismatch is the most common reason a name check fails even when the account is real.
- The beneficiary may not own the account. A valid bank and a valid account still do not tell you who controls it, which is the pattern behind bank drop and mule accounts.
- The currency may not be accepted. A bank can hold an office in one country and refuse a currency you assume it handles.
- An intermediary may sit in the path. Correspondent payments route through another institution, and that hop is where fees and delays appear.
- The country pair may be inconsistent. A BIC in one country with an IBAN in another is a signal worth explaining before you release funds.
The checks that catch what a BIC cannot
Run these as a sequence rather than a single gate, so a failure at one step does not hide a problem at the next:
- Structure check. Length, character set, and a country code that exists in ISO 3166-1. Reject test and passive BICs.
- Existence check. Confirm the code is registered, and compare the returned institution name with the name you hold.
- Account check. Validate the IBAN or account number, including its checksum and the country specific length.
- Country agreement. Compare BIC country, IBAN country, the beneficiary's stated country and the currency.
- Name agreement. Compare the account holder name you were given with the name the bank returns where a name check is available.
- Screening. Run sanctions, PEP and adverse media checks on the beneficiary and on the institution.
When you check bank, card and account data together, the combined view is what exposes a beneficiary that passes each field on its own. Using BIN, BIC and IBAN checks together walks through that combination for card and transfer fraud.
BIC versus routing, sort and BSB codes
Teams in different markets call the same job by different names, and mixing them up is a common source of failed files:
- A routing number in the United States carries nine digits and identifies the institution and the region it clears in.
- A sort code in the United Kingdom carries six digits and identifies the bank and the branch.
- A BSB in Australia carries six digits and identifies the bank and the branch.
- A BIC carries eight or eleven characters and identifies the institution and the office across the network.
A domestic code tells you nothing about how a cross border payment should route, and a BIC tells you nothing about the domestic clearing detail. Your data model needs both fields for a corridor that uses both, and it needs to keep them apart.
Reading a BIC off a statement or an invoice
Taken from a document, the code is often incomplete or reformatted. Three patterns account for most of the errors. Someone copies the eight character form when the message needs the branch. A PDF export drops the trailing characters or adds a space in the middle. An invoice shows the institution code alone, without country and location.
Store what the document shows, along with the document itself, and validate before release. When validation returns a different institution name than the one on the invoice, that is the moment to ask the beneficiary, not after the money has left.
When the BIC and IBAN countries differ
This combination shows up in three ordinary situations. A company holds a euro account at a bank in another member state. A treasury function runs a pooling structure across borders. An individual keeps an account in the country they used to live in.
It also shows up in one bad situation, where the beneficiary details were copied from a different invoice.
The way to tell them apart is context, not the codes. Compare the country against the customer's address, the currency, the payment history for that beneficiary, and the channel that delivered the details. A first payment to a new beneficiary with mismatched countries and a changed bank detail belongs in review, especially when the instruction arrived by email.
BIC lookup in code
Greip validates the IBAN and returns the bank identifier alongside the account country, so one call covers the structure, existence and country checks together.
curl -X GET "https://v2.greipapi.com/lookup/iban/BE71096123456769" \
-H "Authorization: Bearer $GREIP_API_KEY"The response carries what a payout gate needs:
{
"success": true,
"data": {
"is_valid": true,
"iban": "BE71096123456769",
"country": {
"name": "Belgium",
"iso3166": "BE",
"currency": "EUR",
"is_sepa": true,
"swift_official": true
},
"bank": {
"identifier": "GEBABEBB",
"name": "BNP Paribas Fortis",
"branch_code": null
}
}
}Three fields do most of the work. is_valid answers the structure and checksum question. country.iso3166 gives you the comparison for your own country fields. bank.identifier gives you the BIC to compare against the code the beneficiary supplied, and bank.name gives you the string to compare against the name on your record.
The IBAN validation endpoint reference lists every field, including the machine, human and obfuscated formats you need for statements and support tickets. The service page for IBAN validation and insights covers what the lookup returns per country.
Turning the checks into a decision
A validation that only returns true or false leaves your team to decide what to do with it. Map the outcomes instead:
| Outcome | Condition | Action |
|---|---|---|
| Allow | BIC and IBAN valid, countries agree, name matches, screening clear | Release the payout |
| Verify | Name differs in a way that a transliteration explains | Ask the beneficiary for confirmation through a channel you already trust |
| Hold | Countries disagree on a first payment, or the bank details changed recently | Manual review before release |
| Block | Invalid checksum, test BIC, sanctions match | Stop and record the reason |
The value of the table is consistency. Two reviewers looking at the same mismatch should reach the same decision, and the reason code should say which condition triggered it.
What to log for recalls and disputes
Payment recalls and fraud disputes are decided on evidence, and the evidence is what you captured at the moment of the check. Six fields make the difference:
- The BIC and IBAN exactly as supplied, plus the version your validation returned.
- The institution name your data provider returned, with the timestamp.
- The country comparison result and the currency.
- The name match outcome, and whether the check was available for that country.
- The screening result and the reference for the list version used.
- The decision, the reason code, and the reviewer where a person made the call.
Keep those with the payment record rather than in a separate log. A recall six weeks later needs the same fields in the same place.
Where skipping the check costs you
Every returned payment carries a fixed cost and a variable one. The fixed part is the return or recall fee and the investigation time. The variable part is the FX rate you lose on the round trip and the second attempt at the same payment.
There is a second cost that finance teams see later. A payout that lands in the wrong account turns into a recovery case, and recovery depends on the receiving bank's cooperation. Those cases take weeks and rarely recover the full amount.
The Swift figure at the top of this article is the argument in one line. Most exceptions come from data, so the cheapest control sits before the payment leaves, not after it returns.
Choosing a check for your payout flow
Four questions separate a usable check from one that slows the queue:
- Coverage outside SEPA. IBAN validation covers Europe well and leaves the United States, Canada and much of Asia on account number and routing data. Confirm what the provider returns for those corridors.
- Latency inside the flow. A check that adds seconds to every payout will be turned off by operations within a month. Look for a measured execution time on your own traffic.
- Batch and backfill. You will want to re-check beneficiaries you already hold, which means the same logic has to run over a file, not only one payment at a time.
- Explainability. A score with no reason code cannot be defended to a customer or a regulator. Ask what the response returns when it flags something.
For the wider picture on combining bank, card and IP signals around a payout, see our guide to verifying IBAN and BIN before a payment. If the account details are clean and the beneficiary still looks wrong, the next layer is payment fraud analysis, which scores the transaction rather than the account.
FAQ
Is a BIC code the same as a SWIFT code?
Yes. Both names describe the identifier in ISO 9362, which SWIFT assigns and publishes. The BIC is the formal name in the standard, and SWIFT code is the everyday name used by payment teams. Length and format are identical, so a field labelled either way should accept eight and eleven character values.
How do I validate a BIC for a bank that does not use IBANs?
Use the BIC for the institution and validate the account with the domestic scheme instead. A US dollar wire to a US bank carries a routing number and an account number, and the BIC names the receiving institution. Canada, India and several other markets work the same way. Your check needs the right national structure for the corridor, not an IBAN pattern that will never match.
Can a BIC be wrong and still pass a format check?
Yes. A well formed code can name a test BIC, a passive participant, a closed office, or simply an institution that is not the one the beneficiary meant. Only a registry lookup catches those cases, which is why the existence check sits after the structure check.
How do I verify a SWIFT code before sending a payment?
Confirm the length and character set, look the code up in a BIC registry, compare the returned institution name with the name you hold, check that the country matches the IBAN or account country, and then check the account itself. Doing the same on the beneficiary's first payment and again whenever the details change covers most of the risk.
Does an IBAN contain the BIC?
No. The IBAN identifies the account and carries a country code, check digits and a national account part. Some countries embed a bank code inside that national part, and an IBAN lookup can return the bank identifier from it. Other countries provide no bank code in the IBAN at all, which is why the BIC remains a separate field in the message.
What if the BIC country and the IBAN country do not match?
Treat it as a question to answer, not an automatic rejection. Legitimate cross border accounts, currency accounts and pooled structures all produce mismatches. A first payment to a new beneficiary, a recently changed account, or an instruction that arrived by email turn the same mismatch into a hold until someone confirms the details with the beneficiary directly.
Get started
Start protecting your business today
Our service is trusted by thousands of businesses worldwide.
- 1,000 requests during trial
- Cancel anytime