Credit Card Validator

Check if a card number is valid (Luhn check) and its network

Check card numbers with the Luhn checksum, identify the card network (Visa, Mastercard, Amex...), check the length and see how many digits the security code has. Runs in your browser - numbers are never sent anywhere. Checks the format only, not whether a card is active.
Try an example:

Output will appear here...

About Credit Card Validator

How it works

  1. Spaces and dashes are removed, then the number is checked with the Luhn algorithm - a checksum that catches almost all typing mistakes.
  2. The first digits (the issuer identification number) reveal the network, and the length is checked against that network's rules.
  3. Results show only the last four digits, so the full number never appears on screen again.

What you need

  • One or more card numbers, one per line.

Tips

  • Developers: use the official test numbers from your payment provider (e.g. 4242 4242 4242 4242 for Stripe) - never real cards.
  • A valid checksum does not mean the card exists, has money, or belongs to the person using it.

Limitations

  • The tool cannot check whether a card is real, active or has funds - only the bank can.
  • New card ranges may be identified as "Unknown" until added.

Runs in your browser. Card numbers are checked in your browser and never sent or stored. Still, avoid pasting real card numbers into websites you do not trust.

Frequently asked questions

What is the Luhn check?+

A simple checksum built into card numbers. Doubling every second digit and adding everything up must give a multiple of 10. It catches single-digit typos and most swapped digits.

Does a valid result mean the card works?+

No - only that the number is correctly formed. Whether the account exists or has funds is known only to the issuing bank.

How can I tell the card network from the number?+

By the first digits: 4 = Visa, 51-55 and 2221-2720 = Mastercard, 34/37 = American Express, 6011/65 = Discover, 35 = JCB.

Is it safe to enter my card number here?+

The check runs only in your browser and nothing is sent. As a habit, though, only share real card numbers with payment pages you trust.