银行卡号编码规则

我们时常时常会遇到各种借记卡(储蓄卡)和贷记卡(信用卡)。银行卡号那么长一截,其实就像身份证一样,这里面也有一些规则。

其实我们的银行卡号一般是16位或者19位。由如下三部分构成。

●前六位是:发行者标识代码 Issuer Identification Number (IIN)。

注意:当前已经用IIN替换了之前的发卡行识别码 Bank Identification Number (BIN).

其中第一位数字是主要产业标识符(Major Industry Identifier (MII)),下表列出了MII每个数字代表的卡号行业。

卡号首位
适用的目录
0 ISO/TC 68 和其他行业使用
1 航空
2 航空和其他未来行业使用
3 运输、娱乐和金融财务
4 金融财务
5 金融财务
6 商业和金融财务
7 石油和其他未来行业使用
8 医疗、电信和其他未来行业使用
9 由本国标准机构分配

下表列出了,不同卡号对应的发行机构。因此“中国银联”发行的卡一定是62开头;而国内使用Visa信用卡的人士其卡号会是4开头,而使用万事达(Matercard)的人士卡号一般以51、52、53、54、55打头。

发行机构卡号开始使用卡号长度验证方式
American Express 34, 37 Yes 15 Luhn algorithm
Bankcard 5610, 560221-560225 No 16 Luhn algorithm
China UnionPay 62 Yes 16-19 no validation
Diners Club Carte Blanche 300-305 Yes 14 Luhn algorithm
Diners Club enRoute 2014, 2149 No 15 no validation
Diners Club International 36 Yes 14 Luhn algorithm
Diners Club United States & Canada 54, 55 Yes 16 Luhn algorithm
Discover Card 6011, 622126-622925, 644-649, 65 Yes 16 Luhn algorithm
InstaPayment 637-639 Yes 16 Luhn algorithm
JCB 3528-3589 Yes 16 Luhn algorithm
Laser 6304, 6706, 6771, 6709 Yes 16-19 Luhn algorithm
Maestro 5018, 5020, 5038, 6304, 6759, 6761, 6762, 6763 Yes 12-19 Luhn algorithm
MasterCard 51-55 Yes 16 Luhn algorithm
Solo 6334, 6767 No 16, 18, 19 Luhn algorithm
Switch 4903, 4905, 4911, 4936, 564182, 633110, 6333, 6759 No 16, 18, 19 Luhn algorithm
Visa 4 Yes 13, 16 Luhn algorithm
Visa Electron 4026, 417500, 4508, 4844, 4913, 4917 Yes 16 Luhn algorithm

●中间的位数是:个人账号标识(从卡号第七位开始)

中间位数由发卡行自定义,一般由6-12位数字组成。最多可以使用12位数字。

每个银行的个人账号标识规则有所不同。有的银行在这部分内容中会包含分行、支行、储蓄网点等代码信息。有得银行可能就没有这么详细,会使用自然流水顺序码。

●最后一位位数是校验位
将卡号前面的数字采用Luhn算法计算出信用卡或者借记卡的最后一位数字。

posted on 2016-06-03 13:39  frydsh  阅读(2110)  评论(0编辑  收藏  举报

导航