IBAN Validator: Check Length and Check Digits

Check an IBAN against the embedded SWIFT length table and BBAN pattern, then read the ISO 13616 mod-97 rearrangement and remainder. Group it in fours, or calculate check digits from a country code and BBAN with 00. This does not mean the account exists or that a payment would succeed.

Check an IBAN

Paste an IBAN or load the sample GB82 WEST 1234 5698 7654 32. Spaces and a leading IBAN label are removed. Letters are uppercased.

Calculate check digits

Enter the country code and the BBAN. Check digits are treated as 00, then set to 98 minus the mod-97 remainder. This calculates characters only. It does not issue an account.

How this check works

  1. Spaces, line breaks, and a leading IBAN label are removed. Letters are uppercased. The electronic form has no spaces. Group in fours is the print form, and the last group can be shorter.
  2. The country code is looked up in an embedded copy of the SWIFT IBAN Registry, Release 103 (September 2026), which lists 89 countries. The length must match that country. In this release the Brazil bank identifier is alphanumeric (8!c), effective August 2026.
  3. The BBAN is checked against that country's pattern. n is a digit, a is a letter, c is a letter or digit, and ! means the length is fixed.
  4. Check digits follow ISO/IEC 7064 MOD 97-10, as required by ISO 13616. The first four characters move to the end. A becomes 10 and Z becomes 35. The remainder of that number divided by 97 must be 1. The running lines take the previous remainder, append the next six digits, and reduce modulo 97.
  5. To calculate check digits, put 00 in the check-digit positions, run the same steps, and subtract the remainder from 98. Do that from the country code and BBAN fields, or by typing 00 in an otherwise complete IBAN.

Limits

  • A match does not mean the account exists, who owns it, or that a payment would succeed. A mismatch does not predict what a bank would do with a payment.
  • National account check digits are not tested. That includes UK modulus methods, German account check-digit methods, the French RIB key, and similar domestic rules.
  • There is no BIC or bank-name directory. The bank identifier is only the character slice recorded in the registry.
  • The SEPA flag is the flag printed in Release 103. It is not a live scheme-membership check.
  • Later registry releases are not downloaded. This table is frozen in the page.
  • Some country codes cover territories named in the registry, such as GB for IM, JE, and GG, and FI for AX. Those territories are not separate entries.
  • A remainder of 1 is not enough when the country is missing, or the length or BBAN pattern does not match.
  • Calculated check digits are arithmetic on the characters you typed. They do not issue an account. The account-holding institution issues an IBAN.
  • The IBAN stays in this page. It is not uploaded.
Country length table

Lengths and BBAN patterns are copied from SWIFT IBAN Registry Release 103 (September 2026). n is a digit, a is a letter, c is a letter or digit, and ! means a fixed length.