Validate any number with the Luhn algorithm — credit and debit cards, IMEIs, and other mod-10 identifiers. Type a number and see whether it passes, which digit is the check digit and what it should be, and the full working with every doubled digit shown. You can also compute the missing check digit for a partial number, and see which card brand the prefix suggests. It's free and runs entirely in your browser; numbers are never sent anywhere.
| Brand | Starts with | Length |
|---|---|---|
| Visa | 4 | 13, 16, 19 |
| Mastercard | 51–55, 2221–2720 | 16 |
| American Express | 34, 37 | 15 |
| Discover | 6011, 644–649, 65 | 16–19 |
| JCB | 3528–3589 | 16–19 |
| Diners Club | 300–305, 36, 38 | 14–19 |
From the right, double every second digit and subtract 9 from anything over 9. Add up all the digits; if the total ends in 0, the number is valid.
No. It only means the digits are internally consistent. It can't tell whether the card exists, is active or has funds.
Every single-digit error and most swaps of two neighboring digits — the commonest typing mistakes.
Payment cards, IMEI phone numbers, Canadian SINs, and many loyalty and national ID numbers.
No. The check runs in your browser.
The Luhn algorithm, or mod 10, protects credit card numbers, IMEIs, Canadian social insurance numbers and many loyalty and account numbers against typing errors. Starting from the rightmost digit, every second digit is doubled, and 9 is subtracted from any result over 9; the number is valid when the sum of all digits is divisible by 10. The validator shows that working digit by digit, with doubled positions shaded and the check digit outlined, and when a number fails it states what the last digit should have been. Computing a check digit for a partial number appends a zero, runs the same sum and takes the complement. Spaces and hyphens are ignored. The card brand shown is a format-level guess from the issuer prefix — Visa from 4, Mastercard from 51–55 or 2221–2720, American Express from 34 or 37, and so on — with a note when the length is unusual for that brand. None of this says whether a card or account exists, and nothing is transmitted.