Free online tools to generate, calculate, convert, format, transform, and de/en-code.
 

Credit Card Validator

Validate credit card numbers using the Luhn algorithm and identify the card network.

Privacy: All validation happens in your browser. No card numbers are sent to any server.
Enter with or without spaces/dashes
Visa Mastercard Amex Discover Invalid

About Card Validation

The Luhn Algorithm

Credit card numbers are validated using the Luhn algorithm (also known as "mod 10"), a simple checksum formula used to validate identification numbers including credit card numbers.

How it works:
  1. Starting from the rightmost digit, double every second digit
  2. If doubling results in a number > 9, subtract 9
  3. Sum all the digits
  4. If the total is divisible by 10, the number is valid
Card Network Identification

Card networks can be identified by their IIN (Issuer Identification Number) prefix:

Visa
4xxx
Mastercard
51-55, 2221-2720
Amex
34, 37
Discover
6011, 65, 644-649
JCB
3528-3589
Diners Club
36, 38, 300-305
Limitations

This validator only checks:

  • Number format and length
  • Luhn algorithm checksum
  • Card network identification

It does NOT verify:

  • Whether the card actually exists
  • Account status or balance
  • Expiration date or CVV
Important: This tool is for educational purposes and testing with known test card numbers only. Never enter real credit card numbers on untrusted websites.

Feedback

Help us improve this page by providing feedback:


Share with