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.

Issuers are now banks, fintechs, telecoms and retailers worldwide.
Issuers are now banks, fintechs, telecoms and retailers worldwide. — © Monstera Production · Pexels

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.
Six digits used to be enough; the standard now reserves eight.
Six digits used to be enough; the standard now reserves eight.

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.

On this site

External references

Related articles

IIN مقابل BIN: الحقل نفسه بعقدٍ مختلف — ولماذا أصبح 8 خانات — النسخة العربية

سترى المصطلحين في توثيق المدفوعات. أحدهما الاسم القديم؛ وكلاهما يشير إلى الخانات الأولى نفسها — التي تضاعف طولها المحجوز مؤخرًا.

BIN (رقم تعريف البنك) هو المصطلح الأقدم من زمنٍ كانت البنوك وحدها تُصدر البطاقات. أعاد معيار ISO/IEC 7812 تسمية الحقل إلى IIN (معرّف المُصدِر) لأن شركات التقنية المالية والاتصالات والطيران والتجزئة تُصدر بطاقات أيضًا اليوم. عمليًا ما زال المطوّرون يقولون BIN، والمُستحوِذون يقولون IIN، وكلاهما يعني الخانات الأولى من رقم البطاقة.

التوسّع إلى ثماني خانات في 2022

كانت مساحة الست خانات — مليون مُصدِر محتمل — تنفد مع تكاثر برامج البطاقات مسبقة الدفع والافتراضية. في أبريل 2022 نقل المعيار الـIIN إلى ثماني خانات، ما يتيح مئة مليون معرّف. ألزمت فيزا وماستركارد المُستحوِذين والمعالجين بدعم الطول الجديد؛ ونشرت جمعية المصرفيين الأمريكيين، التي تسجّل الـIIN في الولايات المتحدة، إرشادات الانتقال.

ما الذي تغيّر في كودك

  • اكتشاف العلامة (هل هذه فيزا أم ماستركارد؟) ما زال يعمل على أول 1–6 خانات كما في جدول النطاقات.
  • التوجيه على مستوى المُصدِر والبحث عن الرسوم واكتشاف الدولة تحتاج الآن أول ثماني خانات.
  • أي عمود قاعدة بيانات أو تعبير نمطي يقتطع إلى ست خانات سيخطئ في تحديد المُصدِرين الجدد.

النطاقات المشتركة والمتداخلة

بعض البادئات مشتركة بين الشبكات — 622126–622925 منطقة لديسكفر ويونيون باي معًا — لذا ينبغي أن يفضّل الاكتشاف المطابقة الأكثر تحديدًا. الورقة المرجعية للبادئات تسرد الفخاخ.

أخفِ رقم البطاقة بعرض أول ست وآخر أربع خانات على الأكثر. ورغم أن الـIIN أصبح ثماني خانات، لم تتغيّر قواعد إخفاء PCI DSS — انظر قواعد الإخفاء.

أسئلة شائعة

هل BIN وIIN الشيء نفسه؟

نعم. IIN هو مصطلح ISO الحالي للخانات الأولى من رقم البطاقة؛ وBIN الاسم القديم الذي ما زال شائعًا.

كم طول الـBIN الآن؟

ثماني خانات منذ أبريل 2022، رغم أن كثيرًا من الأنظمة ما زالت تعتمد على أول ست خانات لاكتشاف العلامة.

Educational content — not legal or financial advice. Open the interactive Check Digit Lab →