What the card validator checks
- Luhn checksum — the last digit of every card number is a check digit (ISO/IEC 7812). It catches almost every single-digit typo and most swapped digits. If it fails, the validator shows which last digit would make the number valid.
- Card brand — detected from the first digits (IIN ranges): Visa, Mastercard incl. 2-series, American Express, Discover, JCB, Diners Club, UnionPay, Maestro, Mir and RuPay.
- Length — each brand allows specific lengths, e.g. Amex 15 digits, Mastercard 16, Visa 13, 16 or 19.
- Known test cards — official sandbox numbers from Stripe and Adyen are recognised.
FAQ
Does a valid result mean the card is real?
No. It only means the number is well-formed. Whether the card exists, is active or has funds can only be checked by the issuing bank during an authorization.
Is it safe to check my card here?
The check runs in your browser and the number is never sent. Still, the safest habit is not to type real card numbers into tools at all.
Why does a UnionPay card fail the Luhn check?
Some UnionPay cards do not use the Luhn check digit, so the validator accepts them when the brand and length are right.
Where do I get numbers for testing?
Use the test card generator or the providers' official test cards.
Validator by card brand
Visa · Mastercard · American Express · Discover · JCB · Diners Club · UnionPay · Maestro