Credit Card Type Identifier
Identify the payment brand from a card number's IIN and run the Luhn check.
Brand reference
| Brand | Lengths | Prefixes |
|---|---|---|
| Visa | 13/16/19 | 4 |
| Mastercard | 16 | 51, 52, 53, 54, 55, 2221-2720 |
| American Express | 15 | 34, 37 |
| Discover | 16/19 | 6011, 622126-622925, 644, 645, 646, 647, 648, 649, 65 |
| Diners Club | 14/16/19 | 300, 301, 302, 303, 304, 305, 36, 38, 39 |
| JCB | 16/19 | 3528-3589 |
| UnionPay | 16/17/18/19 | 62, 81 |
| Maestro | 12/13/14/15/16/17/18/19 | 50, 56, 57, 58, 639, 67 |
| RuPay | 16 | 60, 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.