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.
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.
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 schemes can be identified from the first 1–4 digits:
451–55 or 2221–272034 or 37 (15 digits)6011, 622126–622925, 644–649, or 653528–35896304, 6759, 676770, or 676774BIN lookups are used across many payment and fraud prevention use cases:
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.
Luhn validation + BIN lookup in one step. Enter any card number — no account needed.
Open Versys Card CheckerThe BIN Directory lists common card BINs across Visa, Mastercard, Amex, Discover, and Maestro, each linking to a full issuer lookup report.