A card number is a structured identifier, not a random string. The first digit says which industry issued it, the first six or eight say which institution, the last is a checksum — and only the digits in between are actually your account.

What each part means

DigitsNameWhat it identifies
1Major Industry IdentifierThe sector — 4 and 5 are banking and finance
1–6 (or 1–8)Issuer Identification NumberThe specific bank or issuer
7 to 15Account identifierThe cardholder's account at that issuer
16Check digitA Luhn checksum over everything before it
A 16-digit card number, by section

Who has which prefix

NetworkStarts withTypical length
Visa416
Mastercard51–55, and part of the 2 range16
American Express34, 3715
Discover6011, 64, 6516
Diners Club36, 3814
Network prefixes

American Express is the visible oddity: 15 digits rather than 16, a legacy of having built its own system rather than adopting the bank-card conventions. It is also why some checkout forms handle Amex badly — a hard-coded 16-digit assumption breaks on it.

What the BIN reveals

Because the first six to eight digits identify the issuer, they also reveal a good deal about the card without contacting anyone.

  • The network, which is why the correct logo appears as you type.
  • The issuing bank, and therefore usually the country of issue.
  • The card type — debit, credit, prepaid, corporate — which determines what it costs to accept.
  • Whether a surcharge applies, since international and commercial cards are priced differently.

Why this matters to a merchant

BIN lookup is how a processor knows, before authorization, whether a transaction will attract an international or commercial-card surcharge. It is the mechanism behind the situational fees on every rate card — including ours.

It is also how fraud systems flag geographic mismatches, and how a checkout can decide whether to trigger 3D Secure.

Sources

  • ISO/IEC 7812 — identification cards, identification of issuers.
  • Published network BIN ranges from Visa, Mastercard, American Express and Discover.
  • Card network guidance on the migration from six-digit to eight-digit issuer identifiers.

GOOD QUESTIONS

Frequently asked

Why do Visa cards start with 4?+

Because 4 is Visa's assigned Issuer Identification Number range under ISO/IEC 7812. The first digit is the Major Industry Identifier, and both 4 and 5 are allocated to banking and finance. Mastercard uses 5 (and part of the 2 range), American Express 34 and 37, Discover 6011 and others.

What is a BIN or IIN?+

The first six — increasingly eight — digits of a card number, identifying the institution that issued it. BIN stands for Bank Identification Number and IIN for Issuer Identification Number; IIN is the current standard term for the same thing.

Can you tell anything about a card from its number?+

The network, the issuing bank, and usually the card type and country. That is why checkout forms display the right card logo as you type, and why fraud systems can flag a card issued in one country being used in another.

Why did BINs expand from six digits to eight?+

The six-digit space was running out. The card networks moved to eight-digit identifiers to create more room for issuers, which is why systems that hard-coded a six-digit assumption have had to be updated.