What is a card BIN? Bank identification numbers and BIN ranges explained
A BIN is the first 6 or 8 digits of a card number. What it identifies, what a BIN range is, where billing tools show it, and how to use it without mistakes.

A BIN (bank identification number) is the first 6 or 8 digits of a payment card number. It identifies the bank that issued the card and, through the data attached to it, the kind of card: credit, debit or prepaid, consumer or commercial, and the country of issue. A BIN range, which card networks call an account range, is a narrower slice of numbers under one BIN that an issuer sets aside for one product or one country.
A subscription business meets BIN data in three places: in the card fields its billing tool returns, in its fraud rules, and in card testing attacks that start from a known BIN. This guide covers all three.
It relies on the public edition of the Visa rules dated 24 October 2026 and on the documentation of Stripe, Adyen, Braintree, Chargebee and Recurly, all listed under Sources and accessed 29 November 2026. The network rules quoted here are Visa’s. Other networks have their own.
What is a BIN?
The Visa rules define a BIN as one of two things: a 6-digit identifier licensed to an issuer before 22 April 2022, made of “the first 6 digits of an Account Number”, or an 8-digit identifier made of “the first 8 digits of an Account Number”. New Visa BINs are therefore 8 digits long, and older 6-digit ones are still in the definition.
The same digits are also called the IIN, for issuer identification number. Chargebee, for example, names its field iin and describes it as “the Issuer Identification Number, i.e. the first six digits of the card number”.
Here is how the parts line up on the well-known test number 4242 4242 4242 4242:
| Part | Digits | Example | What it identifies |
|---|---|---|---|
| 6-digit BIN | First 6 | 424242 | The issuer, for BINs licensed before 22 April 2022 |
| 8-digit BIN | First 8 | 42424242 | The issuer |
| Account range | First 9 | 424242424 | “Issuers and products”, in Visa’s words |
| Last four | Last 4 | 4242 | Nothing about the bank: it helps the customer recognise the card |
What does a BIN tell you about a card?
On its own, a BIN is only a number. The useful part is what Visa calls BIN Attributes: “account funding source, account funding source subtype, product ID, Issuer name, Issuer country, and Issuer currency”.
Funding type can be read from a BIN because of a Visa rule on issuers: an issuer must not combine credit cards, debit cards and prepaid cards on a single BIN, nor consumer cards and commercial cards. One BIN, one kind of card.
A BIN does not tell you:
- Who the cardholder is. Many cards share one BIN.
- Whether the card exists or works. Any 16 digits can start with a real BIN.
- The balance or the credit limit.
- Always the brand printed on the card. The Visa rules distinguish the BIN Licensee from a BIN User, “an Issuer authorized to use a BIN licensed to its Sponsor”. The bank name attached to a BIN can be that sponsor.
What is a BIN range?
Visa defines an Account Range as “the first 9 digits of a Payment Credential, used to identify Issuers and products”. It is one level below the BIN: the issuer splits the numbers under a BIN into ranges and gives each range a purpose.
The rules give an example. A bank in the European Economic Area that issues cards in several countries must tell them apart “by allocating and using one or more unique BIN(s), or Account Ranges within a BIN, to identify each country in which issuance takes place”.
Two practical consequences:
- The first six digits are not always enough. With 8-digit BINs and 9-digit ranges, two cards that share their first six digits can differ in issuer, product or country.
- “BIN range” is used loosely. In fraud tools and forums it often just means a list of BINs. In network rules, the range is the 9-digit level.
Where do you find BIN data in your billing tool?
You rarely need a lookup table. Payment and billing providers return the BIN, or the attributes derived from it, on every stored card.
| Tool | Fields | What the documentation says |
|---|---|---|
| Stripe | :card_bin:, :card_funding:, :card_country: in Radar rules; card.funding and card.country on the PaymentMethod |
“The BIN is the first six digits of the card number”; funding is credit, debit, prepaid or unknown |
| Adyen | /cardDetails |
Takes “a minimum of the first six digits of the card number”; returns the brands, fundingSource, isCardCommercial and issuingCountryCode |
| Braintree | bin, prepaid, debit, commercial, countryOfIssuance, issuingBank |
bin is “the first 6 digits of the credit card”; each flag is Yes, No or Unknown |
| Chargebee | iin, funding_type |
Six digits; funding is credit, debit, prepaid or not_known |
| Recurly | first_six, last_four, card_type |
“Credit card number, first six digits” |
All five still expose six digits, even though a current Visa BIN has eight. For a card you do not have on file, our free BIN lookup reads the network from the first 6 to 8 digits and nothing else of the number.
Can you get the networks’ BIN tables?
Not directly. Visa states that BIN Attributes “are proprietary and must not be disclosed to Merchants or any other party”, with a few exceptions: an agent that needs them to process transactions, compliance with a law, a merchant in certain regions that only accepts some Visa product types, or a party registered with Visa and holding its prior written approval.
One European rule goes further. An acquirer in the European Union may receive from Visa the BINs and account ranges used for non-reloadable prepaid cards, but must use the data “solely to comply with applicable laws or regulations” and “must not share the data with Merchants or Third Party Agents”.
So the network’s own data reaches you through your processor, as the fields in the table above. Free public BIN databases are compiled by third parties, not by the networks. They can be incomplete or out of date. Use them for a quick look, not as the basis of an automatic decision.
What is a BIN attack?
“BIN attack” is a common name for card testing that starts from a known BIN: the first digits are fixed, and a script tries the remaining ones until some card numbers go through. Visa calls this an Enumeration Attack: “the systematic or routine submission of Card-Absent Environment Transactions into the Visa system to fraudulently obtain or validate payment information”.
Stripe’s card testing guide lists the other names (carding, account testing, enumeration, card checking) and what the attack costs the business it runs through:
- Disputes. Some test payments succeed, and the real cardholders report them as fraud.
- Higher decline rates. A large number of declines is tied to your business, which “makes all of your transactions appear riskier”, even after the attack stops.
- Fees. Authorization fees on some pricing plans, and dispute fees.
The signs are a spike in failed or blocked payments and many low-amount payments, often with nonsensical names and emails. Card setup, such as saving a card to start a trial, is the method attackers prefer, because, as Stripe notes, validations and authorizations during card setup “don’t typically show up on cardholder statements”.
A rule on the BIN under attack can help for a few hours. It is not a defence: Stripe warns that filters based on a single heuristic are usually not sufficient, and recommends its Payment Element or Checkout, which include rate limiters and CAPTCHA triggers. Our guide to fraud prevention for subscriptions covers the wider set of controls.
How should a subscription business use BIN data?
- 01 Read the fields, not the number Funding type, country and brand come from your provider
- 02 Treat unknown as unknown An unknown card is not a prepaid card
- 03 Score, do not block Prepaid is a risk signal: remind earlier, ask for a backup payment method
- 04 Watch failures by BIN Many failed attempts sharing their first digits point to card testing
- 05 Never retry "no such issuer" Visa code 15 is in Category 1: ask for a new card instead
- Read the fields, not the number. Take funding type, country and brand from your provider. Adyen’s documentation is blunt about the alternative: “You must be fully PCI compliant to collect raw card data.”
- Treat unknown as unknown. Stripe returns
unknown, Chargebeenot_known, and Braintree says its country field is Unknown when it “cannot immediately determine the card’s country of issuance” from the BIN. An unknown card is not a prepaid card. - Score, do not block. A prepaid card can simply be empty on renewal day, so it is a fair risk signal: remind earlier, ask for a backup payment method. Refusing every prepaid card turns away good customers too. Our guide to prepaid and virtual cards goes through the options.
- Watch failures by BIN. Many failed attempts that share their first digits, on small amounts, point to card testing rather than to unlucky customers.
- Never retry “no such issuer”. Visa response code 15 means the “first 8 digits of account number do not relate to an issuing identifier”. Visa places it in Category 1, “Issuer will never approve”, and after such a code a merchant “must never resubmit” the request for the same card number. Ask for a new card instead. See credit card decline codes for the other categories.
What mistakes should you avoid?
- Taking a BIN match for a valid card. A lookup confirms that an issuer owns those digits. It says nothing about the account behind them.
- Blocking whole BINs for good. A BIN belongs to one kind of card at one bank, and real customers hold those cards. Lift the block when the attack ends.
- Trusting six digits and a free table. The issuer or product can change at the eighth or ninth digit, and public tables lag behind.
- Typing a full card number into a lookup tool. The first 6 to 8 digits are all a lookup needs.
- Logging card numbers to compute the BIN yourself. Your provider already returns it.
FAQ
Is a BIN the same as an IIN?
Yes. Both names point to the same leading digits of the card number. Visa’s rules say BIN, for bank identification number. Chargebee’s API says IIN, for issuer identification number.
Is a BIN 6 or 8 digits?
Both exist. In the Visa rules, a BIN licensed to an issuer before 22 April 2022 has 6 digits, and the identifier now has 8. Billing tools such as Stripe, Braintree, Chargebee and Recurly still document the BIN as the first six digits.
Can you tell from the BIN whether a card is prepaid?
Usually, and you do not have to work it out yourself. Visa does not let an issuer mix credit, debit and prepaid cards on one BIN, and providers pass the result on as a funding field. When that field says unknown, treat the card as unknown.
Does a BIN lookup prove that a card is valid?
No. It shows which issuer and which kind of card the first digits belong to. Only an authorization or a zero-amount account verification sent to the issuer shows that the account exists and is in good standing.
How NoChurn helps
NoChurn reads the payment method type that your billing provider shares, including the card’s funding type (credit, debit, prepaid), without the card number. Its churn score counts a prepaid or disposable card as a risk factor at signup, next to the card country and the attributes you send, so you know which renewals to watch before a payment fails.
It connects to Stripe in one click, works with Chargebee, Recurly, Paddle, Braintree and others, or with any billing through the API. Pricing depends only on MRR, with no commission on recovered revenue (your own domain for emails and hosted pages is a $14.99/month add-on on any plan). See the churn score.
Sources
All accessed 29 November 2026.
- Visa, Visa Core Rules and Visa Product and Service Rules, public edition of 24 October 2026: Glossary (BIN, BIN Attribute, BIN Licensee, BIN User, Account Range, Enumeration Attack), sections 2.2.3.1, 2.2.4.1, 2.8.1.1, 5.8.1.14 and 7.3.6.3 (Table 7-2)
- Stripe Docs, Supported attributes (Radar), The PaymentMethod object and Protect yourself from card testing
- Adyen Docs, Get the brands and other details of a card (Checkout API,
/cardDetails) - Braintree, Credit Card response object
- Chargebee API Docs, Cards
- Recurly Docs, Lookup an account’s billing information