Credit Card Type Identifier

Identify the payment brand from a card number's IIN and run the Luhn check.

Brand reference

BrandLengthsPrefixes
Visa13/16/194
Mastercard1651, 52, 53, 54, 55, 2221-2720
American Express1534, 37
Discover16/196011, 622126-622925, 644, 645, 646, 647, 648, 649, 65
Diners Club14/16/19300, 301, 302, 303, 304, 305, 36, 38, 39
JCB16/193528-3589
UnionPay16/17/18/1962, 81
Maestro12/13/14/15/16/17/18/1950, 56, 57, 58, 639, 67
RuPay1660, 65, 81, 82, 508

About this tool

Detect Visa, Mastercard, American Express, Discover, Diners Club, JCB, UnionPay, Maestro or RuPay from a card number prefix. Also runs the Luhn (mod 10) checksum.

An unhandled error has occurred. Reload ×