Luhn Number Checker
Paste a number to see if its last digit is a correct Luhn check digit, or enter a number without the check digit to get the digit to add.
Use the tool
Loading the tool…
About Luhn Number Checker
Check whether a number passes the Luhn check, a simple test used on card numbers and other identifiers. You can also work out the check digit to add to a number.
Worked example
Enter 79927398713. The tool confirms that it passes the check.
Limits
The Luhn check only shows that a number is well formed. It does not show that a card or account is real or in use. Do not use the tool to guess card numbers.
How to use Luhn Number Checker
- Choose whether to check a number or work out a check digit.
- Enter the digits. Spaces and hyphens are ignored.
- Read the result and the working for each digit.
Good to know
- The Luhn formula doubles every second digit from the right, subtracts 9 from any result above 9, adds everything up, and a valid number gives a multiple of 10.
- It catches most single-digit mistakes and most swapped neighbouring digits, but it is not a security feature.
- A number that passes is not proof that a card or account exists. The tool does not know the length or prefix rules of any scheme.
- The digits are processed in your browser only.
Frequently asked questions
Does a valid Luhn number mean a real card?
No. Many made-up numbers pass. Only the card issuer can tell you whether a number is real.
Which numbers use the Luhn formula?
Many payment card numbers and some ID numbers do. The tool checks the formula only, not the scheme.
Is anything I type saved or sent?
No. The work happens in your browser on this page, and nothing is stored or sent to us.