2ClickKit

Bank Identification Number (BIN / IIN) Lookup

Files Never Leave Your Device

Parse ISO/IEC 7812 6-digit legacy and 8-digit modern Issuer Identification Numbers (IIN). Identify card brand, issuing bank, card type, tier, and country locally.

Bank Identification Number (BIN / IIN) Parser

Parse ISO/IEC 7812-1 6-digit legacy and 8-digit modern Issuer Identification Numbers (IIN). Instantly verify scheme brand, card category, issuing institution, and country with 100% in-browser offline privacy.

6 digits
Popular Benchmark Presets
CREDIT INFINITEJPMorgan Chase Bank, N.A.
414720 •••• ••••
US / USDEXP: 12/28
CARD SCHEMEVisa
VISA
Parsed Card & Issuer Profile
Card NetworkVisa
Card TypeCredit
Category / TierInfinite
Issuing BankJPMorgan Chase Bank, N.A.
Country (ISO)United States (US)
Billing CurrencyUSD
ISO/IEC 7812 Standard:6-Digit Legacy BIN

ISO/IEC 7812 Structure Deconstruction

Digit 1: Major Industry Identifier
4Banking & Financial

Global banking networks and financial credit/debit institutions (Visa)

Digits 1 to 6/8: Issuer ID (IIN)
414720

Assigned by ISO/IEC 7812 registration authority to identify the card scheme and sponsoring financial institution.

Subsequent Digits: Account Number
Assigned by Issuer

Variable-length individual customer account identifier allocated uniquely by the card issuing bank.

Terminal Digit: Luhn Checksum
Calculated at end

Modulo 10 check digit calculated to catch transmission and transcription errors.

100% In-Browser Execution: Zero network requests are made. All card prefix lookups and ISO 7812 calculations occur entirely in your local browser memory, ensuring complete PCI-DSS compliance and zero data leakage.

Technical Architecture: The ISO/IEC 7812 Financial Card Identification Standard

Every physical plastic credit card, debit card, contactless mobile token in Apple Pay, and virtual corporate purchasing account relies on a globally coordinated numeric structure. This global taxonomy is codified under ISO/IEC 7812, titled "Identification cards — Identification of issuers". At the core of this standard lies the Bank Identification Number (BIN), officially designated in contemporary revisions as the Issuer Identification Number (IIN).

When a consumer taps an EMV chip or enters card details into a payment gateway, the payment processing engine decomposes the Primary Account Number (PAN) into distinct logical segments. The leading digits dictate the settlement network, the issuing bank, the domestic or cross-border jurisdiction, and the fee structure of the transaction.

Structure of the Primary Account Number (PAN)

Under ISO/IEC 7812-1, a standard payment card number spans between 12 and 19 numeric digits, typically 16 digits for Visa, Mastercard, Discover, and RuPay, or 15 digits for American Express. The complete numeric sequence is segmented into three primary zones:

PAN Segment Length (Digits) Functional Description Governing Body
Major Industry Identifier (MII) 1st Digit Categorizes the primary industrial category (airline, travel, banking, petroleum) ISO/IEC TC 68 & Registration Authority
Issuer Identification Number (IIN) Leading 6 or 8 Digits Uniquely identifies the card scheme network and sponsoring financial institution American Bankers Association (ABA) / ISO
Individual Account Identifier Variable (up to 12 digits) Uniquely identifies the cardholder individual checking, savings, or credit line Issuing Bank Internal Ledger
Check Digit Final Single Digit Mathematical checksum computed using Hans Peter Luhn's Modulo 10 formula ISO/IEC 7812-1 Annex B

Major Industry Identifiers (MII) Deep Dive

