Luhn Algorithm Validator

Validate and generate Luhn check digits (mod 10 algorithm) for credit cards, IMEI, ICCID, and other identifier numbers. Everything runs in your browser — numbers are never transmitted.

Card / Identifier Number

Result

Enter a number above to validate

How the Luhn Algorithm Works

  1. Starting from the rightmost digit (the check digit), move left.
  2. Double the value of every second digit. If doubling results in a number greater than 9, sum the digits (e.g., 7×2=14 → 1+4=5).
  3. Sum all the digits (both doubled and untouched).
  4. If the total mod 10 = 0, the number is valid.

Where Luhn Is Used

IdentifierTypical LengthCheck Digit
Credit / Debit Card (PAN)13–19 digitsLast digit
IMEI (mobile device ID)15 digitsLast digit
ICCID (SIM card serial)19–20 digitsLast digit
NPI (US healthcare provider)10 digitsLast digit
Canadian SIN9 digitsLast digit
Privacy note: All validation runs in your browser using JavaScript. No card numbers are ever sent to a server. Test numbers provided are industry-standard test PANs — not real cards.

Related Tools

CRC Calculator | Crypto Checksum Verifier | EMV TLV Parser