Credit Card Number Structure
A payment card number (PAN) is structured into fields: MII, BIN/IIN, account number and check digit.
| Field | Digits | Meaning |
|---|---|---|
| MII | 1 | Major Industry Identifier (card brand category) |
| BIN/IIN | 6 | Bank Identification Number / Issuer Identification Number |
| Account number | variable | Issuer-assigned account identifier |
| Check digit | 1 | Luhn checksum digit |
MII values: 4=Visa (banking), 5=Mastercard (banking), 3=AMEX (travel), 6=Discover (merchandising). Use the PAN Structure Analyzer to break down a number.
Related tools
This guide explains the structure of a card number: the issuer BIN, the account portion, the length rules and the Luhn check digit. It is a reference for understanding what the validators and lookups on this site are checking.
From prefix to account
The leading digits identify the network and issuer. The middle digits identify the account within that range. The final digit is a checksum. Card numbers range from 13 to 19 digits, and the BIN can be six or eight digits depending on the allocation. The structure is why a BIN lookup can classify a card without knowing the account.
Length and brand rules
Each network allows certain lengths. Visa is commonly 13, 16 or 19 digits; Mastercard commonly 16; American Express 15; Discover 16 to 19. A validator uses the detected brand to check the length. A number that is the wrong length for its brand fails before the checksum is even considered.
The check digit
The final digit is computed with the Luhn algorithm so the whole number's digit total is a multiple of ten. It catches most typing errors and transpositions. It is not a security feature, and a passing number is not necessarily a real account. Use the Luhn checker for the checksum and the live checker for validity.
Length by brand
Visa commonly uses 13, 16 or 19 digits, Mastercard 16, American Express 15 and Discover 16 to 19. A validator should detect the brand first, then apply the matching length rule. Applying one global length to every number rejects valid cards and accepts invalid ones. The brand and the length are linked.
Buy live-checked CC and CVV on Dark Dollars
Dark Dollars sells live-checked live-checked CC and CVV. Every listing carries bin, brand, country, level and a verified balance band, with a check timestamp and replacement cover. Open darkdollars.st to buy live-checked CC and CVV.
Frequently asked questions
What is the BIN in a card number?
The leading six to eight digits that identify the issuer, brand, level and country.
Why do card lengths vary?
Each network and product allows specific lengths, from 13 to 19 digits.
What does the final digit do?
It is the Luhn checksum digit that makes the number internally consistent.
Does structure prove validity?
No. It describes the format. A live check is required for validity.
Do all Visa cards have 16 digits?
No. Visa commonly uses 13, 16 or 19 digits depending on the product.
Why detect the brand before checking length?
The expected length depends on the brand. Checking length first produces false rejections.