How an IBAN's Bank Code Becomes a BIC
An IBAN carries a national bank code, not a BIC. Where the two are the same by definition, where the LEI route must be narrowed by country, and how it fails in practice.
Written by Faruq Zhao Updated 2026-10-31
People expect the BIC (Business Identifier Code) to be buried inside the IBAN (International Bank Account Number), the way a sort code sits inside a British account number. It isn't. An IBAN carries a national bank identifier; a BIC is a global one, issued through a registry that has never heard of national account formats. Turning the former into the latter is a mapping job, and it fails in a few specific, predictable ways.
This site maintains that mapping, so the failure modes below were all hit for real, not theorized. One of them is the reason a major French bank's BIC in this site's table does not come from the route that looks more authoritative.
The one-paragraph version: in 24 countries the IBAN's bank identifier is by definition the first four characters of the BIC — just read it off. The rest go through national registries, and among those, Italy and Spain take a two-step "bank code → LEI → BIC" route — which must be narrowed by country, or you lose the country's largest institutions entirely.
Two registries that never talk
The IBAN belongs to ISO 13616: each national registry decides how its own account format is laid out. Germany picked an 8-digit Bankleitzahl plus a 10-digit account; the UK picked a 4-letter bank code, a 6-digit sort code and an 8-digit account. Nobody coordinated these decisions.
The BIC belongs to ISO 9362, administered by SWIFT: 8 or 11 characters — 4 for the institution, 2 for the country, 2 for the location, plus an optional 3-character branch suffix where XXX means head office. What that registry records is that a given BIC exists; it records nothing about which national bank codes any institution holds.
So there is no formula. Given an IBAN you can slice out the bank code, but to read its meaning you have to consult someone else's data.
Where this is not an inference but a definition
In 24 countries the problem does not exist, because their IBAN bank identifier is the first four characters of the BIC. Take the Dutch INGB, append the country code and location code, and you have INGBNL2A — the head-office BIC. This is not a lucky rule of thumb; those countries designed their account formats around the BIC bank code.
Which countries
Azerbaijan, Bahrain, Belarus, Bulgaria, the Dominican Republic, El Salvador, the British Virgin Islands, Gibraltar, Guatemala, Iraq, Ireland, Jordan, Kuwait, Latvia, Lebanon, Malta, Mauritius, the Netherlands, Pakistan, Palestine, Qatar, Romania, the Seychelles and the United Kingdom.
It's a rule, not a guess
INGB plus the country and location codes is INGBNL2A. In these countries, "deriving" the BIC means reading it out — there is nothing approximate about it.
The limit is precision, not accuracy
A derived BIC points to head office. If you need the specific branch holding the account, look at the IBAN's separate branch field — which not every country has.
The two-step route, and why it must be narrowed
Italy and Spain publish something more useful than a finished list. Banca d'Italia lists an LEI (Legal Entity Identifier) next to every bank's ABI code; the Banco de España does the same for its 4-digit bank codes. An LEI is a 20-character global identifier, and the GLEIF registry publishes a mapping from LEIs to BICs.
So there is a route: national bank code → LEI → BIC. It works — and it has a trap that the first implementation fell straight into.
A large banking group's LEI maps to many BICs. BNP Paribas's LEI carries 76 of them, BBVA's 14, Intesa Sanpaolo's 12 — one for every country and branch the group operates in.
The first implementation saw "more than one BIC" and skipped the entry, on the theory that guessing is worse than silence. That call was wrong, and expensively so: what it discarded was precisely each country's largest institutions — the ones people look up most. Intesa Sanpaolo, UniCredit and Banca d'Italia quietly vanished from the Italian table.
The fix is narrowing by country, not giving up: given an Italian bank code, take the BIC that institution uses in Italy. That narrows to a unique answer almost every time; the cases that still don't narrow are genuinely ambiguous, and those are the ones to skip.
The narrowed answers were not taken on faith: checked against independent data that already existed in the comparison table, the BICs recovered by narrowing matched exactly. Narrowing was not lowering the bar to fill the table — it recovered the answers that should have been there all along.
Sometimes the same route is simply wrong
Narrowing made the two-step route usable; it did not make it trustworthy. One case is worth knowing, because it explains how an official registry and a third-party table can each be internally consistent and still disagree.
The GLEIF mapping is self-reported, and at least one relationship no longer matches reality: Société Générale's LEI maps to NEWGFRP1XXX — its subsidiary Newedge's BIC. Run French bank codes through the route and you get: correct for BNP Paribas, wrong for Société Générale, and nothing at all for LCL (whose LEI maps to no BIC). Of 186 shared codes, 60 disagreed with the existing table.
In a payment, a wrong BIC is worse than no BIC — the sending bank routes the message toward an institution that is not the payee's. So this site rejected the route for France rather than adopt it for the sake of coverage. Knowing which of your sources is wrong is worth more than having one more source.
Why an Austrian bank code returns a German BIC
A lookup result whose BIC country doesn't match the IBAN's country is not necessarily a bug. Teambank AG is a German institution with an Austrian branch: Austrian code 76032, BIC TEAMDE71TAT. The country letters in a BIC name the institution's home, not the account's location. Foreign branches normally use the parent's BIC with a branch suffix.
The reverse happens too: a code that belonged to one bank gets reassigned after a merger. Norway's clearing range still contains the code of the former Totens Sparebank, while the register now lists SpareBank 1 Østlandet. If a code returns a bank you didn't expect, a merger is more likely than a data error — check the register's version date before concluding anything.
When a lookup is supposed to come back empty
Three situations produce no BIC, and none of them means the IBAN is invalid:
No public machine-readable register
The code never entered any table — the code isn't wrong, the table just doesn't cover that country.
The code was retired
And no successor was recorded — finding nothing for a historical institution is the correct result.
The institution has no BIC
For institutions that don't exchange cross-border messages (community savings banks, purely local cooperatives) that's normal and means nothing at all.
Telling the three apart is what the source field is for: it names the register and version an answer came from, or says the value was derived. With it you can tell whether an empty result means the table doesn't cover the country, or covers it and the institution genuinely has no BIC — two very different facts to carry into a payment.
Once you have the BIC
Use it to identify the institution, and assume head office — unless the BIC does not end in XXX. For a payment, the BIC plus the IBAN are what the sending bank wants; the account holder's name is what you verify with the payee yourself.
If you're checking an existing BIC, the same logic runs in reverse: the BIC directory can tell whether it exists and who owns it, but not which national codes the institution holds.
One more thing worth remembering: BIC and IBAN are for the sending bank, not for confirming the money reaches the right person. Right institution is not right account — one institution can hold millions of accounts, and a BIC only points as far as the institution.
The practical order: use the BIC to confirm institution and country, then check whether it ends in XXX (it does → you have head office, not a branch), and only then verify the name and account with the payee. A BIC catches a mistyped institution; it cannot catch a mistyped account.
FAQ
Can I get a BIC from an IBAN?
In most countries this site covers, yes — by lookup, not arithmetic. In 24 of them the IBAN's bank identifier is the first four characters of the BIC, and the head-office BIC reads straight off. Elsewhere the bank code is a national one and has to be resolved through a register.
Why does an Austrian bank code return a German BIC?
Because the institution is German and the account is at its Austrian branch. The country letters in a BIC name the institution's registration, not the account's location. Foreign branches normally reuse the parent BIC with a 3-character branch suffix.
What's an LEI, and why is it in the middle?
An LEI (Legal Entity Identifier) is a 20-character global identifier for a legal entity. Italy and Spain publish theirs alongside the national bank codes, and GLEIF publishes the LEI-to-BIC mapping — that's what makes the two-step route possible, and also what makes "one LEI, many BICs" a problem that must be narrowed by country.
Why did the same bank code start returning a different BIC?
Usually the code was reassigned after a merger, or the institution changed its BIC. That's exactly why registers carry version dates. When an answer looks stale, compare the source's version date before assuming the lookup broke.
Are BIC and SWIFT code the same thing?
Yes. BIC is the formal name under ISO 9362 (Business Identifier Code); "SWIFT code" is the everyday name for the same thing, because the registry is administered by SWIFT.
Further reading
- IBAN structure and check digits — first be sure which slice of the IBAN the bank code actually is.
- Where an IBAN checker gets its bank data — which countries publish real registers, and the three provenances behind the table.
- IBAN lengths and formats for 89 countries — lengths, field widths and data sources side by side.
- IBAN validator — paste a number and see the split and the bank behind it.
Tools used in this guide
IBAN Validator
Check and validate IBANs from 89 countries free online. MOD-97 and BBAN checks run in your browser; bank name, BIC and SEPA status are looked up via our API.
IBAN Calculator
German IBAN calculator: enter the BLZ bank code and account number to get a compliant 22-character IBAN with MOD-97 check digits. Built in your browser; bank lookup via our API.
More guides
How Minecraft Locator Bar Colors Are Calculated (Java and Bedrock)
Where locator bar colors come from: the UUID hash on Java Edition, the join-order assignment on Bedrock, the Xbox ID mapping through Geyser, and the /waypoint syntax.
HEIC and JPEG: What iPhone HEIC Files Are and When to Convert Them
How the HEIF container relates to HEVC, why Apple chose it, how it compares with JPEG on size and compatibility, when conversion is mandatory, and how to convert in bulk offline.
Passport and Visa Photo Requirements: Pixels, DPI and File Size Limits
Why ID photos fail at the last step: print sizes to pixels, where 50 KB and 100 KB limits come from, why some are ranges not caps, and how to hit one without losing the face.