Luhn Validator
Check a card number checksum and name the issuer.
FREE - NO SIGN-UP - RUNS ON YOUR DEVICE
Runs in your browser tab
- Checksumonly
- 8issuer ranges
- 0uploads
- Testnumbers only
Luhn Validator at a glance
- Input
- Digits, spaces and dashes
- Check
- The Luhn formula
- When it fails
- Names the correct check digit
- Issuer
- Named from opening digits
- What it cannot tell you
- Not whether a card is real
- Price
- Free
- Account needed
- None
- Where processing happens
- On your device
How to use Luhn Validator
- 1
Type a test number
Type a test number.
- 2
Read the result
Read the result.
- 3
Fix a failing digit
Fix a failing digit.
Frequently asked questions
Does a valid checksum mean the card is real?
No. It means the digits are consistent with each other, which is all the formula was designed to catch. Only the issuing bank knows whether a card exists.
Should I type a real card number here?
No. There is no reason to type a real card number into any web page. Use the published test numbers that payment providers give for exactly this.
What is the Luhn formula?
Every second digit from the right is doubled, nines are subtracted from doubled results over nine, and the total has to land on a multiple of ten.
Where does the issuer name come from?
The opening digits and the length. Those ranges are published, so the name is read from the number itself rather than looked up anywhere.
What a checksum is for
The Luhn checksum catches mistyped digits. It says whether the digits agree with each other and nothing more, so use published test numbers rather than a real card.
- It catches a mistyped digit and most cases of two digits swapped.
- It is a typing check, not a security measure, and never was one.
- The same formula validates IMEI numbers and some national identifiers.
- Payment providers publish test numbers so nobody has to use a real card.
Full specification
| Input | Digits, spaces and dashes. A published test number is loaded to start with. |
|---|---|
| Check | The Luhn formula: every second digit doubled from the right, and the total must reach a multiple of ten. |
| When it fails | The check digit that would have been correct is named, which points at the typo. |
| Issuer | Read from the opening digits and the length: Visa, Mastercard, Amex, Discover and others. |
| What it cannot tell you | Whether the card exists, who holds it, or whether it has any money on it. |
| Price | Free. Supported by clearly labelled ads outside the working area. |
| Account needed | No. |
| Where processing happens | In your browser tab. Nothing is uploaded. |
Keep going with the same files
All developer tools: Developer tools on SPOTTOOLS