How to get a MasterCard credit card?

Getting a valid MasterCard credit card number

MasterCard credit card number


Resulting credit card number:


5555555555554444


How to get a MasterCard card number?


In order for a credit card number to be valid, it has to be validated by the MOD 10 algorithm. This is an algorithm specifically designed to prevent accidental errors such as typos. Knowing the Major Industry Identifier (MII) and the Issuer Identification Number (IIN) we can prefix a credit card number and then randomly select the rest, as long as they comply to the MOD 10 algorithm.

In order to do this we find which prefixes we can use specifically for MasterCard cards. We're currently using the following list and randomly generating the rest:

  • 51
  • 52
  • 53
  • 54
  • 55

Luhn algorithm calculation example


Luhn algorithm calculation example