Stripe’s test card numbers by brand and outcome, with expiry and CVC ready to copy
Runs in your browser. Nothing you type is sent anywhere. Checked against sources on 15 Oct 2026.Stripe test cards work only with test API keys: in live mode Stripe rejects them, so they cannot pay for anything. This page lists the numbers Stripe publishes, with 4242 4242 4242 4242 as the Visa that always succeeds, plus Mastercard, American Express, Discover, JCB, Diners and UnionPay, cards issued in India and the UAE, declines and a 3D Secure card. Expiry and CVC are filled in for you.
| Scheme | Test number | What it does |
|---|---|---|
| Visa | 4242 4242 4242 4242 | Visa, succeeds |
| Mastercard | 5555 5555 5555 4444 | Mastercard, succeeds |
| American Express | 3782 822463 10005 | American Express, succeeds |
| Discover | 6011 1111 1111 1117 | Discover, succeeds |
| Diners Club | 3056 9300 0902 0004 | Diners Club, succeeds |
| JCB | 3566 0020 2036 0505 | JCB, succeeds |
| UnionPay | 6200 0000 0000 0005 | UnionPay, succeeds |
| Visa | 4000 0566 5566 5556 | Visa debit, succeeds |
| Mastercard | 2223 0031 2200 3222 | Mastercard 2-series, succeeds |
| Mastercard | 5200 8282 8282 8210 | Mastercard debit, succeeds |
| Mastercard | 5105 1051 0510 5100 | Mastercard prepaid, succeeds |
| American Express | 3714 496353 98431 | American Express, succeeds |
Make sure your Stripe keys start with pk_test and sk_test, not live keys.
Copy a number from the list: 4242 4242 4242 4242 succeeds, the Declines option gives the error cards.
Enter any future expiry and the CVC shown, four digits for American Express.
Check the payment in the Stripe Dashboard with Test mode switched on.
Every payment gateway gives developers a sandbox: a test mode with its own keys, where a checkout can be tried end to end without moving money. Each gateway also publishes the card numbers its sandbox accepts. Stripe's best known is 4242 4242 4242 4242, a Visa that always succeeds; Razorpay lists domestic cards for India, including a RuPay card, 6527 6589 0000 1005.
This page hands out exactly those published numbers and nothing else. That is a deliberate rule. A "generator" that put random digits behind a real issuer prefix could produce the number of somebody's live card, and a gateway's sandbox would refuse it anyway, because test mode only knows its own list. So each number here is copied digit for digit from the gateway's page, with the source linked and the date it was read, and only the expiry date and CVV are made up: a month one to five years ahead, and three digits, or four for American Express, as Stripe asks.
Choose the gateway, the schemes and whether the payment should succeed or fail, then copy the cards as a list, JSON or CSV. Visa, Mastercard, American Express, RuPay, Discover, JCB, Diners Club and UnionPay are covered. Maestro and Mir are recognised by the checker but never generated, because neither gateway publishes a test number for them.
The rest of the article, and all 6 questions about Test Credit Card Numbers, are on the Test Credit Card Numbers page.
No. A test card number is accepted only by a payment gateway's sandbox, the test mode you reach with test API keys. In live mode Stripe rejects it and Razorpay answers that the card issuer is invalid. No bank account sits behind the number, so no money can move, whatever site it is typed into.
Stripe's standard test card is 4242 4242 4242 4242, a Visa that always succeeds in test mode. Use any future expiry date and any three-digit CVC; American Express test cards take four digits. Stripe also publishes cards that decline, cards issued in countries such as India and the UAE, and cards that ask for 3D Secure.
Razorpay publishes domestic test cards such as the Visa debit 4100 2800 0000 1007 and the RuPay credit 6527 6589 0000 1005, plus international Mastercard and Visa cards. Enter any future expiry and any CVV, then an OTP of 4 to 10 digits on the test bank page for a successful payment.
Random digits behind a real issuer prefix can match the number of a real person's card, and gateways' sandboxes accept only their own published numbers anyway. Every number on this page is copied from Stripe's or Razorpay's test-card page, so it cannot belong to a live card and does work in test mode.
Rates and rules change; check the source before you rely on a figure.
Still stuck? Ask about Test Credit Card Numbers and anybody who knows can answer. No account needed.
Same job, other tools: Link Preview Checker – Find the missing tag behind a WhatsApp or Slack link with no picture · Twitter Card Validator – Check twitter:card tags and the og: tags X falls back to · Readability Checker – Flesch reading ease and grade level, with what to change · User-Agent String Checker – Check what a user-agent string can and cannot tell you before you rely on it.
On the related tools: JSONPath Evaluator – Evaluate a JSONPath expression and get the matching values and their paths.
In the collection Test Data Generators.