The very first digit of every payment card establishes the broad economic sector under which the card issuer operates. ISO/IEC 7812-1 designates the following numeric assignments:

  • 0: ISO/TC 68 and other future industry assignments.
  • 1: Airlines (e.g. legacy frequent flyer cards with direct merchant clearing).
  • 2: Airlines, financial institutions, and other assignments (e.g. Mastercard 2221-2720 series).
  • 3: Travel and entertainment, as well as specialty banking. American Express always begins with 34 or 37; Diners Club begins with 300-305, 36, or 38; and JCB begins with 35.
  • 4: Banking and financial networks. The number 4 is exclusively assigned to the Visa payment network worldwide.
  • 5: Banking and financial networks. Historically assigned to Mastercard (51 through 55), as well as certain regional bank debit systems.
  • 6: Merchandising and banking. Utilized by Discover Financial Services (6011, 65, 644-649), China UnionPay (62), India's RuPay network (60, 6521, 6522), and Maestro debit cards.
  • 7: Petroleum and energy sector fuel fleet cards.
  • 8: Telecommunications, healthcare providers, and electronic identification programs.
  • 9: Reserved for assignment by national standards bodies for domestic government-backed programs.

The ISO/IEC 7812 8-Digit IIN Migration (2017 & 2022)

For more than five decades, the standard BIN length was universally fixed at six digits. However, the exponential expansion of fintech neo-banks, prepaid gift instruments, virtual corporate cards, and tokenization services (such as unique device PANs generated by Apple Pay and Google Pay) rapidly exhausted the available 6-digit address pool.

To address numeric exhaustion, ISO published an updated standard in 2017 expanding the official IIN definition from 6 digits to 8 digits. In April 2022, Visa and Mastercard formally executed the mandate across their global processing networks:

  • Pre-2022 (Legacy 6-Digit BIN): Allowed 106 = 1,000,000 unique issuer blocks globally. An issuing bank received a block of 10 digits (109) individual card accounts.
  • Post-2022 (Modern 8-Digit IIN): Expands the global issuer namespace to 108 = 100,000,000 unique routing blocks. An issuing bank receives 7 digits (107) individual card accounts per IIN.

This transition preserves the overall 16-digit PAN length while dramatically improving allocation efficiency. Software applications, fraud engines, and point-of-sale terminals that previously truncated inputs to 6 digits must now evaluate the full 8-digit prefix to distinguish specific product lines and regional tax classifications.

How Payment Gateways & Acquirers Leverage BIN Data

In modern electronic commerce architectures, BIN parsing occurs in real time before the authorization payload is dispatched to VisaNet or Banknet. Acquirers and merchants utilize BIN tables for several mission-critical optimizations:

1. Dynamic Surcharge & Interchange Optimization

Payment networks assess interchange fees based on the specific card tier. A transaction processed on a basic Visa Classic debit card incurs a significantly lower interchange fee (regulated at 0.05% + $0.21 in the United States under the Durbin Amendment) compared to a commercial Visa Infinite or corporate purchasing card (which may exceed 2.95% + $0.10). By evaluating the BIN immediately, enterprise billing software dynamically applies surcharge rules or prompts business customers for corporate expense purchase order references.

2. 3D-Secure 2.0 (3DS) Risk Scoring

Under European PSD2 Strong Customer Authentication (SCA) mandates, transactions originating from European Economic Area (EEA) issuing banks require step-up authentication via biometrics or one-time passcodes (OTP). Gateways inspect the country code derived from the BIN to determine whether SCA is mandatory or whether low-value fraud exemptions apply.

3. Least-Cost Debit Routing

In dual-badged debit cards (common in the US, Canada with Interac, and Australia with eftpos), the card contains both a global network brand (Visa or Mastercard) and a regional PIN debit network (Pulse, Star, NYCE). Merchants inspect the BIN to route the clearing message through the domestic network that charges the lowest network switch access fee.

Brand Network Primary IIN Prefixes Standard PAN Length Check Digit Algorithm
Visa 4 13, 16, 19 Luhn Modulo 10
Mastercard 51-55, 2221-2720 16 Luhn Modulo 10
American Express 34, 37 15 Luhn Modulo 10
Discover 6011, 622126-622925, 644-649, 65 16, 19 Luhn Modulo 10
JCB 3528-3589 16, 17, 18, 19 Luhn Modulo 10
China UnionPay 62, 81 16, 17, 18, 19 Luhn Modulo 10
RuPay (India) 508, 60, 6521, 6522, 81, 82, 3538 16 Luhn Modulo 10
Diners Club 300-305, 3095, 36, 38-39 14, 16 Luhn Modulo 10
Mir (Russia) 2200-2204 16, 17, 18, 19 Luhn Modulo 10
Elo (Brazil) 401178, 438935, 504175, 5067, 627780, 636297, 650 16 Luhn Modulo 10

