Luhn Validator (Mod 10 Checksum)
Paste any number to test it against the Luhn (mod 10) checksum used by credit cards, IMEIs and many other identifiers. The tool also shows the check digit that would complete the number, all locally in your browser.
How to use the Luhn validator
- Type or paste the number. Spaces and hyphens are ignored.
- See the valid or invalid badge update with the reason.
- Read off the suggested check digit if you need to complete a number, then copy the result.
Examples
The classic Luhn example
79927398713
valid: true
One digit off
79927398714
valid: false, expectedCheckDigit: 3
Frequently asked questions
What is the Luhn algorithm?
The Luhn algorithm, also called the mod 10 check, is a simple checksum formula. Starting from the rightmost digit, it doubles every second digit, subtracts nine from any result over nine, sums all the digits, and the number is valid when that total is a multiple of ten. It catches most single-digit typos and digit transpositions.
What kinds of numbers use a Luhn check?
Lots of identifiers do: credit and debit card numbers, IMEI device serials, some national provider and tax identifiers, and many loyalty or account numbers. This generic tool runs the raw checksum on any digit string, so it works regardless of what the number represents.
How do I generate a Luhn check digit?
Enter the number without its final digit, and the tool shows the digit that should go in the last position to make the whole string pass the Luhn check. Append that digit and the number will validate. This is exactly how systems create the check digit when issuing a new number.
Does passing the Luhn check mean a number is real?
No. The Luhn check only proves a number is internally consistent. It cannot tell you whether a card, device, or account actually exists or is active. It is a typo-catching tool, not a security or lookup feature.
Is my number sent anywhere?
No. All validation runs locally in your browser using client-side JavaScript. The number you enter is never uploaded, logged, or stored, so it never leaves your device.
Related tools
Credit Card Validator
Check a credit card number with the Luhn algorithm and detect the card type. Validation runs in your browser, so the number never leaves your device.
IMEI Validator
Validate a 15-digit IMEI with the Luhn checksum. Paste an IMEI to see if it is valid and read its TAC, serial number and check digit. Runs in your browser.
NPI Validator
Validate a 10-digit US National Provider Identifier with the Luhn check and 80840 prefix. See the computed check digit. Private, runs in your browser.
ISIN Validator
Validate a 12-character ISIN with the Luhn checksum. See the country prefix, NSIN body and computed check digit. Runs in your browser, fully private.
BIC / SWIFT Validator
Validate a BIC or SWIFT code against ISO 9362. Check the format and country, then read the bank, country, location and branch parts of the code.
CUSIP Validator
Validate a 9-character CUSIP with the standard mod-10 check digit. See the issuer and issue blocks and the computed check digit. Private, in your browser.