Validate a credit card number
Credit Card Number:  
 

Fake credit card numbers for all major brands
These credit card numbers DO NOT work! They are for testing purposes only. Without a valid owner name, an expiration date and a valid CVV code, they can't be used for real transactions. You should use these numbers only to test your validation strategies and for bogus data. Note that the algorithm used here is freely available across the web even Wikipedia.org. These numbers were generated randomly.You can refresh the page to get new numbers
.
VISA:
4556477127136133
4532655391186244
4556042548399827307 
MasterCard:
5316644561520183
5439413397390597
5484014956244417 
5555494417316091
5417139989256591
5497495989449955 
Discover:
6011969598514586
6011190978861519
6011887135346794145 
American Express (AMEX):
340259515773290
372813111937328
376346406878986
Diners Club - International:
36768225195965
36349016085473
Diners Club - Carte Blanche:
30207706713448
30038208792709
30578159284172
Maestro:
6759538908580011
6759813263404663
5893275425890966
JCB:
3530749471055611
3529762620936857
3534459893056606147
How to validate a Credit Card Number?
Most credit card number can be validated using the Luhn algorithm, which is more or a less a glorified Modulo 10 formula!
The Luhn Formula:
  • Drop the last digit from the number. The last digit is what we want to check against
  • Reverse the numbers
  • Multiply the digits in odd positions (1, 3, 5, etc.) by 2 and subtract 9 to all any result higher than 9
  • Add all the numbers together
  • The check digit (the last number of the card) is the amount that you would need to add to get a multiple of 10 (Modulo 10)
 
 
For more information about cards, see

Credit Cards Validates:
 Visa, MasterCard, Elo, American Express, Discover Network, Hipercard, Diners Club, Aura, Maestro, Good Card, JCB, Sorocred
 

Click here to see your activities