Understanding Bank Codes: BIC/SWIFT, CLABE, IFSC and UK Sort Codes
How to read and check a BIC/SWIFT code, a Mexican CLABE, an Indian IFSC and a UK sort code, and why a valid format does not prove the payee is genuine.

Understanding Bank Codes: BIC/SWIFT, CLABE, IFSC and UK Sort Codes
A bank transfer with a wrong code can bounce, cost fees or, worse, reach the wrong account. The Bank Code Validator checks four common formats in one place.
BIC / SWIFT (ISO 9362)
| Part | Characters | Example (DEUTDEFF) |
|---|---|---|
| Institution | 4 letters | DEUT |
| Country | 2 letters (ISO 3166) | DE |
| Location | 2 characters | FF |
| Branch (optional) | 3 characters | XXX = primary office |
A location code ending in 0 marks a test BIC, and one ending in 1 a passive participant. The validator checks the structure and that the country code exists.
CLABE (Mexico)
The CLABE is an 18-digit standardised account number from the Banco de México: 3 digits for the bank, 3 for the city, 11 for the account and a check digit. To compute the check, multiply the first 17 digits by 3, 7, 1, 3, 7, 1 and so on, keep the last digit of each product, add them up and take (10 − sum mod 10) mod 10. For 032180000118359719, the check digit is 9.
IFSC (India)
The Indian Financial System Code identifies a bank branch for NEFT, RTGS and IMPS: four letters for the bank (SBIN for State Bank of India, HDFC for HDFC Bank), a zero, and six characters for the branch.
UK sort codes
Six digits written as 20-00-00. Full validation of an account number needs the modulus checking tables the banking industry publishes, so the validator checks the format only.
Worked examples
| Input | Result |
|---|---|
| DEUTDEFF | Valid BIC, Germany, primary office |
| BOFAUS3NXXX | Valid 11-character BIC |
| DEUTZZFF | Fails: ZZ is not a country |
| 032180000118359719 | Valid CLABE |
| 032180000118359718 | Fails the check digit |
| SBIN0005943 | Valid IFSC, State Bank of India |
Valid is not the same as safe
Invoice fraud often works by sending a message that the supplier's bank details have changed. The new details pass every format check because they are real accounts, controlled by criminals. Always confirm changed bank details by calling the supplier on a number you already have, not one in the email. Where available, use payee name checks such as Confirmation of Payee in the UK and Verification of Payee in the euro area.
Test several scenarios
Numbers from any model are only as good as the inputs. Before acting on a result, change the key assumptions up and down and see how much the answer moves. If a small change in one input flips the conclusion, treat the result with caution and look for better data. Keep a short note of the inputs you used, the date and the source of each figure, so that you can repeat the calculation later and compare it with what actually happened. Over time this record shows which assumptions were reliable and which were too optimistic, and it makes your next decision better informed.
Share the result clearly
When you present the result to colleagues, a lender or an investor, show the inputs next to the outputs and explain the main assumption in one sentence. People trust numbers they can trace. A short table with the key figures, the date and the source of the data is usually more convincing than a long explanation.
Cleaning supplier data
Before a payment run, paste the bank code column from your supplier master file into the validator to find codes that were cut short, typed with the letter O instead of a zero, or copied with extra spaces. Fixing them before payments go out avoids returned transfers, bank charges and late payment complaints. Record when and how each supplier's bank details were last verified.
Limits
A format and check-digit test, not a bank directory or payment advice.



