Xerobit

BIN Lookup: Identify Card Network from IIN Digits

Enter the first six to eight digits of a payment card to identify the network, verify the Luhn checksum and check the expected card length. This bin lookup uses only published Issuer Identification Number ranges and runs entirely in your browser without uploading any data.

Result

  • Network
    Visa
  • IIN / BIN
    453201
  • Expected length
    13, 16, 19
  • Luhn valid
    Not checked

    The Luhn checksum only applies to the full card number. Enter every digit to check it.

  • Digits entered
    6

How to use the credit card bin lookup

  1. Enter the first six to eight digits of the payment card into the input field.
  2. The tool strips spaces and hyphens automatically.
  3. Review the identified card network, expected card length and Luhn validity.
  4. Use the result for development, testing or routing logic.

How IIN ranges work

The Issuer Identification Number (IIN), also called the Bank Identification Number (BIN), occupies the first six to eight digits of a payment card. ISO/IEC 7812 defines this structure. Each card network is assigned specific leading digit ranges. For example, Visa cards always start with 4, while Mastercard uses 51 through 55 and 2221 through 2720.

This bin lookup matches your input against those published ranges. It does not query a database of real issuers, so it cannot tell you which bank issued the card. It only identifies the network level.

The Luhn algorithm explained

The Luhn algorithm is a simple checksum formula used to validate identification numbers. To compute it, start from the rightmost digit (the check digit) and move left, doubling every second digit. If doubling produces a number greater than 9, subtract 9. Sum all the digits. If the total modulo 10 equals zero, the number passes the check.

For example, take 79927398713. Working right to left, the digits are 3, 1, 7, 8, 9, 3, 7, 2, 9, 9, 7. Double every second one (1, 8, 3, 2, 9) to get 2, 16, 6, 4, 18, and subtract 9 from those above 9 to get 7 and 9. The digits to add are then 3, 2, 7, 7, 9, 6, 7, 4, 9, 9, 7, which sum to 70. Since 70 mod 10 is 0, the number passes.

A Luhn check only makes sense for a complete card number. When you enter fewer than 12 digits, this tool shows "Not checked" for the Luhn row because the remaining digits, including the check digit, decide the final result. A passing Luhn check also does not mean the account exists or has funds.

Published network ranges

The following table lists the IIN ranges this tool checks. They are the commonly published prefixes for each network, and issuers can change or add ranges over time.

NetworkIIN RangeLength
Visa413, 16, 19
Mastercard51-55, 2221-272016
American Express34, 3715
Discover6011, 644-649, 6516-19
JCB3528-358916-19
UnionPay6216-19
Diners Club300-305, 3095, 36, 38-3914-19
Maestro5018, 5020, 5038, 5893, 6304, 6759, 6761-676312-19
Mir2200-220416-19

The ranges above do not overlap, so the order of the checks does not change the result. Other networks, such as RuPay, Elo, Troy, Verve, Dankort and UATP, are not covered and show as Unknown. Co-branded ranges can also be shared between networks: for example, Discover cards are also issued in the UnionPay 62 range.

Practical use cases for bin lookup

Developers building checkout flows use bin lookup to display the correct card logo before the user finishes typing. This improves the user experience and reduces form errors. Payment gateways also route transactions based on the network identified by the IIN.

Testing environments rely on known test card numbers. By checking the IIN, you can confirm that your test suite covers all required networks. If you work with physical product identifiers rather than payment cards, tools like the VIN decoder or GTIN validator serve a similar validation purpose for different numbering systems.

Common mistakes and edge cases

Entering fewer than six digits will not produce a reliable match because most networks require at least six digits for identification. Some newer assignments use eight-digit IINs per the updated ISO 7812 standard, so an eight-digit input gives the most accurate result.

Do not confuse this tool with a credit card validator. A valid Luhn check on a full number does not mean the account exists or has funds. Similarly, passing a complete card number into this tool works, but only the leading digits matter for network identification. Never enter real card numbers into any online tool during production work.

Worked examples

ExampleInputResult
Visa cardCard digits (first 6 to 8): 453201Network: Visa; IIN / BIN: 453201; Expected length: 13, 16, 19; Luhn valid: Not checked; Digits entered: 6
MastercardCard digits (first 6 to 8): 542523Network: Mastercard; IIN / BIN: 542523; Expected length: 16; Luhn valid: Not checked; Digits entered: 6
American ExpressCard digits (first 6 to 8): 378282Network: American Express; IIN / BIN: 378282; Expected length: 15; Luhn valid: Not checked; Digits entered: 6
DiscoverCard digits (first 6 to 8): 601111Network: Discover; IIN / BIN: 601111; Expected length: 16-19; Luhn valid: Not checked; Digits entered: 6
JCBCard digits (first 6 to 8): 353011Network: JCB; IIN / BIN: 353011; Expected length: 16-19; Luhn valid: Not checked; Digits entered: 6

FAQ

What is a BIN or IIN?

A Bank Identification Number (BIN) or Issuer Identification Number (IIN) is the first six to eight digits of a payment card. It identifies the card network and issuing institution according to ISO 7812.

Does this tool look up the issuing bank?

No. This bin lookup only identifies the card network using published IIN ranges. It does not access any database of banks or financial institutions.

Why does my six-digit input fail the Luhn check?

The Luhn algorithm is designed for the complete card number, so for a short prefix the tool shows "Not checked". Enter the full number, including the check digit, to get a Luhn result.

Is my card number sent to a server?

No. The entire bin lookup process runs in your browser using JavaScript. Nothing is uploaded or transmitted.

Can I enter more than eight digits?

Yes. The tool accepts any length of digits, but only the first eight are shown as the IIN and used to find the network. If you enter 12 or more digits it also reports the Luhn result for the full number.

Which card networks are recognised?

Visa, Mastercard, American Express, Discover, JCB, UnionPay, Diners Club, Maestro and Mir. Other networks and local schemes show as Unknown. Co-branded cards can belong to more than one network, so treat the result as a guide.