VerSys ← Back to Versys Card Checker

BIN / IIN Lookup: A Guide to Credit Card Validation

Everything you need to know about Bank Identification Numbers (BIN/IIN), the Luhn algorithm, card scheme detection, and why BIN lookups matter for e-commerce and fraud prevention.

What is a BIN / IIN?

A Bank Identification Number (BIN) — officially called an Issuer Identification Number (IIN) since the ISO/IEC 7812 standard update — is the first 6 to 8 digits of a payment card number. These digits uniquely identify:

The remaining digits are the individual account number and a check digit (verified via the Luhn algorithm). Card numbers are typically 13–19 digits long, with Visa and Mastercard standardised at 16 digits.

How does the Luhn algorithm work?

The Luhn algorithm (also known as the "modulus 10" or "mod 10" algorithm) is a simple checksum formula used to validate card numbers. It was designed to detect single-digit errors and transposed digit pairs. Here's how it works:

For example, the Visa test number 4111111111111111 passes the Luhn check. The Luhn algorithm does not confirm that an account is open — only that the number is structurally plausible.

Card number prefixes by scheme

Card schemes can be identified from the first 1–4 digits:

Why do businesses perform BIN lookups?

BIN lookups are used across many payment and fraud prevention use cases:

BIN lookup vs. full card validation

A BIN lookup uses only the first 6–8 digits of a card number — no sensitive data is required or shared. Combined with a Luhn check on the full card number, you get a comprehensive picture of a card's validity and origin without ever processing or storing the actual account number.

The Versys card checker performs both a Luhn validation and a BIN lookup automatically. It never stores card numbers, only the BIN (first 6 digits) for issuer identification.

Try the card checker

Luhn validation + BIN lookup in one step. Enter any card number — no account needed.

Open Versys Card Checker

Browse BINs by card scheme

The BIN Directory lists common card BINs across Visa, Mastercard, Amex, Discover, and Maestro, each linking to a full issuer lookup report.