IBAN
IBAN for every country: groups of 4, uppercase, length for the country and mod-97 validation.
← All examples·iban
Built-in validation: mod-97 and country length
The country code sets the length (TR 26, DE 22, GB 22…), then the ISO 13616 mod-97 checksum runs. Lengths for more than 90 countries are built in.
Preview
Form value: -
Display: -
Details
- Pattern:
aa99 **** **** ***[* **** …] - Preset:
"iban" - Form value:
"GB82WEST12345698765432" - Error keys:
iban.incomplete,iban.country,iban.length,iban.checksum,iban.invalid - The country code sets the length (TR 26, DE 22…); countries outside the registry use the 15–34 rule.
Customization
Turkey
With country: "TR" the TR prefix is written for you and kept in the value, and a digit keyboard opens. A pasted TR33 0006… is read correctly too.
Form value: -
Display: -
For the hook API see useViraMask(); for your own pattern see custom mask.