All posts
IBAN Validation and SWIFT/BIC Codes: Structure and Verification
August 15, 2026 · DevTools
fintech
iban
banking
swift
payments
IBAN Validation and SWIFT/BIC Codes: Structure and Verification
International Bank Account Numbers (IBAN) standardize cross-border bank payments across more than 80 countries. Validating IBANs client-side prevents costly wire transfer rejections.
Validate and generate test IBAN numbers with the IBAN & SWIFT Generator.
The Structure of an IBAN
- Country Code (2 letters): ISO 3166-1 alpha-2 (e.g.
GB,DE,FR,TR). - Check Digits (2 digits): Calculated using the MOD-97 algorithm.
- Basic Bank Account Number (BBAN): Up to 30 alphanumeric characters containing bank code, branch code, and account number.
MOD-97 Validation Steps (ISO 7064)
- Move the first 4 characters (country code and check digits) to the end of the string.
- Replace each letter with two digits ($A = 10, B = 11, \dots, Z = 35$).
- Interpret the resulting string as a decimal integer and compute modulo 97.
- The IBAN is valid if and only if: $\text{Remainder} = 1$.
Test IBAN numbers and lookup SWIFT codes with the IBAN & SWIFT Generator.