Published on Nov 16, 2023Naqcho AliRead time: 15m3.7K viewer
What a BIN Number Tells You (and What a BIN Checker Cannot Prove)

What a BIN Number Tells You (and What a BIN Checker Cannot Prove)

Introduction

Card fraud cost acquirers, issuers and merchants $33.41 billion in 2024. Every loss traces back to a card number, and in the online case that number arrives as digits typed into a form, with its first digits in the clear: network, issuer range, country of issue, product type. That metadata is free to read, and it sits in your request body before your processor hears about the order.

Most teams treat it as formatting trivia. The digits get used to show a card icon next to the payment field, then dropped, and the risk decision waits for an authorization response that arrives after the customer has been charged or declined.

What follows covers what the prefix actually contains, how the move from six to eight digits invalidated a lot of lookup tables, which fields are worth acting on, and the short list of things a BIN check will never tell you no matter what a vendor promises.

"Losses to fraud by acquirers of payments from merchants, acquirers of transactions from ATMs, card issuers and merchants were $33.41 billion in 2024, down 1.2% from $33.83 billion in 2023." The Nilson Report, Payment Card Fraud Worldwide, Issue 1298, December 2025.

What a BIN is

BIN stands for Bank Identification Number. The same digits are also called an Issuer Identification Number, or IIN, and the second name is the more accurate one. The range belongs to whoever issues the card, and that is not always a bank. It can be a challenger bank, a fintech renting a sponsor's range, a retailer with a store card, or a processor acting for any of them.

The card network assigns the range. The issuer prints it on the plastic. Every party downstream reads those digits expecting the same meaning, which is why a lookup that returns the wrong issuer is almost always a problem with the table, not with the card.

The important point for a merchant is that a BIN belongs to a range, not to a person. It describes the product, not the account.

The structure inside the number

A card number, properly the primary account number or PAN, is a sequence where each part does a job.

The first digit is the Major Industry Identifier, a one digit code for the industry that issued the card. The next six to eight digits are the issuer range. The rest identifies the individual account within that range. The final digit is a check digit produced by the Luhn algorithm, which catches most typos and transposed digits before a request ever leaves your page.

PAN length is not fixed. ISO allows between 10 and 19 digits. Most consumer credit and debit cards use 16, American Express uses 15, and some UnionPay and Maestro products run longer. A validator that assumes 16 digits will reject real cards.

This is why a good BIN response includes a syntax object rather than just a type:

"syntax": {
  "gaps": [4, 8, 12],
  "lengths": [16, 18, 19],
  "code": { "name": "CVV", "size": 3 }
}

The gaps are where a human would put spaces, the lengths are valid PAN lengths for the range, and the code block says whether the card carries a three or four digit security code and what it is called. Wire that into your form and your card field formats itself correctly for every network without a hardcoded rules file.

Six digits became eight

For decades the issuer portion was six digits. As the number of card issuers grew, ISO revised ISO/IEC 7812-1 to allow the issuing BIN to run to eight digits, after the available six digit combinations started to look scarce for the volume of programs being launched. Visa and Mastercard set April 2022 as the point by which issuers, acquirers and processors needed to handle the longer format, and Visa said it would issue only eight digit BINs from that point. The PAN length stayed variable, between 10 and 19 digits.

The practical damage is in old tables. A spreadsheet or a cached database keyed on six digits will happily return a confident answer for a card whose range is defined at eight, and that answer can name the wrong issuer, the wrong country, or the wrong funding type. More than one team has discovered this after a prepaid card from one country was approved under rules written for a credit card from another.

The fix is unglamorous: send the longest prefix you have, up to eight digits, and read detected_digits in the response to see how many digits the resolver needed to make its match. A four digit match on a Visa range is normal. A four digit match on a range you expected to be precise is a hint that your assumption about the range was wrong.

What the first digit rules in and out

The Major Industry Identifier narrows the field before any database is touched.

  • 4 is Visa.
  • 5 is Mastercard, covering 51 to 55, with 2221 to 2720 also Mastercard under the newer range.
  • 3 covers travel and entertainment: American Express on 34 and 37, JCB on 35, Diners Club on 36, 38 and 39.
  • 6 is Discover on 6011, 65 and the 644 to 649 block, plus some Maestro cards.
  • 1 and 2 are airline assignees, 7 is petroleum, 8 is telecommunications, and 9 is for national assignment.

A single digit therefore rules out most networks and confirms none of them. Reading "3" and stopping is how a JCB card gets routed through an American Express rule. The second digit earns its keep there, and the full prefix does the rest.

If you only ever use one field from a BIN check, use the scheme name and compare it against the card icon or payment method the customer actually selected. A mismatch between a chosen payment method and a submitted card is one of the cheapest high signal checks at checkout.

