Luhn & IBAN Checksum Validator

All checks run 100% locally in your browser. Nothing is stored or transmitted. See also Test Credit Card Numbers.

Luhn Checksum Validator (Cards / IMEI)


IBAN Checksum Validator (Mod-97)


How Luhn (Mod 10) & IBAN (Mod 97) Validation Work

Payment cards, IMEI device numbers, and international bank account numbers (IBANs) include built-in mathematical check digits so checkout forms and banking APIs can catch typos (like swapping two digits or mistyping a single number) immediately before submitting a network request. This validator runs both checksum algorithms 100% locally in your browser.

The Luhn Algorithm (Mod 10)

Invented by IBM scientist Hans Peter Luhn in 1954 (ISO/IEC 7812), the Luhn check validates credit/debit card numbers, IMEIs, and national IDs:

  • Starting from the rightmost digit (the check digit) and moving left, double every second digit.
  • If doubling a digit produces a two-digit number (e.g. 7 × 2 = 14), subtract 9 (or sum its digits: 1 + 4 = 5).
  • Sum all digits. If the total modulo 10 equals 0, the number passes the Luhn checksum.

The IBAN Checksum (ISO 13616 / Mod 97)

An IBAN starts with a two-letter ISO country code (e.g. DE, GB, FR), two check digits, and up to 30 alphanumeric BBAN characters. Validation moves the first 4 characters to the end of the string, converts each letter A–Z to numbers 10–35, and computes bigInt % 97. A valid IBAN always yields a remainder of 1.

Testing & Privacy FAQ

  • Does a valid checksum mean a card or bank account is active? No. Luhn and Mod 97 only verify mathematical format integrity against typos - they do not check funds, expiration dates, or bank existence.
  • Need dummy numbers for Stripe, Adyen, or Braintree sandbox testing? Visit our Test Credit Card Numbers reference page.
  • Is any card or IBAN number transmitted? No. Validation runs completely offline in JavaScript.
Please read the privacy policy (agreement of the cookies usage, other websites embedded content, etc.). If you continue to use the site, we will assume that you agree with our privacy policy.
OkPrivacy Policy