Luhn Validator
Test numbers against the Luhn checksum used by payment cards and many ID schemes, or append the check digit that makes a number valid.
Use the tool
Why this tool exists
The Luhn algorithm is the quick sanity check behind card numbers, IMEI numbers and several national identifiers. It catches most mistyped digits, which is why forms run it before sending anything to a server. Developers meet it when writing validation, testing payment forms or generating sample IDs, and need a reliable way to confirm that a number passes or to work out which final digit is missing.
Paste one number per line. Spaces and hyphens are ignored. Validate mode says valid or invalid, and append mode finds the check digit and shows the complete number. Luhn only proves a number is well formed. It says nothing about whether a card exists or is active. The calculation runs locally.
How to use it
- Paste numbers into the box, one per line; spaces and hyphens are allowed.
- Choose validate to test them, or append check digit to complete a partial number.
- Run the tool.
- Read the verdict or the completed number on each line.
Frequently asked questions
Does a valid Luhn number mean the card is real?
No. Luhn is only a typo check. Many random numbers pass it. It cannot show that an account exists, has funds or belongs to anyone, so it is never a substitute for a proper payment check.
How does the append mode work?
You enter the number without its last digit. The tool tries digits 0 to 9 and returns the one that makes the whole number pass the Luhn test, then shows the full number and the check digit.
What inputs are rejected?
Anything with letters or symbols other than spaces and hyphens is reported as not numeric. The line is shown with the reason, and the other lines are still processed.
Which numbers use Luhn?
Most payment card numbers, IMEI numbers, Canadian social insurance numbers and some other identifiers. Other schemes, such as IBAN or ISBN-13, use different checksums.