Validate and parse International Bank Account Numbers (IBAN), verify ISO 7064 checksums, and detect QR-IBANs.
Loading tool
About IBAN validator and parser
Validates an International Bank Account Number against the country's length and BBAN format, the ISO 7064 mod-97 check digits and, where defined, the national checksum, using the ibantools library. It breaks a valid IBAN into country, check digits, bank and branch identifiers and account number, shows electronic and grouped print formats, flags SEPA countries and Swiss QR-IBANs, and walks through the mod-97 calculation including the expected check digits.
Common uses
- Check an IBAN for typos before sending a payment
- Extract the bank code and account number from an IBAN
- Generate test cases for IBAN validation in a payments app
- Convert an IBAN between print format with spaces and electronic format
FAQ
- How are IBAN check digits calculated?
- Move the first four characters to the end, replace letters with numbers (A = 10 ... Z = 35), and compute the remainder mod 97. A valid IBAN gives a remainder of 1.
- Does a valid IBAN mean the account exists?
- No. Validation only proves the number is well-formed and its check digits are correct. Only the bank can confirm that the account exists and who holds it.
- How long is an IBAN?
- Length is fixed per country and is at most 34 characters. For example, German IBANs have 22 characters and UK IBANs have 22.
- What is a QR-IBAN?
- A Swiss and Liechtenstein IBAN whose institution identifier is in the range 30000 to 31999, used with QR-bills that carry a structured reference.