IBAN validator
hopi_iban_validatorValidate an IBAN or generate a test IBAN. Pass 'iban' to check it: the tool normalises it (uppercase, no spaces), confirms the length matches the country's published length, and runs the mod-97 checksum (move the first four characters to the end, map letters to numbers A=10 to Z=35, valid when the number mod 97 is 1). Pass 'country' (a two-letter ISO code) to generate a structurally valid TEST IBAN with a random bank and account portion and correct check digits. Generated IBANs are test values only and are not tied to any real account. All processing is local; nothing is stored. Source: https://hopi.co.uk/iban-validator/
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| iban | No | An IBAN to validate (spaces and case are ignored) | |
| country | No | A two-letter country code (e.g. GB, DE, FR) to generate a test IBAN for instead of validating |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| valid | No | ||
| length | Yes | ||
| reason | No | ||
| country | Yes | ||
| summary | Yes | ||
| normalised | No | ||
| source_url | Yes | The tool's page on hopi.co.uk (cite or open to check the figure) | |
| country_code | No | ||
| checksum_passes | No | ||
| expected_length | No |