What a SWIFT code tells you, and how to check one before you pay
A supplier emails to say they have changed banks. The new details are in the signature: an IBAN, a bank name and a SWIFT code. Your payment system wants all three, and the SWIFT code goes into a field that nobody ever looks at again. But it is the part of the payment instruction that names the bank, and if it is wrong, an international transfer goes to the wrong place, or bounces back weeks later minus the fees.
So it is worth knowing what those eleven characters say, and how to check that they name the bank the email claims. This post covers how a BIC is built, why no free list has every one, what the open data that does exist turns up, and what a checked SWIFT code proves. The examples were worked out with the SWIFT code lookup, which gives every BIC a page of its own.
Eleven characters, four parts
SWIFT code is the everyday name. The standard, ISO 9362, calls it a Business Identifier Code, or BIC, and SWIFT is the registration authority that hands them out. Take Commerzbank’s, COBADEFFXXX:
- COBA: the institution’s own code, chosen when it registered. Every BIC issued so far has four letters here, although the 2014 edition of the standard allows digits.
- DE: the country where the institution is registered, an ISO 3166 code. Kosovo, which has no ISO code yet, uses XK.
- FF: the location. SWIFT assigns these, and they often echo a city (FF for Frankfurt), but they are not a list of cities you can decode.
- XXX: the branch. XXX is the head office, and leaving the branch off gives the same BIC, so
COBADEFFandCOBADEFFXXXare one code written two ways. Anything else names one branch or department.
One character carries more than it looks. The second character of the location code is a flag: a 0 means a test-and-training BIC, never used for real money; a 1 means the institution isn’t connected to the SWIFT network itself. The 1 is far more common than you might think, as we’ll see.
There is no check digit. An IBAN has two, and they catch any single mistyped character. A BIC has none, so a typo produces another perfectly well-formed BIC. The only ways to catch one are the layout (eight or eleven characters, a country code that exists) and a list that says whether the BIC is real.
The directory nobody gives away
SWIFT keeps the complete list of BICs, with names and addresses, and sells it as the BIC Directory. Banks buy it; their systems check every outgoing payment against it. The sites that show a BIC’s bank for free are mostly copies of old directory extracts, ads around them, with no date and no source.
There is a free, official alternative, and it is not well known. Each month, tens of thousands of BICs are published together with the Legal Entity Identifier (LEI) of the institution behind them. An LEI is a 20-character code for a legal entity, required for financial reporting in most of the world, and every LEI’s legal name, registered address and status is open data. Join the two and a BIC leads to a named, addressed institution.
The release of 30 October 2026 has 39,270 BICs in 222 countries. That is not every BIC: an institution without an LEI isn’t in it, and many small banks have none. To fill some of the gap, the lookup also reads the official bank code lists of fourteen European countries backwards (the same lists the IBAN to BIC finder uses), so a German savings bank without an LEI is still found through Germany’s official bank code list. Two more sources close other gaps. Big banks’ main BICs sometimes drop out of a release while still in use: Wells Fargo’s WFBIUS6S was last in the file of August 2024. So the lookup also keeps BICs from earlier releases, back to 2018, whose institution’s LEI is still active, and says when one is missing from the latest. And a published list of the banks reachable for SEPA payments gives at least a name for European BICs that are in none of the others, such as Revolut’s REVOLT21. A BIC that is in none of them is reported as valid format, not listed: it may be real, and the tool says so rather than guessing.
What the open data turns up
Reading 39,270 BICs at once shows things you would never notice one payment at a time.
Almost half of the file is British. 19,017 of the BICs are registered in the UK, more than the next ten countries together. The reason is branches: UK banks give branches BICs of their own, mostly with a 1 in the location code. Halifax’s four letters, HLFX, appear on more than 2,400 BICs alone. Germany, with a bigger economy, has 1,692 in the file.
The four letters outlive the bank’s name. HSBC’s main BIC in London is MIDLGB22: MIDL for Midland Bank, which became HSBC Bank plc in 1999. The letters were never changed, and the LEI record gives today’s name, HSBC BANK PLC. Every one of Halifax’s HLFX BICs leads to BANK OF SCOTLAND PLC, the legal entity that has held Halifax’s business since 2007. So when the name on an invoice and the four letters in its BIC don’t match, that is not by itself a warning sign. The lookup shows which legal entity stands behind the letters, which is the question that matters.
Not every BIC belongs to a bank. CALASTONE LIMITED, a London company that runs a network for investment fund orders, holds 1,884 BICs in the file. Fund managers, central securities depositories, payment institutions and corporate treasuries all have BICs. A BIC identifies a participant in financial messaging, not necessarily somewhere you can open an account.
Most BICs aren’t on the SWIFT network. 21,652 of the 39,270, 55%, have a 1 as the second character of the location code: they identify an institution that isn’t connected to SWIFT itself. In Germany it is the norm for savings and cooperative banks. Of the 3,075 different BICs in Germany’s bank code list, 1,760 are of this kind, most of them Sparkassen (BYLADEM1…, HELADEF1…) and Volksbanken (GENODE…). They work fine for SEPA payments, where the BIC is only an identifier. A SWIFT payment to them goes through a bank that is connected, and the payer’s bank sorts that out.
Big banks hide hundreds of bank codes behind one BIC. In Germany’s bank code list, 285 bank codes use Commerzbank’s COBADEFFXXX: branches, back offices and service centres, each with a bank code of its own. It is the reverse of what people expect, that each branch has its own BIC. In Germany the branch is in the IBAN’s bank code, and the BIC is often the head office’s.
Four BICs, checked
A correct one. COBADEFFXXX comes back as found: COMMERZBANK Aktiengesellschaft, Kaiserstraße 16, 60311 Frankfurt am Main, LEI 851WYGNLUQLFZBSYGB56, with the 285 bank codes from Germany’s list underneath. The LEI can be looked up in the global LEI system, where the legal form, the parent company and the registration history are recorded too.
A typo. Type the O as a zero: C0BADEFFXXX. That is still a well-formed BIC as far as the standard goes, since digits are allowed in the first four characters. But no BIC has ever been issued with one, and the lookup knows it: the result is valid format, not listed, with a note about the digit and an offer, “Did you mean COBADEFFXXX?”, because swapping 0 for O gives a listed BIC. The same works for a 1 typed for an I.
An unknown branch. COBADEFF123 has a branch code that isn’t in any of the lists. The first eight characters are Commerzbank’s, so the result is bank found, branch not listed. That is a deliberate middle ground: branch BICs are often missing from the open data, so this one may well exist. If the BIC came from the account holder, it is probably right; if you typed it from memory, use the head office’s.
The wrong number entirely. Paste DE89 3704 0044 0532 0130 00 into a BIC field and the lookup recognises an IBAN: a country code, two check digits and far too many characters. It says so and points to IBAN to BIC, which finds the BIC from the bank code inside the IBAN. It doesn’t give a link to the result, either: an IBAN is somebody’s bank account, and a shareable link would carry it around.
What a correct BIC proves
A found BIC proves one thing: those eleven characters name the institution on the card. It doesn’t prove the account exists, that it belongs to your supplier, or that the email with the new details came from them.
That matters because changed bank details are the oldest trick in invoice fraud. The fraudster sends an email, often from a lookalike address or a hacked mailbox, saying the supplier has moved banks. The new IBAN and BIC are real; they belong to an account the fraudster controls. Every check in this post passes. What gives it away is the institution, sometimes: a German engineering firm whose “new bank” is a payment institution in another country, or a BIC whose LEI belongs to a company that has nothing to do with the bank named in the email. The lookup shows the name, address and country behind the code, so that mismatch is visible. But the real defence is to call the supplier on a number you already have, not the one in the email.
Two more limits. The lists are snapshots: the BIC data is monthly, banks merge between updates, and a BIC can be retired. When an institution’s LEI record marks it as inactive (merged, taken over or dissolved), the card says so, and if a national list still has the BIC in use, it says that too. A small Bavarian savings bank shows how both can be true at once: BYLADEM1GUN belongs to Vereinigte Sparkassen Gunzenhausen, which its LEI record lists as inactive, while Germany’s bank code list still has a bank code using the BIC, under the old name marked “-alt-”. Which is right on the day you pay is a question for the account holder. And “not listed” never means fake: SWIFT’s full directory is far bigger than the open data.
Practical tips
- Check the name, not just the format. A BIC that is laid out right can still be the wrong bank. Read the institution and country back against what you expected.
- Don’t worry about 8 versus 11 characters. If the 11-character form ends in XXX, they are the same BIC. Use whichever the form wants.
- Expect old names. MIDL is HSBC and HLFX is Bank of Scotland. The letters are history; the LEI record is current.
- A 1 in the location is normal. It means the institution isn’t on SWIFT itself, which is true of most German Sparkassen and Volksbanken. SEPA payments to them work as usual.
- Keep the page. Every BIC in the lookup has its own address, like /finance/swift-code-lookup/COBADEFFXXX: put it in the supplier record next to the BIC, and the next person can see what was checked.
- Get BICs from IBANs where you can. For accounts in the fourteen countries with a national list, IBAN to BIC derives the BIC from the IBAN itself, which avoids a second thing to mistype.
- Confirm changed bank details by phone. No lookup can tell you who controls an account.
The SWIFT code field will keep being the one nobody reads. It takes a few seconds to make sure it names the bank the invoice says, and the open data to do that has been there all along, in a monthly file most people have never heard of.