Bank card numbers can be anywhere from twelve to nineteen digits long, while most credit cards have sixteen numbers. Is there meaning behind the codes? How do you know if a credit card is valid? How about the validation code?
The first digit of card numbers is the Major Industry Identifier (MII). It designates the category of the entity that issued the card.
0 – ISO/TC 68 and other future industry assignments
1 – Airlines
2 – Airlines and other future industry assignments
3 – Travel and entertainment and banking/financial
4 – Banking and financial
5 – Banking and financial
6 – Merchandising and banking/financial
7 – Petroleum and other future industry assignments
8 – Healthcare, telecommunications and other future industry assignments
9 – National assignment
The following 6 digits are the issuer identification number, which tells us which institution issued the card.
The 7th digit onwards represent a person’s account number, while the final digit is used for Luhn algorithm (checksum formula to validate a credit card). You can take a look at the inforgraphic below for detailed calculations.
Issuing network | IIN code ranges | Length |
---|---|---|
American Express | 34, 37 | 15 |
China UnionPay | 62 or 88 | 16-19 |
Diners Club Carte Blanche | 300-305 | 14 |
Diners Club International | 300-305, 309, 36, 38-39 | 14 |
Diners Club United States & Canada | 54, 55 | 16 |
Discover Card | 6011, 622126-622925, 644-649, 65 | 16 |
JCB | 3528-3589 | 16 |
Laser | 6304, 6706, 6771, 6709 | 16-19 |
Maestro | 5018, 5020, 5038, 5612, 5893, 6304, 6759, 6761, 6762, 6763, 0604, 6390 | 12-19 |
Dankort | 5019 | 16 |
MasterCard | 50-55 | 16 |
Visa | 4 | 13, 16 |
Visa Electron | 4026, 417500, 4405, 4508, 4844, 4913, 4917 | 16 |
Different cards have different security code names:
MasterCard – card validation code (“CVC2”)
Visa – card verification value (“CVV2”)
Discover – card identification number (“CID”)
American Express – “CID” or “unique card code”
Debit Card – card security code (“CSC”)
Graphic: www.mint.com