Omnikit
DevFilesMoneyAll tools
Ctrl K
Dev toolsFile toolsMoney calculatorsAll tools
HomeDeveloper toolsTest Credit Card NumbersStripe Test Cards

Stripe Test Cards

dev

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.

Stripe test cards that succeed, one per brand first
SchemeTest numberWhat it does
Visa4242 4242 4242 4242Visa, succeeds
Mastercard5555 5555 5555 4444Mastercard, succeeds
American Express3782 822463 10005American Express, succeeds
Discover6011 1111 1111 1117Discover, succeeds
Diners Club3056 9300 0902 0004Diners Club, succeeds
JCB3566 0020 2036 0505JCB, succeeds
UnionPay6200 0000 0000 0005UnionPay, succeeds
Visa4000 0566 5566 5556Visa debit, succeeds
Mastercard2223 0031 2200 3222Mastercard 2-series, succeeds
Mastercard5200 8282 8282 8210Mastercard debit, succeeds
Mastercard5105 1051 0510 5100Mastercard prepaid, succeeds
American Express3714 496353 98431American Express, succeeds
Copied from docs.stripe.com/testing, read 2026-10-15. Any future expiry; any 3-digit CVC, 4 for American Express. Test API keys only.
Next:
  • IBAN Validator and Checker Check IBANs from 89 countries: length, format and mod-97 check digits, with the bank code
  • Mock Data Generator Rows of realistic test data as JSON, CSV, SQL or XML, the same every time from one seed

How to pay with a Stripe test card in test mode

1

Make sure your Stripe keys start with pk_test and sk_test, not live keys.

2

Copy a number from the list: 4242 4242 4242 4242 succeeds, the Declines option gives the error cards.

3

Enter any future expiry and the CVC shown, four digits for American Express.

4

Check the payment in the Stripe Dashboard with Test mode switched on.

How Stripe Test Cards works

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.

Frequently asked questions

Can a test credit card number buy anything?

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.

What is the Stripe test card number?

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.

Which card number do I use for Razorpay test mode?

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.

Why not generate random card numbers that pass the Luhn check?

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.

Sources

  • Stripe: Test card numbersStripe test numbers, outcomes, expiry and CVC rules
  • Razorpay: Test card detailsRazorpay domestic, international, subscription, EMI and error cards
  • Wikipedia: Payment card number, IIN rangesScheme prefixes and lengths used by the checker

Last verified 15 October 2026.

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.

More ways to use Test Credit Card Numbers

  • Test Credit Card NumbersSandbox card numbers from Stripe and Razorpay with expiry and CVV, and a Luhn checker
  • Razorpay Test CardsRazorpay test mode card numbers: Visa, Mastercard, RuPay, Amex, Diners, and error cards
  • Credit Card ValidatorCheck a card number’s Luhn digit, scheme and length in your browser; it is never sent
  • Luhn Algorithm CheckerRun the Luhn mod 10 check on any number and see every doubled digit and the total

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.

Read about this

All guides
  • How to check whether a card number is valid, and what valid does not meanThe Luhn check worked on 4242 4242 4242 4242: the digits total 80, ending in 0, so it passes. Plus scheme and length checks, and why valid is not real.
  • Test data that cannot reach a real person, built safe on purposeWhy fixtures use example.com, RFC 5737 IP ranges, gateway test cards and seeds, and the one gap: a random Indian phone number may belong to someone.

Related tools

All developer tools
Regex TesterTest JavaScript regular expressions with live highlighting and a plain-English explanationDiff CheckerCompare two texts side by side and see every added and removed lineJSON DiffCompare two JSON documents and list every added, removed and changed valueOpen Graph PreviewPaste a page and see the share card for Facebook, LinkedIn, X, WhatsApp and SlackKeyword Density and ReadabilityWord and phrase counts, densities, reading time and a Flesch readability scoreHTTP Status CodesEvery HTTP status code, what it means, when to send it and the RFC it comes fromUser-Agent ParserRead a user-agent string: browser, engine, OS, device type and whether it is a botJSONPath TesterRun RFC 9535 JSONPath queries on pasted JSON and see every match highlighted

In the collection Test Data Generators.

Was this tool helpful?
Omnikit

Small jobs, done in your browser. Free, fast and private. Files are never uploaded.

Files

  • Compress Image
  • Image to PDF
  • Merge PDF
  • Compress PDF
  • PDF to Word
  • Word to PDF

Dev

  • JSON Formatter & Validator
  • Base64 Encode & Decode
  • JWT Decoder, Verifier & Encoder
  • Password Generator
  • UUID Generator
  • Unix Timestamp Converter

Money

  • SIP Calculator
  • EMI Calculator
  • GST Calculator
  • FD Calculator
  • PPF Calculator
  • Lumpsum Calculator
GuidesQuestionsAboutHow we checkLaw library (beta)PrivacyTermsDisclosureContactMore: Exam practice (UGC NET Paper 1)Runs in your browser. Nothing is uploaded. © 2026 Omnikit (theomnikit.com)