What a lookup returns and what each field is for

A BIN lookup returns a small set of facts about the range. The value depends on knowing which ones support a decision and which are only context.

is_valid says the prefix maps to a known range and passes the structural checks. It does not mean the card exists.

is_blacklisted says the range, not the card, appears on a blocklist. Ranges get abused in bulk, so a blacklisted BIN is a strong default to refuse or review.

scheme carries the network name, whether the range passes Luhn, whether it is prepaid, whether it is commercial, the card type where the network publishes it, the brand tier, and the currency the issuer works in.

bank carries the issuer identity: name, city, website and contact details where available. This is what makes a manual review faster than a search engine.

country carries the country of issuance with its codes, continent and primary language. It is the field that most often settles an argument about whether a billing address makes sense.

syntax carries the formatting rules described above, which is the part developers use first because it removes a whole class of input bugs.

Reading the response

The endpoint is a single GET with the prefix in the path:

curl -s "https://v2.greipapi.com/lookup/bin/456789" \
  -H "Authorization: Bearer ***"

The trimmed response from the documentation sample looks like this:

{
  "success": true,
  "data": {
    "bin": "456789",
    "is_valid": true,
    "is_blacklisted": false,
    "detected_digits": "4",
    "scheme": {
      "name": "Visa",
      "is_luhn": true,
      "is_prepaid": false,
      "is_commercial": false,
      "type": "debit",
      "brand": "Traditional",
      "currency": "SAR"
    },
    "bank": { "name": "AL RAJHI BANKING AND INVESTMENT CORP.", "city": "Riyadh" },
    "country": { "alpha2": "SA", "name": "Saudi Arabia" }
  },
  "execution_ms": 2
}

A debit card, issued in Saudi Arabia, working in riyals, not prepaid, not commercial, resolved on four digits. That is a coherent set of facts about a product. Nothing in it is a statement about the person holding the card. The full field reference is in the BIN lookup documentation.

What a BIN check proves

Three things, and they are worth stating precisely because they are easy to overstate.

The prefix maps to a known scheme and issuer range. If the digits do not resolve, either the number was typed wrong or the range is not published, and both are reasons to stop.

The number fits the structure the range expects: length, gaps, and Luhn. That catches typos, mistyped digits and a large share of random number generators.

The product type is what it appears to be, at least as far as the networks publish it: debit or credit, prepaid or not, consumer or commercial, and where the issuer is based.

What it cannot prove

A BIN check cannot tell you who owns the card. It cannot tell you whether the account has funds, whether the card is active, or whether the person typing the number is the cardholder. It cannot tell you whether a charge should be approved, and it cannot make you compliant with anything. Our own BIN lookup service page says the same thing in one line, because a vendor that oversells this field creates problems for everyone downstream.

Everything that matters about the human holding the card lives outside the prefix: whether the device is new, whether the IP matches years of history, whether the email was created last week, whether the shipping address has been used before. The prefix tells you what the card is. The rest of your stack has to work out who is using it.

A BIN check is enrichment, not authorization. Run it before capture to shape the decision, then let your processor and your identity checks carry the rest. Teams that skipped this framing are the ones with a rule that declines whole issuer countries.

Country of issue is not the customer's country

The most common mistake with the country field is treating a mismatch as fraud. It is a signal, and a weak one on its own.

A student on a home country card, a contractor paid in dollars on a foreign account, an expat with a card from the country they left, a corporate traveler on a card issued at head office: all of them produce a mismatch that has nothing to do with fraud. What raises the score is the combination. A card issued in one country, a connection from another, an address in a third, and an account created minutes ago is a different story from the same mismatch on a five year old customer with a clean history.

The connection side of that comparison comes from IP location intelligence, and it is only worth comparing once you know whether the connection is a residential line or a commercial VPN, which is what VPN and proxy detection answers. Use the pair, not the card field alone.

Prepaid, commercial and virtual ranges

Prepaid is the field teams ask about most, and it is the one that most often gets read too fast. A prepaid flag says the range is generally used for prepaid products. It does not prove this particular card is loaded with anything, and it does not separate a gift card bought with cash from a payroll card issued to a named employee.

Commercial ranges are similar. A business card tells you the account belongs to a company, which is useful for B2B invoicing rules and largely irrelevant to a consumer storefront. Treating every commercial card as higher risk costs you real orders from legitimate business buyers.

Virtual cards deserve a mention because they break simple assumptions about country and issuer. A card issued by a spend management platform can carry the currency of one country and settle in another, and the account behind it may belong to a company rather than a person. Our breakdown of prepaid versus debit in BIN data covers the funding type problem in more depth than this piece needs to.

Three ways a BIN check ends up useless

