Type a tool name, for example "keyword density" or "transcript".
Validate any credit card number using the Luhn algorithm and identify the card type, issuer, and account details.
A credit card validator checks whether a card number follows the structure real card numbers use. This free tool runs the Luhn check, identifies the card network, and shows the Major Industry Identifier, so developers, testers and curious users can spot typos and malformed numbers in seconds.
Credit card number validation is a format check that confirms a number is built the way card issuers build them. It does not contact a bank or confirm that an account exists. It only tests the digits themselves.
Every card number has three parts. The first digit is the Major Industry Identifier (MII), which says what kind of organization issued the card. The first six or so digits form the Issuer Identification Number (IIN), which points to the card network and the issuing institution. The remaining digits are the personal account number, and the very last digit is a check digit that makes the whole number pass a math test called the Luhn algorithm.
Most mistakes people make when typing a card number are single wrong digits or swapped neighbors. The Luhn check catches nearly all of those, so a failed result tells you to re-read the number before you do anything else with it.
The Luhn algorithm adds up the digits of a number in a specific way and checks whether the total ends in zero. It was designed to catch accidental typing errors, not to stop fraud.
Because the check digit is chosen to make the total land on a multiple of 10, a number with one wrong digit will almost always produce a different total and fail.
You can validate a credit card number in a few seconds with the field and buttons on this page.
If you only want to try the tool, use the buttons under Example Test Numbers: Visa, Mastercard, American Express, Discover, JCB and Diners Club. Each one fills the field with a well-known sample number.
Take the Visa sample number 4111 1111 1111 1111. It has 16 digits and starts with 4, so the tool reads it as a Visa and shows Banking and Financial as the MII.
For the Luhn check, you double every second digit from the right. The leftmost 4 becomes 8, and the seven doubled 1s each become 2, which gives 8 + 14 = 22. The eight digits that are not doubled are all 1s, so they add 8. The grand total is 30, which divides evenly by 10, so the number passes.
Now change the last digit and enter 4111 1111 1111 1112. The total becomes 31, so the Luhn row fails and the banner switches to Invalid Card Number. The network guess is still Visa, because the beginning and the length have not changed. Only the check digit is wrong, which is exactly what a typo looks like.
The results panel gives you a pass or fail on the Luhn check plus three facts about the structure of the number. Each row answers a different question.
A green Valid Card Number banner means the digits passed the Luhn check. A red Invalid Card Number banner means they failed. If you see red, compare the number against the card digit by digit, look for swapped pairs such as 45 typed as 54, and try again.
This row names the card network the number matches. The tool recognizes the ranges below. A number outside them is reported with an Unknown type, even when the Luhn check passes.
| Network | Starts with | Digits |
|---|---|---|
| Visa | 4 | 13 or 16 |
| Mastercard | 51 to 55 | 16 |
| American Express | 34 or 37 | 15 |
| Discover | 6011 or 65 | 16 |
| JCB | 35 (also 2131, 1800) | 16 (15 for 2131, 1800) |
| Diners Club | 300 to 305, 36, 38 | 14 |
Newer Mastercard numbers that begin with 2 are not in the list above, so they may show as Unknown here even though they are real.
The MII is read from the first digit alone. For example, 3 means Travel and Entertainment, 4 and 5 mean Banking and Financial, 6 means Merchandising and Banking, and 1 and 2 mean Airlines. Most cards you handle will start with 3, 4, 5 or 6.
The PAN row describes the account portion of the number, the part that identifies the individual cardholder account inside the issuer's range. It is informational and tells you nothing about who owns the card.
A credit card validator is most useful when you need to confirm a number is well formed without any link to a real account.
The same check-digit idea appears elsewhere. Product codes such as EAN-13 end in a check digit too, and you can see them in action with the barcode generator.
Most confusing results come from the input rather than the tool, so check these points first.
A valid result means the number is structurally correct, and nothing more. It does not mean the card has been issued, is active, has available credit, or belongs to a particular person.
A made-up number has roughly a one in ten chance of passing the Luhn check by luck, so a pass is not proof of authenticity. This tool also cannot look up a balance, credit limit, statement, reward points or application status. For any of those, sign in to your issuer's app or website, or call the number on the back of the card.
The identified network and MII are based on number patterns, not on a live lookup of the issuer, so treat them as a structural hint.
If a number fails somewhere and you suspect a typo, this credit card validator gives you a clear answer in one click: pass or fail, plus the network and industry behind the digits. Enter your number or load one of the sample cards above, press Validate Card, and use the results to fix the input. You can find more utilities like it in the online calculators and utilities collection.
Your report has been submitted. We will look into this issue.
A VPN changes your network exit. It does not guarantee anonymity.
Themes, plugins, code, video, audio, graphics & more from 90,000+ authors.
Web Development
Design & Media
Unlimited Access
Explore Envato Market