Dev Tools

Credit Card Validator

Validate credit card numbers using the Luhn algorithm. Detect card type (Visa, Mastercard, Amex, Discover, JCB, Diners Club) by prefix.

Card number
Validation

Enter a card number to validate.

Supported Card Types
Visa
Prefix: 4 | 13, 16, 19 digits
Mastercard
Prefix: 51-55, 2221-2720 | 16 digits
American Express
Prefix: 34, 37 | 15 digits
Discover
Prefix: 6011, 622126-622925, 644-649, 65 | 16, 19 digits
JCB
Prefix: 3528-3589 | 16, 17, 18, 19 digits
Diners Club
Prefix: 300-305, 36, 38 | 14, 16, 19 digits
UnionPay
Prefix: 62 | 16, 17, 18, 19 digits
Maestro
Prefix: 5018, 5020, 5038, 6304, 6759, 6761-6763 | 12, 13, 14, 15, 16, 17, 18, 19 digits
Was this page helpful?

Related tools