Free telecom & identity tools · runs in your browser
Free tool
Luhn Checksum Calculator
Calculate the ISO/IEC 7812 check digit for any payload, or verify a complete number — the same maths that backs ICCIDs, IMEI numbers and ID numbers.
Calculate a check digit
Paste a number without its check digit. The digit added at the end makes the completed number pass Luhn.
Verify a number
Paste a complete number, check digit included. See whether it passes Luhn, and the full digit-by-digit working if it doesn't.
What is the Luhn algorithm?
The Luhn algorithm, also called modulus 10, produces a single check digit from a string of digits. Starting from the digit immediately to the left of where the check digit goes and working leftwards, every second digit is doubled — subtracting 9 from any result over 9 — then every digit is summed. The check digit is whatever number makes that total divisible by 10.
It was designed to catch the errors a human makes copying a long number by hand: a single mistyped digit, or two adjacent digits swapped. It is not designed to catch anything more sophisticated, and was never intended to.
Where you'll meet it
Any identifier long enough that people mistype it tends to end in a Luhn digit. On this site alone: the ICCID printed on every SIM, and the South African ID number. Beyond telecoms and identity, it's the same maths behind IMEI numbers and most payment card numbers.
