IBAN and card number checker

Paste an IBAN or a card number. The check digits are recalculated in your browser; nothing is sent or stored.

An IBAN starts with a country code, like PK36 SCBL 0000 0011 2345 6702. A card number is 12 to 19 digits. Spaces and dashes are ignored.

How the checks work

IBAN: the first four characters move to the end, every letter becomes a number (A = 10 to Z = 35), and the result must leave a remainder of 1 when divided by 97 (ISO 7064 mod 97-10). The length must also match the country: 24 characters for Pakistan, 22 for the UK and Germany, 23 for the UAE. The mod-97 check catches every single wrong character and every swap of two adjacent ones.

Card numbers: the Luhn check doubles every second digit from the right, subtracts 9 from any result over 9, and requires the total to be a multiple of 10. It catches a single wrong digit and most adjacent swaps. The first digits identify the network.

Passing proves only that the number was typed consistently, not that the account or card exists. Please don't paste real card numbers into websites, this one included: use the test numbers your payment provider publishes.

Learn more

Privacy: the check runs entirely in this page's JavaScript. Nothing you type is stored or sent; this site has no analytics.