Credit Card Validator
Validate credit card numbers and identify the brand
Enter a credit card number with or without spaces/dashes
Enter a credit card number above to validate it
Valid test numbers:
Visa: 4111 1111 1111 1111
Mastercard: 5500 0000 0000 0004
Amex: 3782 822463 10005
Discover: 6011 1111 1111 1117
Diners Club: 3056 9309 0259 04
JCB: 3530 1113 3330 0000
How the Luhn algorithm works
The Luhn algorithm (also known as “mod 10”) is a simple checksum formula used to validate credit card numbers, IMEI numbers, and other identification numbers.
- Starting from the rightmost digit, double every second digit.
- If doubling results in a number greater than 9, subtract 9 from it.
- Sum all digits (both doubled and untouched).
- If the total sum is divisible by 10, the number is valid.
This check catches common data-entry errors such as single-digit typos and digit transpositions, but it does not verify that the card actually exists or has available funds.
How to Use
Examples
Credit Card Validator
Online credit card validator that checks if a card number is valid using the Luhn algorithm and automatically identifies the brand (Visa, Mastercard, Amex, Discover, Diners Club, JCB).