Truncating at six digits. Covered above, and still the single most common implementation bug in 2026. If your table predates the eight digit ranges, some of your answers are confidently wrong.

Caching the result forever. Issuer ranges get reassigned, and a card that resolved to one bank two years ago can resolve to another today. Cache for days, not quarters, and keep the cache keyed on the full prefix you sent.

Treating a match as approval. The check answers a question about a product. Approving a transaction on the strength of it means you have replaced your fraud stack with a database lookup.

Where BIN data fits against card testing

Card testing is the attack where someone with a stolen list validates numbers in bulk with small charges. The tell is velocity: many attempts, small amounts, a spread of prefixes, and a high share of declines. A BIN check contributes two things there. It refuses prefixes that cannot be valid before they cost you an authorization, and it lets you group attempts by issuer range so that a run against one bank's range is visible as a pattern instead of as scattered noise.

The same logic applies to a BIN attack, where an attacker works sequentially through one issuer's range. Filtering on validity and rate limiting per prefix both help, and neither requires a decision about the individual customer.

Putting it in the checkout flow

The useful order is fixed: validate, enrich, score, then decide.

Validate the input locally first with Luhn and the length rules from the syntax field, because a typo should never cost an API call.

Enrich with the BIN, then compare the result against what the customer told you. Payment method chosen against card network. Billing country against issuer country. Card type against the product being bought, which matters for subscription and installment rules.

Score the connection and the identity signals next, in the same request where possible. Payment fraud analysis and our data scoring and validation endpoints are built for that step, and they return a recommendation you can log and tune rather than a fixed yes or no.

Decide, and keep the decision explainable. A rule that says "review because the card is prepaid and the connection is a datacenter ASN" is one you can defend to a customer and adjust after a week of data. A rule that says "decline foreign cards" is one you will be apologizing for.

Keep the card data out of your logs

Your first six or eight digits plus the last four is the shape most card data policies allow you to keep, and nothing in the middle should reach a log, an analytics event, an error tracker or a support tool. A BIN check needs the prefix, which means the endpoint you call should never receive the full PAN in the first place. Send the digits you are allowed to store.

The downstream consequence is worth spelling out. If your logs hold full card numbers, the BIN enrichment you just added is the least of your problems, and no amount of issuer metadata will fix it.

How to tell whether the rules are working

Four numbers, tracked weekly: approval rate, false decline rate from your review queue, chargeback rate by issuer country, and the share of orders that pass through manual review. BIN rules should move the last two without touching the first.

If approval rate falls and chargeback rate does not, your thresholds are catching real customers. If chargebacks fall and the review queue explodes, the rules are doing the work but your team is paying for it in labor. Both are tunable, and neither is visible from a single dashboard metric like block count.

Conclusion

A BIN is a description of a card product, written in the first few digits of the number and readable before you authorize anything. It names the network, the issuer, the country and the funding type. It says nothing about the person holding the card, and the teams that get value from it keep that distinction in their code rather than in a comment.

Read the digits properly, all eight of them where they exist. Compare them against what the customer told you. Then let the rest of your signals decide the order.

FAQs

What is a BIN number on a card?

A BIN, or Bank Identification Number, is the leading six to eight digits of a card number that identify the issuer and the card network. The same digits are also called an Issuer Identification Number. They describe the card product and the institution behind it, not the account holder.

How many digits is a BIN?

Six in the original standard, and up to eight since ISO/IEC 7812-1 was revised, with Visa and Mastercard requiring support for eight digit BINs from April 2022. Send the longest prefix you have, up to eight digits, and check how many digits the lookup used to resolve the range.

Can a BIN checker tell if a card is valid?

It can tell you whether the prefix maps to a known issuer range and whether the number passes structural checks like length and the Luhn check digit. It cannot tell you whether the account is open, has funds, or belongs to the person using it.

Is a BIN the same as an IIN?

Yes in practice. IIN stands for Issuer Identification Number, which is the more accurate name because the range belongs to the issuer, and that issuer is not always a bank. Both terms refer to the same leading digits of the primary account number.

Why does the card country differ from the billing country?

Cards are issued where the account was opened, and people move, travel and get paid in other currencies. A mismatch is a signal to look at the rest of the order, not a reason to decline. Compare the issuer country with the connection country and the account history before deciding.

Does BIN lookup work for prepaid and virtual cards?

It returns the range level data for them, and it flags prepaid ranges where the networks publish that information. Virtual cards from spend management platforms can carry a currency that differs from the cardholder's location, so treat the flag as context rather than as a risk score.

Get started

Start protecting your business today

Our service is trusted by thousands of businesses worldwide.

  • 1,000 requests during trial
  • Cancel anytime

Related Articles