Validation
IBAN (International Bank Account Number)
Validate IBAN bank account identifiers: 2-letter country code, 2 check digits, 11–30 alphanumerics.
Try it in RegexPro →Available in
Pattern
regexengine-agnostic
^[A-Z]{2}\d{2}[A-Z0-9]{11,30}$Raw source: ^[A-Z]{2}\d{2}[A-Z0-9]{11,30}$
How it works
^[A-Z]{2} matches the ISO country prefix (e.g. DE, GB, FR). \d{2} matches the two-digit check sum. [A-Z0-9]{11,30}$ matches the remaining bank/account portion which varies by country between 11 and 30 characters. This validates structure but does NOT verify the mod-97 checksum — pair with a checksum function for full validation.
Examples
Input
GB29NWBK60161331926819Matches
GB29NWBK60161331926819
Input
DE89370400440532013000Matches
DE89370400440532013000
Input
1234567890No match
—Common use cases
- •SEPA payment form validation
- •International invoice processing
- •KYC and onboarding flows
- •Payment file (XML/CSV) ingestion pipelines