Credit Card Account Number Verification
- Card Type Identification
This section provides information about identifying
a credit card type from a card number's numeric range and number
of digits.
American Express
Valid
length: 15 digits. First digit must be a 3 and second digit must
be a 4 or 7.
Diners Club and Carte Blanche
Valid
length: 14 digits.
First digit must be 3 and second digit
must be 0, 6, 8 or 9. The ranges are:
- 300000 through 305999
- 309500 through 309599
- 360000 through 369999
- 380000 through 399999
Discover
Valid length:
16 digits.
First six digits must be in one of the following
ranges:
- 601100 through 601109
- 601120 through 601149
- 601174
- 601177 through 601179
- 601186 through 601199
- 644000 through 659999
enRoute
Valid length:
15 digits. First four digits must be 2014 or 2149.
JCB
Valid length:
16 to 19 digits.
First four digits must be in the range 3528
through 3589.
Mastercard
Valid
length: 16 digits.
First digit must be 5 and second digit
must be in the range 1 through 5 inclusive. The range is 510000
through 559999.
First digit must be 2 and second digit must
be in the range 2 through 7 inclusive. The range is 222100 through
272099.
Maestro
Valid length: Up to 19 digits.
First digit must
be 5 or 6. The ranges are:
- 50nnnn
- 56nnnn through 64nnnn
- 66nnnn through 69nnnn
Visa
Valid length:
Up to 19 digits. First digit must be a 4.Information on how to identify
the credit card type based on the numeric range and based on the
length of the credit card number.