Card Validator & Credit Card CheckerIssuing bank, country and card type
Type or paste a card number to see what card it is: the network (Visa, Mastercard, Amex and more) and, from the first 6 digits, the issuing bank, country and whether it is credit, debit or prepaid. The Luhn check digit and length are checked in your browser. Only the first 6 digits are looked up; nothing is stored or charged.
A card checker cannot tell you whether a card is real, active or has funds. Only the issuing bank knows that.
What this card checker can and cannot tell you
It can tell you
- The card network (14 networks, including domestic ones such as Elo, Troy and RuPay)
- The issuing bank, its country, credit, debit or prepaid, and the card level, from the first 6 digits
- Whether the Luhn check digit adds up, so you can spot a typo
- Whether the length fits that network, and how the number is grouped on the card
It cannot tell you
- Whether the card exists, is active or has been cancelled
- Whether it has funds, available credit or a balance
- Whether the expiry date, CVV or billing address is right
- Who the card belongs to
Only the issuing bank knows the answers on the right, and only during a real payment. The checks run in your browser; only the first 6 digits are looked up, and nothing is stored or charged. Why no site can check more.
Supported card networks: IIN ranges and lengths
The validator matches the longest prefix first, so a domestic range inside a global one (Elo's 650031 inside Discover's 65, Hipercard's 606282 inside RuPay's 60) is reported as the domestic network. The BIN lookup then shows the network the issuer registered.
| Network | Starts with (IIN) | Length |
|---|---|---|
| 4 | 13, 16, 19 | |
| 51-55, 2221-2720 | 16 | |
| 34, 37 | 15 | |
| 6011, 644-649, 65 | 16-19 | |
| 3528-3589 | 16-19 | |
| 300-305, 3095, 36, 38-39 | 14-19 | |
| 62, 8100-8171 | 16-19 | |
| 5018, 5020, 5038, 5893, 6304, 6759, 6761-6763 | 12-19 | |
| 2200-2204 | 16-19 | |
| 60, 65, 81, 82, 508 | 16 | |
| 9792, some 65 ranges (co-branded with Discover) | 16 | |
| 506099-506198, 507865-507964, 650002-650027 | 16, 18, 19 | |
| 506699-506778, 509000-509999, 636368, 6500xx-6550xx ranges and a few 4xxxxx BINs | 16 | |
| 606282 | 16 |
First digit and check digit rules: ISO/IEC 7812-1. Ranges checked on 25 November 2026. Networks assign new ranges over time, so treat a prefix match as a strong hint and the BIN lookup as the registered answer. For every network's prefixes, lengths and security code, see the card number format reference.
What card is this? Identify the network from the first digits
The first digit of a card number is the Major Industry Identifier defined in ISO/IEC 7812, and the first few digits together name the card network. Find the first digit of your number below, then match the prefix. The validator above does this automatically as you type.
| Starts with | Card network (prefixes) |
|---|---|
| 2 |
2221 to 2720 is Mastercard's newer 2-series range; Mir is the Russian domestic network. |
| 3 |
A 15-digit number starting with 34 or 37 is almost always American Express. |
| 4 |
Every Visa card starts with 4: credit, debit and prepaid alike. |
| 5 |
51 to 55 is Mastercard. Other numbers starting with 50 or 58 are usually Maestro or a domestic network. |
| 6 |
The busiest first digit. Some ranges are shared through partnerships, so a BIN lookup settles it. |
| 8 | Newer UnionPay and RuPay ranges. |
| 9 |
Troy is the Turkish domestic network. |
Numbers starting with 1 (airlines), 7 (petroleum) or 8 and 9 outside the ranges above (healthcare, telecoms and national use) are usually not bank payment cards.
The network is only part of the answer. The first 6 to 8 digits, called the BIN or IIN, also identify the bank that issued the card, its country and whether it is credit, debit or prepaid. The validator above shows that as soon as you type 6 digits (see the issuing bank and country), or read the card number format by network for every prefix and length.
See the issuing bank and country
When a bank issues cards it is assigned a range of card numbers, identified by the first 6 to 8 digits: the BIN (bank identification number). Each range is registered with the network along with the issuing bank, its country, the card type (credit, debit or prepaid) and a product level such as classic, gold or business.
Once you have typed 6 digits, the validator looks up that BIN and shows the bank, the country with its flag, the card type and the level. Only those 6 digits are sent; the rest of the number stays in your browser. For the full record of a BIN, including the issuer's phone number and neighbouring ranges, follow the "See BIN" link or use the BIN lookup.
The bank and country describe the range of numbers, not one card. They tell you who issued cards that start this way, not whether a particular card exists, is active or has funds.
Why a card checker can only check the format
Every card validator, this one included, checks the format of a number. That is useful for catching typos in a checkout form or a spreadsheet, but it says nothing about the account behind the number.
Whether a card exists, is active or has funds is known only to the issuing bank (see what this checker can and cannot tell you), and the bank only shares it with the merchant during a real, authorized payment. A site that claims it can tell you whether someone's card works is either guessing or attempting charges against real merchants, which payment providers treat as card testing fraud. This tool does neither.
If you want to know whether your own card is active, check your bank's app or website, or call the number on the back of the card.
Debit card checker: is it a debit or a credit card?
Debit and credit cards look the same to the format checks. Both follow the same network prefixes, lengths and Luhn rule, so a Visa debit card and a Visa credit card both start with 4 and both pass the same checks. Try the two Visa test numbers in the validator above: the Luhn, network and length results are identical, and only the issuing bank panel shows which BIN is registered as debit and which as credit.
The difference lives in the BIN. When a bank sets up a card range it registers it with the network as credit, debit or prepaid, often with a product level such as classic, gold or business. The validator above reads that registration once you type 6 digits and shows the card type next to the issuing bank and country; the BIN lookup has the full record. That is also what checkout pages use when they show a different fee for credit cards or route debit cards differently.
How the card validator's Luhn check works
The last digit of a card number is a check digit, calculated from all the others with the Luhn (mod 10) formula. Here is the check worked through on Stripe's public Visa test number:
Number: 4242 4242 4242 4242 (16 digits)
- Start from the rightmost digit (the check digit) and move left.
- Double every second digit, starting with the one just left of the check digit.
- If doubling gives a number above 9, subtract 9 (same as adding its two digits).
- Add every value together. The number is valid if the total ends in 0.
| Digit | 4 | 2 | 4 | 2 | 4 | 2 | 4 | 2 | 4 | 2 | 4 | 2 | 4 | 2 | 4 | 2 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Double? | x2=8 | - | x2=8 | - | x2=8 | - | x2=8 | - | x2=8 | - | x2=8 | - | x2=8 | - | x2=8 | - |
| Value | 8 | 2 | 8 | 2 | 8 | 2 | 8 | 2 | 8 | 2 | 8 | 2 | 8 | 2 | 8 | 2 |
Total: 80. 80 mod 10 = 0, so the number passes the Luhn check.
Working backwards: without the check digit, the other digits add up to 78. The check digit is whatever brings that total to the next multiple of 10: (10 - 8) mod 10 = 2, which matches the last digit.
Why a valid card number still gets declined
Passing the checks above means a payment can be attempted. Whether it goes through is decided by the issuing bank, and the most common reasons a correctly typed card is still declined are:
- Insufficient funds or credit limit reached. A temporary, soft decline that often succeeds on a later attempt.
- Expired, lost or replaced card. The old number keeps passing the format check long after the bank has closed it.
- Wrong expiry date, CVV or billing address. None of these are part of the number, so no validator can catch them.
- Issuer fraud rules. An unusual amount, merchant or country can trigger a "do not honor" response on a perfectly good card.
- Authentication required. In Europe and other regions with Strong Customer Authentication, the bank may ask the cardholder to confirm the payment with 3D Secure.
Every decline comes with a response code that says which of these happened. Look it up in the decline code reference to see whether it is a soft decline worth retrying or a hard decline that needs the cardholder.
Card declined by a subscription, app or online shop? Our payment failed guides show where to update the card for 380 services, including Netflix, Spotify Premium, ChatGPT Plus, Amazon, Cash App and Xbox Game Pass.
For subscription businesses, a valid card can be declined on any renewal, and failed payment recovery software uses the decline code to decide whether, when and how to retry, so fewer subscribers turn into involuntary churn.
Test card numbers for developers
If you are building or testing a checkout, never use a real card. Every major payment provider publishes test card numbers that pass the Luhn check, follow the right network format and only work in test mode, including numbers that trigger specific declines, 3D Secure challenges and insufficient funds. The quick-fill buttons in the validator above are taken from the Stripe testing docs.
For numbers from Adyen, Braintree, Checkout.com, PayPal and other providers, including decline and authentication scenarios, see the test credit card numbers by provider.
Card validator and credit card checker FAQ
Can a credit card checker tell if a card is real or active?
No. A card number checker can only confirm that the number is well formed: the Luhn check digit adds up, the length fits the network and the first digits belong to a known network. Whether a card was actually issued, is active, has available credit or belongs to a particular person is known only to the issuing bank. If it is your card, your bank app or the phone number on the back of the card will tell you.
What card is this if the number starts with 4, 5, 3 or 6?
A number starting with 4 is Visa. 51 to 55 (and 2221 to 2720) is Mastercard. 34 or 37 is American Express, and 3528 to 3589 is JCB. 6011, 644 to 649 and 65 are Discover, and 62 is UnionPay. Paste the number into the validator above to see the network and, from the first 6 digits, the issuing bank and country.
Can I tell if a card is debit or credit from the number?
Not from the network prefix: Visa and Mastercard use the same starting digits for credit, debit and prepaid cards. The issuer registers each BIN (the first 6 to 8 digits) as credit, debit or prepaid, and the validator above reads that registration: once you type 6 digits it shows the card type with the issuing bank and country.
Can this credit card checker show the issuing bank and country?
Yes. Once you have typed 6 digits, the validator looks up that BIN and shows the issuing bank, its country, the card type (credit, debit or prepaid) and the card level. Only those first 6 digits are sent; the rest of the number stays in your browser. The bank and country describe the range of card numbers, not a particular card, so they cannot tell you whether a card is real or active.
What should I do if a card number fails the check?
A failed Luhn check almost always means a typo: one wrong digit, or two neighbouring digits swapped. Compare the number with the card digit by digit, in the printed groups shown above the result. If the Luhn check passes but the length is wrong for the network, a digit is missing or doubled. If the first digits match no network, the number may not be a payment card at all.
Does this card validator check the expiry date or CVV?
No. The expiry date and the security code (CVV, CVC or CID) are not part of the card number and have no checksum, so no format check can confirm them. Only the issuer verifies them, during a real payment authorization.
Why was my card declined if the number is valid?
A valid number only means it was typed correctly. Payments are declined for reasons the number cannot show: insufficient funds, an expired or replaced card, a wrong expiry date or CVV, issuer fraud rules, or a request for authentication such as 3D Secure. The decline code returned by the issuer says which one applied.
Why does a card payment in another currency cost more than the exchange rate?
The card number does not decide that. When you pay in a foreign currency, the card network converts the amount at its own rate for the processing date, and many card issuers add a foreign transaction fee on top; some cards charge none. If you choose your home currency at the terminal or checkout (dynamic currency conversion), the merchant's payment provider sets the rate instead, with its own markup.
How many digits are in a credit card number?
Most credit and debit card numbers are 16 digits. American Express uses 15, Diners Club cards in the 36 range use 14, and Visa, Discover, JCB, UnionPay and Maestro allow up to 19. The last digit is always the Luhn check digit.
What is the Luhn algorithm?
The Luhn algorithm (also called mod 10) is the checksum behind the last digit of a card number. Double every second digit from the right, subtract 9 from any result above 9, and add everything up: the total of a valid number ends in 0. It catches single-digit typos and most swaps of neighbouring digits.
Is it safe to enter a card number in this validator?
The Luhn, length and network checks run entirely in your browser. To show the issuing bank, only the first 6 digits (the BIN) are looked up; the full number is never sent to a server, stored or logged, and nothing is charged. As a habit, use the test card numbers published by payment providers when you are testing a form, and do not type real card numbers into sites you do not trust.