Bank-grade encryption No KYC to buy Instant virtual cards

Credit Card Validator

All Tools

Credit Card Validator

Check whether a credit card number is mathematically valid using the Luhn algorithm and detect the card brand instantly.

Enter card number to validate

What the card validator checks

This tool checks whether a card number is structurally valid: that it has a recognised prefix, the right length for its network, and a correct check digit according to the Luhn algorithm. It is useful for catching typos before a payment form rejects the number.

It does not check whether a card is active, has funds, or belongs to you. A number can pass the Luhn check and still be declined.

How the Luhn algorithm works

The Luhn algorithm (also called the mod 10 algorithm) is a simple checksum used by almost every payment card:

  1. Starting from the rightmost digit and moving left, double every second digit.
  2. If doubling gives a number greater than 9, subtract 9 from it.
  3. Add up all the digits, doubled and untouched.
  4. If the total is a multiple of 10, the number passes the check.

Example: for the number 79927398713, doubling every second digit from the right and adding everything gives 70, which is divisible by 10, so the number is valid. Changing any single digit breaks the total, which is why the check catches most typing mistakes.

Card number lengths and prefixes

NetworkStarts withLength
Visa413, 16 or 19 digits
Mastercard51–55, 2221–272016 digits
American Express34, 3715 digits
Discover6011, 644–649, 6516–19 digits
JCB3528–358916–19 digits
UnionPay6216–19 digits

Common reasons a valid number is still declined

  • The expiry date or CVV is wrong.
  • The card has no available balance or has been blocked by the issuer.
  • The merchant does not accept cards from that country or prepaid cards.
  • The billing address or 3-D Secure check failed.

To see which bank and country a card belongs to, use the BIN checker. Merchants weighing up disputes can use the chargeback vs refund calculator.

Frequently Asked Questions

Does a valid result mean the card works?
No. The validator only checks the number format and Luhn check digit. Whether a card can be charged depends on the issuer, the balance, the expiry date, the CVV and the merchant's own rules.
Do you store the card numbers I enter?
You should never need to enter real card details to test a number format. Use a test number, or only check numbers you own.
Why do most card numbers have 16 digits?
Sixteen digits is the standard length for Visa and Mastercard, but it is not universal: American Express uses 15 digits, and Visa, Discover, JCB and UnionPay also issue longer numbers of up to 19 digits.
What is the last digit of a card number?
It is the check digit. It is calculated from the other digits with the Luhn algorithm so that simple typing errors can be detected.

We may use cookies or any other tracking technologies when you visit our website, including any other media form, mobile website, or mobile application related or connected to help customize the Site and improve your experience.

Learn More Accept All