IP Location.net Tools site
credit-card-validator

Credit Card Validator

Validate a card number checksum with the Luhn algorithm.

Credit card numbers follow ANSI Standard X4.13-1983, and are created by using the Luhn algorithm. A valid credit card satisfies the Luhn check, which uses simple mathematical formula to validate a checksum of all numbers.

Credit Card Validator

Enter the required values and run the tool to view results.

Check a payment card number with the Luhn checksum and report brand, length, and masked-number details.

Recommended Next Checks

Continue the same task with related tools. When possible, your current input is carried to the next page.

Credit Card Numbers

1. MII Number - The First Digit

The major credit card numbers are comprised of 15 or 16-digit numbers, of which the first digit represents the Major Industry Identifier (MII). The last digit is the checksum digit that confirms to the Luhn algorithm (see below). Most popular MII identifiers are:

MII Brand Name Length Notes
3 American Express 15 Starts with 34 or 37
3 Diners Club 14 Starts with 36 or 38
4 Visa Card 16
5 Master Card 16
6 Discover Card 16 Starts with 65, 644, 6011
5,6 Maestro Card 16-19 Starts with 50, 56, 58, 63, 67

2. IIN/BIN Number - The First 6-digits

The first 6-digit numbers including the MII is known as the Issuer Identification Number (IIN), formally known as the Bank Identification Number (BIN). The IIN tells us which credit card company issued the card, and what network it belongs to. For example, the credit card number starting with the 414720 represents JP Morgan Chase cards.


3. Account Number - The Next Digits before Final Digit

The next several digits before the final digit is known as the individual's account number.


4. Checksum - The Last Digit

The last digit is made up from the Luhn algorithm, and it represents the checksum of all digits. A card complying to Luhn check is the valid credit card number whethere it is actually issued by a card issuer or not.


Luhn Algorithm

Luhn algorithm is the modulus 10 formula used to validate a variety of identification numbers such as credit card and IMEI numbers. The right-most digit is used as the checksum digit, and the rest of the numbers represent the payload. Based on the position of the each digit, every 2nd digit from the right-most payload are doubled, and each digit (or doubled) are summed up make up the total. The total is then modulated to create the checksum digit. The payload and the checksum digit make up the credit card number. To learn more about Luhn Algorithm, please refer Wikipedia page.


Test Credit Card Numbers

As a developer, you may need an access to the "test" credit card numbers from various brands. We are listing a commonly used credit card numbers from well known brands that you can utilize. The numbers below conforms to Luhn check, and are valid card numbers.

Card Type Test Number
Visa 4111 1111 1111 1111
4242 4242 4242 4242
Master Card 5431 1111 1111 1111
5123 4558 0630 8521
American Express 3782 8224 6310 005
3714 4963 5398 431
Discover Card 6011 0009 9013 9424
6011 1111 1111 1117
Diners Club 3670 0102 0000 00
3614 8900 6479 13
Maestro Debit 6759 6498 2643 8453
6799 9901 0000 0000 019

How to use Credit Card Validator

Use Credit Card Validator when you need a fast, browser-friendly way to validate online data. Enter the required value, review any validation hints, and run the tool to get a clear result that can be copied, downloaded, or used in your next workflow.

This Ecommerce Tools utility is designed for repeatable checks and everyday troubleshooting. For best results, use complete and accurate input, review the output carefully, and combine the result with related tools when you need a broader diagnosis.

When this tool is useful

  • Checking a value before publishing, deploying, or sharing it.
  • Saving time on routine ecommerce tools tasks.
  • Comparing results with related IPLocation.net tools for a more complete review.
  • Documenting a result for technical support, SEO work, security review, or development notes.

Credit Card Validator tips

Keep a copy of the original input when comparing results, especially for DNS, web, image, PDF, text, and code tools. If a result depends on live network data, remember that DNS records, HTTP headers, certificates, rankings, and third-party responses can change over time.

Uses Luhn algorithm for accuracy. No data is saved. For testing and educational purposes only — not for transactions.
Suggest an improvement

Tell us if something is confusing, broken, incorrect, or missing. Feedback helps us improve the tools and workflows people use every day.