A BIN number test checks the first six to eight digits of a payment card number to identify the issuing bank, the card network and the card type. It is a validation step, not an authorization: a BIN test tells you what a card claims to be, while only an issuer authorization confirms the account is open and funded. Merchants, payment developers and fraud teams use BIN testing to route transactions, apply the right rules and block suspicious traffic early.
What is a BIN number test?
A BIN number test is a lookup against a BIN database or an issuer range table. The BIN (Bank Identification Number), now more precisely called the Issuer Identification Number, is the leading portion of the primary account number defined in ISO/IEC 7812. The result typically returns the issuing country, the card brand, the card level (classic, gold, platinum, commercial) and whether the card is a credit or debit product.
A BIN test does not verify the cardholder, the CVV, the expiry date or the available balance. Treat any tool that claims otherwise as unreliable.
What does a BIN lookup return?
- Card network (Visa, Mastercard, American Express, Discover)
- Issuing bank and issuing country
- Card type and product level
- Whether the range is consumer or commercial
- Domestic versus cross-border eligibility for interchange
These attributes drive real decisions: which currency to settle in, which fraud rules to apply, and whether to accept a cross-border transaction at all.
How does a BIN test differ from card verification?
A BIN test is static and offline. Card verification is a live authorization request sent through the network to the issuer, who approves or declines against the real account. The two are complementary: BIN data shapes the rules, and authorization supplies the verdict.
What is a BIN attack?
A BIN attack is a burst of scripted, low-value authorization attempts used to discover which card numbers in a range are live. Attackers iterate through a guessed BIN and expiration combinations, watching for approvals, and then monetize the confirmed numbers. The pattern shows up as hundreds of small transactions from a narrow IP range within minutes, unusually high decline rates, and many distinct card numbers sharing one device fingerprint.
How do merchants detect and stop BIN testing attacks?
- Rate-limit authorization attempts per IP, device and card BIN.
- Block or challenge velocity spikes on low-ticket transactions.
- Require CVV and address verification on first-time customers.
- Monitor decline-to-approval ratios by BIN and escalate anomalies.
- Feed confirmed attack BINs into blocklists and share them with your acquirer.
Most attacks fail against a properly configured gateway with velocity limits and 3-D Secure enabled for risky traffic.
Is it legal to test a card BIN you do not own?
No. Running authorization attempts against card numbers you are not authorized to use is card fraud, regardless of whether the amounts are small. Legitimate BIN testing is performed on your own issued cards during development, or on synthetic test BINs supplied by your payment processor.
Where do developers get safe test BINs?
Payment processors publish sandbox card numbers tied to test BIN ranges that never touch a real account. Use those for integration testing, and never point test scripts at production endpoints.