Debit BIN presets
The preset buttons above the generator fill it with a debit or prepaid prefix and generate a batch. Each prefix comes from a debit or prepaid test card that a payment gateway documents, so the numbers sit in ranges gateways themselves use for funding-type tests. The generated numbers are not those test cards: a gateway sandbox only accepts its exact documented numbers.
Prefixes from debit and prepaid test cards documented by Braintree (Visa prepaid debit), Cybersource (Maestro (UK)), Stripe (Visa Debit, Debit Mastercard, Discover Debit, Prepaid Mastercard), Worldpay (Visa Debit (UK), Mastercard Debit (UK)).
Debit vs. credit card numbers
There is no separate number format for debit cards. A Visa Debit card starts with 4 like any Visa card, a Debit Mastercard with 51–55 or 2221–2720, and both use the same lengths and the same Luhn check digit as credit cards. Whether a card is debit, credit or prepaid is a property of its BIN — the first six to eight digits — which the issuing bank assigns to a product. Two cards from the same bank can share their first digits and still be one debit and one credit card.
That means you can’t detect a debit card from the number’s pattern. You need a BIN lookup (try our BIN checker), or the funding type your payment gateway returns after tokenizing the card.
How common is debit? In the open BIN dataset we use, 55% of 374,788 BINs are listed as debit. The share varies a lot by network:
| Network | BINs in dataset | Debit | Debit share | Prepaid BINs |
|---|---|---|---|---|
| Visa | 99,770 | 42,896 | 43% | 7,024 |
| Mastercard | 98,189 | 69,631 | 71% | 5,514 |
| Maestro | 21,360 | 21,334 | 100% | 147 |
| RuPay | 6,791 | 6,258 | 92% | 732 |
| UnionPay | 14,144 | 12,827 | 91% | 122 |
| JCB | 9,501 | 5,062 | 53% | 437 |
| Discover | 15,136 | 2,494 | 16% | 1,137 |
| American Express | 20,002 | 240 | 1% | 156 |
Source: bin-list-data (CC BY 4.0). Counts BIN entries, not cards in circulation; “prepaid” means the category field mentions prepaid.
Debit card brands and their ranges
- Visa Debit — Visa’s main debit product, starting with 4. Visa Electron, an older debit card that always required an online authorization, also starts with 4 and is now rare.
- Debit Mastercard — Mastercard’s debit product on the normal 51–55 and 2-series ranges. In Europe it replaced Maestro for new cards from July 2023.
- Maestro — Mastercard’s older debit brand with prefixes such as 5018, 5020, 5038, 6304, 6759 and 6761–6763 and lengths from 12 to 19 digits. Some Maestro cards have no CVV, and online payments generally need 3-D Secure. See the Maestro generator.
- RuPay — India’s domestic network, mostly debit cards, with numbers starting with 60, 65, 81, 82 or 508. Because the 65 range overlaps Discover, generic brand detection often labels RuPay cards as Discover; Razorpay documents RuPay test cards for Indian checkouts.
- UnionPay debit — most UnionPay cards are debit cards; they start with 62 and are 16 to 19 digits long.
- Prepaid cards — run on the same networks and ranges, but draw on money loaded in advance instead of a bank account. Gift cards, travel cards and many fintech cards are prepaid.
What changes when you accept debit cards
At checkout a debit card behaves like a credit card: same fields, same authorization, usually the same 3-D Secure step. The differences show up around the payment:
- Funding type in the API. Gateways tell you how a card is funded once it is tokenized. Stripe returns
card.fundingascredit,debit,prepaidorunknown; Braintree returns debit and prepaid indicators, with test cards such as4012 0000 3333 0125(debit) and4012 0043 3850 8385(prepaid debit) on our Braintree page. - Declines for insufficient funds. A debit card is limited by the account balance, so “insufficient funds” is far more common than on credit cards. Test that message and the retry path.
- Subscriptions and holds. Pre-authorizations block real money in the customer’s account, and some merchants refuse prepaid cards for recurring billing. If you do, test the rule with a prepaid number before it reaches customers.
- Fees and surcharges. Debit interchange is regulated in many markets, and in the EU merchants may not surcharge consumer debit or credit cards. Don’t build pricing logic on the card number pattern.
- Combo cards. In Brazil a single card number can work as both credit and debit (cartão múltiplo), so the customer’s choice, not the number, decides the funding.
How to test debit card handling
- Generate a batch with a preset above and paste the numbers into your form: they should be accepted and get the right brand logo.
- Try a 19-digit Maestro or Visa number and leave the CVV empty for Maestro; a robust form accepts both.
- In your gateway’s sandbox, pay with its documented debit and prepaid test cards and check that you read the funding type from the response, not from the number.
- Simulate an insufficient-funds decline with the gateway’s decline card or trigger (see insufficient funds by gateway).
Frequently asked questions
Is a debit card number different from a credit card number?
Not in format. Debit and credit cards share the same prefixes, lengths and Luhn check digit. Whether a card is debit, credit or prepaid is set per BIN (the first 6–8 digits) by the issuing bank, so you can only tell with a BIN lookup.
Do generated debit card numbers have money on them?
No. They are format-valid test numbers that no bank issued. There is no account or balance behind them, and any real payment with them is declined.
What is a debit card test number for Stripe?
Stripe documents 4000 0566 5566 5556 (Visa debit) and 5200 8282 8282 8210 (Mastercard debit) for test mode. See our Stripe test cards page.
Is Maestro still a debit card?
Yes, Maestro is Mastercard’s debit brand. New Maestro cards stopped being issued in Europe from July 2023 in favour of Debit Mastercard, but existing cards stay valid until they expire and Maestro is still issued elsewhere.
What is the difference between debit and prepaid cards?
A debit card draws on a bank account; a prepaid card draws on money loaded onto the card in advance. Both run on the same networks and look the same at checkout, but gateways report them separately, and many merchants treat prepaid cards differently for subscriptions.