isIbanValid
Mask
stable
Validates an IBAN string using the ISO 13616 mod-97 algorithm. Strips whitespace, rearranges the character groups, converts letters to numbers, and verifies the remainder equals 1.
API
Signature
Full TypeScript signature sourced from the util file.
API
Parameters
Input parameters accepted by this util.
- rawrequiredstring
- The raw IBAN string, optionally containing spaces (they are stripped before validation). Must be 4–34 alphanumeric characters after normalisation.
API
Return value
The value returned by this util.
- true when the IBAN passes the ISO 13616 mod-97 check; false for empty input, wrong length, invalid characters, or a bad checksum.
Usage
Examples
Ready-to-paste usage snippets.
Valid and invalid IBAN