Programmatic Implementation: Client-Side BIN Extraction in TypeScript

When engineering checkout checkout forms or transaction auditing pipelines, extracting metadata directly in client-side code eliminates external network roundtrips and protects sensitive cardholder details. Here is a production-grade TypeScript snippet:

// Client-Side ISO 7812 BIN / Scheme Resolver
export interface CardBrandInfo {
  scheme: string;
  expectedLengths: number[];
  cvvLength: number;
}

export function detectCardBrand(pan: string): CardBrandInfo {
  const clean = pan.replace(/\D/g, '');

  if (/^4/.test(clean)) {
    return { scheme: 'Visa', expectedLengths: [13, 16, 19], cvvLength: 3 };
  }
  if (/^(5[1-5]|2[2-7])/.test(clean)) {
    return { scheme: 'Mastercard', expectedLengths: [16], cvvLength: 3 };
  }
  if (/^3[47]/.test(clean)) {
    return { scheme: 'American Express', expectedLengths: [15], cvvLength: 4 };
  }
  if (/^(6011|65|64[4-9]|622)/.test(clean)) {
    return { scheme: 'Discover', expectedLengths: [16, 19], cvvLength: 3 };
  }
  if (/^35(2[89]|[3-8][0-9])/.test(clean)) {
    return { scheme: 'JCB', expectedLengths: [16, 17, 18, 19], cvvLength: 3 };
  }
  if (/^(62|81)/.test(clean)) {
    return { scheme: 'UnionPay', expectedLengths: [16, 17, 18, 19], cvvLength: 3 };
  }
  if (/^(508|60|6521|6522|81|82|3538)/.test(clean)) {
    return { scheme: 'RuPay', expectedLengths: [16], cvvLength: 3 };
  }
  if (/^(30[0-5]|36|38)/.test(clean)) {
    return { scheme: 'Diners Club', expectedLengths: [14, 16], cvvLength: 3 };
  }

  return { scheme: 'Unknown', expectedLengths: [16], cvvLength: 3 };
}

PCI-DSS Compliance: Privacy & Security Considerations

The Payment Card Industry Data Security Standard (PCI-DSS) v4.0 enforces strict rules regarding the storage and display of cardholder account data. Under Requirement 3.4, the Primary Account Number (PAN) must be rendered unreadable anywhere it is stored. Permitted display formats include masking the PAN so that only the first 6 or first 8 digits (the BIN/IIN) and the last 4 digits are visible.

Because 2ClickKit executes 100% inside your local web browser using client-side JavaScript, no keystrokes or account numbers are ever transmitted over the internet. This design guarantees full compliance with security policies and prevents accidental exposure of payment data to third-party tracking services.

How to Use BIN Lookup

  1. Enter Card Prefix or Full Number

    Input the first 6 or 8 digits of any payment card, or enter a full test number into the search box.

  2. Inspect ISO 7812 Decomposition

    Review the Major Industry Identifier (MII), Issuer Identification Number (IIN), card network, and account tier.

  3. Verify Financial Institution & Country

    Examine issuing bank entity, geographic country code, card category, and copy the full JSON payload.

Authoritative BIN Parse Example

Card Prefix
414720
Parsed Metadata
Visa Infinite Credit | JPMorgan Chase Bank, N.A. | United States (US / USD) | Luhn Compliant

Decomposed locally in 2 milliseconds with zero server transmission.

Technical Specifications

  • Supported Inputs: 6-Digit Legacy BIN, 8-Digit Modern IIN, 16-19 Digit Full PAN
  • Input Limit: Unlimited client-side evaluation
  • Processing Engine: 100% In-Browser (ISO/IEC 7812 Decomposition Engine)
  • Content Uploads: None (Your files and text are processed locally on your device with zero uploads)

Privacy & Security Guarantee

