Free Credit Card Validator (Luhn Check)
Verify whether a card number is structurally valid using the Luhn algorithm, and detect the issuing network (Visa, Mastercard, American Express, etc.). Nothing is stored or transmitted — the check runs purely.
Card numbers carry a Luhn checksum; bank accounts use a different scheme, which the IBAN Validator checks. Neither tool stores what you paste.
How to use the Card Validator
- 1 Enter the card number you want to check.
- 2 Read whether it passes the checksum, and which card type the prefix suggests.
- 3 Check the length against the expected range for that issuer.
- 4 Clear the field when you are done.
Luhn mod-10 algorithm verification and card brand identification
The Credit Card Validator verifies the mathematical structural integrity of payment card numbers using the Luhn algorithm (also known as the "modulus 10" or "mod 10" formula). Developed by Hans Peter Luhn at IBM (ISO/IEC 7812), this checksum algorithm validates that digits were not mistyped, transposed, or truncated.
The validator also inspects the Major Industry Identifier (MII) and Issuer Identification Number (IIN) prefixes to identify the payment network brand: Visa (starts with 4), Mastercard (starts with 51-55 or 2221-2720), American Express (starts with 34 or 37), Discover (starts with 6011 or 65), and JCB. Note: this tool checks mathematical format validity only and does not process payments or query bank balances.
- Verifies card number structural validity using the standard ISO/IEC 7812 Luhn algorithm.
- Detects payment networks including Visa, Mastercard, American Express, and Discover.
- Catches common typographical mistakes, transposed digits, and length errors.
- Essential for testing e-commerce checkout form validation scripts without live charges.
What Luhn does and does not check
The Luhn algorithm catches most typos and single-digit errors, so it is the standard pre-check for card input forms. It cannot confirm that a card exists, is active, or has funds — only your payment processor can do that.
Frequently asked questions
Does a valid number mean the card is real?
No. The check is the Luhn algorithm, a simple checksum that catches typos and most transposed digits. Any number can be constructed to pass it — a made-up 16 digits with the right check digit will validate. Only the issuing bank can confirm a card exists.
How does Luhn work?
Double every second digit from the right, subtract 9 from any result above 9, then sum everything. If the total is divisible by 10 the number is well-formed. It is designed to catch single-digit errors and most adjacent transpositions, not to prove authenticity.
Is it safe to enter my card number here?
The check runs locally and nothing is transmitted, but you should not paste a real card number into a web page you do not control. Test with the published dummy numbers that issuers reserve for exactly this purpose.
Related Security & Cryptography Tools
You might also need
Tools from other categories that people pair with the Card Validator: