Luhn Calculator - Validate & Generate Check Digits
Validate any number using the Luhn algorithm or generate check digits. Universal mod-10 checksum tool for credit cards, IMEI, and ID numbers.
Input
Enter any numeric string (spaces/dashes OK)
Quick Examples
Click to load:
Valid numbers:
Invalid numbers:
Generate check digit:
Related Tools
Result
Enter a number and click Calculate
Algorithm Explained
- Start from the rightmost digit and move left
- Double every second digit (positions 2, 4, 6...)
- If doubling gives > 9, subtract 9
- Sum all digits
- Valid if sum mod 10 = 0