Bulk IBAN and BIC Validator
Operator: Abdulla Al Fahad. How tools are built and checked
An IBAN is a country code, two check digits and a country-specific account number whose length and letter or digit pattern are fixed by the SWIFT registry: 22 characters in Germany, 18 in the Netherlands, 27 in France. A mistyped IBAN in a payment file is rejected by the bank, often days later, so this page applies the structure rules and the ISO 7064 mod 97 check to a whole column first.
It also splits each valid IBAN into bank code, branch code and account part, prints it in groups of four, and checks an optional BIC column for format and country. The country table is bundled, so there is no bank lookup of any kind.
Key features
- Mod 97, country length and per-position pattern (digits, letters or either) for 111 country codes
- Bank code, branch code and account part extracted where the registry defines them
- Expected check digits, and a corrected IBAN offered when only the check digits are wrong
- A BIC column check: 8 or 11 characters, ISO country, location, branch, test BIC, and agreement with the IBAN's country
- IBANs in groups of four, a repeat count, and CSV or XLSX export of all, valid or invalid rows
How an IBAN is laid out per country and how the mod 97 check and BIC format check work
Spaces, dots and hyphens are removed and letters are upper-cased before checking, with a note when case was changed. The country table holds the 89 countries of the SWIFT IBAN Registry as of release 99 (December 2024); changes from later releases are not included. It also holds 22 countries whose banks use IBAN-style numbers without a registry entry, such as Morocco, Algeria and Iran. Those are marked as not in the registry and checked for length, pattern and mod 97 only. French overseas territories use the prefix FR and the Åland Islands FI, so GF or AX are not accepted as prefixes.
How it works
The country code and check digits move to the end, letters become numbers (A is 10 up to Z as 35) and the long integer must leave remainder 1 when divided by 97, computed in chunks so no big-number library is needed. To make check digits, the number is built with 00 in their place and the remainder is subtracted from 98.
Failures are reported at the first failing stage, in the order characters, country, length, structure, checksum. A German IBAN with 20 characters is a length failure whatever its digits; one of the right length with a letter in a digit position reports the position of the letter.
When to run it
- A finance team checking a 4,000 row supplier master export before a payment run.
- A payroll administrator finding which employees' IBANs were pasted with a missing group.
- A developer building a bank-details form who needs sample IBANs of every length and the pattern each country allows.
Running a check
- Drop a table or paste a list of IBANs, optionally with BICs.
- Confirm the IBAN column and the optional BIC column.
- Read the country breakdown and the row results, filtering to invalid rows.
- Export the failures as a CSV, or everything as an XLSX.
Example
A payment run's 12-row supplier list with IBAN and BIC columns
payee,iban,bic
Hartmann Metallbau GmbH,DE89 3704 0044 0532 0130 00,COBADEFFXXX
Dupont SARL,FR14 2004 1010 0505 0001 3M02 606,PSSTFRPPSCE
Rossi SRL,IT60X0542811101000000123456,BCITITMM
Brightwater Cleaning Ltd,GB82 WEST 1234 5698 7654 32,NWBKGB2L
Harbourside Print Ltd,GB82 WEST 1234 5698 7654 33,NWBKGB2L
Jansen BV,NL91ABNA0417164300,ABNANL2A
Keller Elektro GmbH,DE89 3704 0044 0532 0130,
Weber Druck GmbH,de89370400440532013000,deutdeff
Nordlys Transport AS,XX89370400440532013000,
Lindqvist Bygg AB,370400440532013000,
Zürcher Treuhand AG,CH9300762011623852957,UBSWCHZH80AA
Tripoli Marine Supplies,LY83002048000020100120361,Results
8 of 12 valid (one of them with a BIC warning), 4 not valid
Hartmann Metallbau GmbH: valid, bank code 37040044, account part 0532013000
Harbourside Print Ltd: fails mod 97, the check digits would be 55 not 82, corrected IBAN GB55WEST12345698765433
Keller Elektro GmbH: Germany IBANs have 22 characters; this has 20
Nordlys Transport AS: XX is not a country that issues IBANs in this table
Lindqvist Bygg AB: starts with a digit, so the country prefix may be missing
Zürcher Treuhand AG: IBAN valid, counted as valid, with a BIC warning: the BIC has 12 characters instead of 8 or 11
Weber Druck GmbH: valid once upper-cased (the case change is noted)
Tripoli Marine Supplies LY83002048000020100120361: valid, bank 002, branch 048Limits
A pass proves structure and checksum only. The account may be closed or belong to someone other than the named payee.
No bank directory is bundled, so the bank code is extracted but not named, and a BIC cannot be derived from an IBAN.
Countries outside the registry have no official format document; their lengths follow national practice and may change.
Banks print IBANs with various groupings; the page accepts any spacing and prints groups of four.
National check digits inside the account number (Spain, Italy, Belgium and others) are not verified, only the international mod 97.
- Include the BIC column. A BIC whose country differs from the IBAN's gets a note, a quick catch for a pasted wrong row.
- Read the failed-at column: a character failure means copy damage, a length failure a missing group, a checksum failure often two transposed digits.
Common errors and how to fix them
- Germany IBANs have 22 characters; this has 20.
- A group is missing. Compare the IBAN with the account statement.
- Fails the mod 97 check. The check digits for this country code and account part would be 55, not 82.
- Digits were mistyped or swapped. The corrected IBAN assumes only the check digits were wrong, so confirm it with the payee before using it.
- An IBAN starts with a two-letter country code, then two check digits. This starts with a digit, so the country prefix may be missing.
- Add the country code; the page does not guess it.
- XX is not a country that issues IBANs in this table.
- Check the prefix against the payee's country, which may not use IBAN.
Best practices
- Keep IBANs as text in the source file, so leading characters and spacing survive.
- Validate before every payment-file export, not only at onboarding, because later edits can break a number.
- Store IBANs without spaces and add the grouping only for display.
- Review rows from countries outside the registry by hand; they are the least standardised.
How an IBAN is laid out
Positions 1 and 2 are the country, 3 and 4 the check digits, and the rest the basic account number in the country's shape. For Germany that is 8 digits of bank code and 10 of account, for the United Kingdom 4 letters of bank code, 6 digits of sort code and 8 digits of account, and for the Netherlands 4 letters of bank code and 10 digits of account.
The format lookup
A lookup under the results shows the length, the digit and letter pattern and an example for any country in the table, which is handy for writing a form validation rule or testing a payment system.
Frequently asked questions
Can it give me the bank's name from an IBAN?
No. It extracts the bank code, but a name needs a bank directory, which would be a lookup and is left out.