IBAN structure
Two-letter country code + two check digits + BBAN (bank/branch/account). The check digits are computed so the whole number mod 97 equals 1 — catching typos before a transfer leaves.
Frequently asked questions
Spaced format?
IBANs print in groups of four; the validator strips spaces before checking.
Unknown countries?
Length is checked where we know the spec; the mod-97 checksum applies everywhere.
Does a valid IBAN mean a real account?
No — the checksum only proves the number is well-formed, not that the account exists.