Your card prefixes and financial account numbers are processed entirely in your web browser's memory using native client-side web technologies. Unlike traditional cloud tools, your content is never uploaded to remote servers, stored on external disks, or analyzed by third parties.

2ClickKit In-Browser vs Traditional Cloud Tools

Feature 2ClickKit (In-Browser) Traditional Cloud Services
Data Privacy Files never leave your local device Uploaded to remote servers and third-party clouds
Processing Speed Instant local execution (0ms upload time) Constrained by internet upload & server processing queues
Account & Costs 100% Free with zero registration or paywalls Tiered subscriptions, limits, or forced sign-ups

Best Practices & Tips

  • Use modern 8-digit BIN lookups to differentiate between subtle sub-brands such as Chase Sapphire Preferred vs Sapphire Reserve.
  • When designing payment forms, listen to the first 4-6 digits to render the appropriate card network badge dynamically.
  • Export the parsed JSON payload to quickly populate mock API transaction fixtures for automated test suites.

Frequently Asked Questions

What is a Bank Identification Number (BIN) and an IIN?

A Bank Identification Number (BIN) represents the initial digits of a payment card number that identifies the issuing financial institution and the card network. Under the international standard ISO/IEC 7812-1, this prefix is formally designated as the Issuer Identification Number (IIN). It tells payment switches and merchant gateways where to route the authorization request across networks like Visa, Mastercard, and American Express.

What is the ISO/IEC 7812 8-digit BIN expansion standard?

Historically, BINs were 6 digits in length. Due to the rapid global explosion of cards, fintechs, and virtual payment tokens, the International Organization for Standardization (ISO) updated ISO/IEC 7812-1 in 2017 to expand the official IIN length from 6 digits to 8 digits. Major payment card brands completed their mandatory ecosystem migration in April 2022. While legacy 6-digit BIN routing remains backward-compatible, modern banking systems evaluate all 8 digits.

What information does a BIN lookup reveal and what remains hidden?

A BIN lookup reveals macro metadata: the payment network (Visa, Mastercard, Amex, Discover, RuPay), card type (credit, debit, prepaid, commercial), product tier (Infinite, World Elite, Platinum), issuing bank (e.g. JPMorgan Chase, Barclays), and country of issuance. It never reveals personal cardholder data, cardholder names, account balances, expiration dates, or CVV security codes.

What is the Major Industry Identifier (MII)?

The first digit of any payment card is the Major Industry Identifier (MII). It categorizes the primary business sector of the issuing entity: 1 and 2 for airlines; 3 for travel and entertainment (Amex, Diners Club, JCB); 4 and 5 for banking and financial institutions (Visa, Mastercard); 6 for merchandising and banking (Discover, UnionPay, RuPay); 7 for petroleum fuel cards; 8 for healthcare and telecommunications; and 9 for national standards assignments.

How do payment gateways utilize BINs for fraud prevention and routing?

Payment processors like Stripe, Adyen, and PayPal inspect BINs during checkout to apply custom 3D-Secure challenge rules, detect cross-border foreign transaction fees, apply Interchange Plus routing, block stolen card batches, and ensure debit cards are routed over low-cost PIN debit rails (such as NYCE, Star, or Pulse in the United States).

Is it safe to look up card numbers on 2ClickKit?

Yes, 100%. Unlike online SaaS tools that send card prefixes to third-party tracking APIs, 2ClickKit executes entirely inside your browser memory. No keystrokes, card numbers, or lookup outputs are ever uploaded to an external server, satisfying PCI-DSS security compliance.

Can a BIN identify whether a card is prepaid or gift card?

Yes. Issuers assign distinct IIN blocks to reloadable prepaid debit cards and non-reloadable gift cards. Merchants frequently use this classification to enforce recurring subscription billing policies, preventing users from signing up for free trials with zero-balance disposable gift cards.

How does the check digit interact with the BIN?

The BIN occupies the leading 6 or 8 digits of the Primary Account Number (PAN). The final single digit of the card is the Luhn check digit, calculated using the Modulo 10 formula over all preceding digits to protect against human mistyping.