Mastercard card number format
A Mastercard number starts with 51–55 or 2221–2720 and has 16 digits. The last digit is a Luhn check digit, so a typo in one digit is almost always caught before the payment reaches the bank.
FAQ
How do I know if a Mastercard card number is valid?
Paste it above: the validator checks the prefix, the length and the Luhn checksum, and tells you which last digit is expected if the checksum fails.
Does a valid Mastercard number mean the card works?
No. Only the issuing bank can confirm the card exists and can be charged, during an authorization.
Where can I get Mastercard test numbers?
Use the Mastercard test card generator or the official sandbox cards of Stripe and Adyen, e.g. 5555555555554444.
Other card brands
Visa · American Express · Discover · JCB · Diners Club · UnionPay · Maestro