networks · 2025-01-20 · 5 min read
IIN vs. BIN: same field, different decade — and why it grew to 8 digits
You will see both terms in payment documentation. One is the legacy name; both point at the same leading digits — which recently doubled in reserved length.

BIN (Bank Identification Number) is the older term from a time when only banks issued cards. ISO/IEC 7812 renamed the field IIN (Issuer Identification Number) because fintechs, telecoms, airlines and retailers now issue cards too. In practice developers still say BIN, acquirers say IIN, and both mean the leading digits of the PAN.
The 2022 expansion to eight digits
The six-digit space — one million possible issuers — was running out as prepaid and virtual-card programs multiplied. In April 2022 the standard moved the IIN to eight digits, giving a hundred million identifiers. Visa and Mastercard mandated acquirers and processors to support the new length; the American Bankers Association, which registers IINs in the United States, published migration guidance.
What changed for your code
- Brand detection (is this Visa or Mastercard?) still works on the first 1–6 digits, as shown in our ranges table.
- Issuer-level routing, fee lookups and country detection now need the first eight digits.
- Any database column or regex that truncates to six will mis-identify newer issuers.
Shared and overlapping ranges
Some prefixes are shared between networks — 622126–622925 is both Discover and UnionPay territory — so detection should prefer the most specific match. The prefix cheat-sheet lists the traps.
Mask the PAN using at most the first six and last four digits. Even though the IIN is now eight digits, PCI DSS masking rules did not change — see masking rules.

Keywords: BIN, IIN, bank identification number, issuer identification number, 8-digit BIN, BIN lookup
Frequently asked questions
Are BIN and IIN the same thing?
Yes. IIN is the current ISO term for the leading digits of a card number; BIN is the legacy name still widely used.
How long is a BIN now?
Eight digits since April 2022, though many systems still key on the first six for brand detection.