Advertisement

Prefix 4 · 13, 16, 19 digits · 3-digit CVV

Debit Card Generator

Generate debit-style test card numbers — Visa Debit, Debit Mastercard, Maestro and prepaid — with expiry date and CVV, for testing checkout forms and funding-type logic. Test data only: no bank account sits behind them.

Advertisement
Debit presets
Generated cards

Test data only — these numbers are not issued by any bank and every real payment with them will be declined.

Advertisement

Generated locally with your browser’s crypto API — nothing is sent to a server.

Visa format

Starts with
4
Length
13, 16, 19
Security code
3
Stripe
4242 4242 4242 4242
Visa generator
Advertisement

Brand ranges at a glance

The prefixes and lengths your checkout must accept. Each brand has its own generator page.

For developers & QA

Test data that stays out of PCI scope

Use generated numbers for everything before the payment request, then switch to your gateway’s official sandbox cards for approvals, declines and 3-D Secure.

  • Test form validation & input masks
  • Seed staging databases and demos
  • Reproduce declines and 3-D Secure in the sandbox
Browse gateway test cards

Official sandbox cards, per gateway

All 18 gateways →

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:

NetworkBINs in datasetDebitDebit sharePrepaid BINs
Visa99,77042,896 43%7,024
Mastercard98,18969,631 71%5,514
Maestro21,36021,334 100%147
RuPay6,7916,258 92%732
UnionPay14,14412,827 91%122
JCB9,5015,062 53%437
Discover15,1362,494 16%1,137
American Express20,002240 1%156

Source: bin-list-data (CC BY 4.0). Counts BIN entries, not cards in circulation; “prepaid” means the category field mentions prepaid.

Advertisement

Debit card brands and their ranges

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:

How to test debit card handling

  1. Generate a batch with a preset above and paste the numbers into your form: they should be accepted and get the right brand logo.
  2. Try a 19-digit Maestro or Visa number and leave the CVV empty for Maestro; a robust form accepts both.
  3. 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.
  4. Simulate an insufficient-funds decline with the gateway’s decline card or trigger (see insufficient funds by gateway).
Generated debit card numbers are test data only. They are not linked to any bank account, carry no balance and are declined by every live payment system.

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.

Related tools

Advertisement