Credit Card BIN Decoder
Identify a card's network from its BIN and validate the number with Luhn.
Output appears here as you type — decoded on your device.
Input is processed on your device. Nothing you paste is sent anywhere.
What is the Credit Card BIN Decoder?
A BIN decoder reads the first six to eight digits of a payment card number — the Bank Identification Number, formally the Issuer Identification Number — to identify the card network and issuer, and validates the full number with the Luhn check digit.
Card numbers are structured, not random. The first digit is the Major Industry Identifier: 4 is Visa, 5 is Mastercard, 34 and 37 are American Express, 6 is Discover. The first six to eight digits together form the IIN, registered to a specific issuing bank and product. The digits after that are the account identifier, and the final digit is a Luhn check digit.
Luhn exists to catch keying errors, not fraud. It detects every single-digit mistake and almost every transposition of adjacent digits, so a mistyped card fails before a payment is ever attempted. It provides no security whatsoever — generating a Luhn-valid number is trivial, which is why validation is a usability feature and authorisation is the real check.
Everything here runs locally, which matters more for this tool than for most. A card number should never be transmitted to a third-party service for a lookup, and with this decoder it isn't: the digits you type stay in your browser.
Credit Card BIN Decoder at a glance
- IIN / BIN
- First 6–8 digits — identifies the issuer
- Networks
- 4 Visa · 51–55 Mastercard · 34/37 Amex · 6 Discover
- Check digit
- Last digit, Luhn (modulo 10)
- Length
- 13–19 digits; 16 typical, 15 for Amex
How to use the Credit Card BIN Decoder
- 1Enter the card number — spaces and dashes are ignored.
- 2Read the identified network and card type from the BIN.
- 3Confirm the Luhn check passes; a failure means a typo, not a declined card.
When you would reach for it
- Debugging a payment form's client-side validation logic.
- Confirming that a test card number is well-formed before a sandbox run.
- Identifying which network a card belongs to from its opening digits.
Credit Card BIN Decoder — frequently asked questions
Last reviewed · questions or corrections: contact@decoder.tools