Test Credit Card Numbers
Stripe's published test card numbers in one filterable list: successful payments by brand, declines by reason, and 3D Secure. They work in test mode only.
These are the test card numbers Stripe publishes for its test mode and sandboxes. They are not real cards and nothing is generated here. Use any future expiry date and any 3-digit CVC (4 digits for American Express).
31 test cards shown
- VisaSucceeds
4242 4242 4242 4242
Visa
Payment succeeds.
- VisaSucceeds
4000 0566 5566 5556
Visa (debit)
Payment succeeds.
- MastercardSucceeds
5555 5555 5555 4444
Mastercard
Payment succeeds.
- MastercardSucceeds
2223 0031 2200 3222
Mastercard (2-series)
Payment succeeds. Uses the 2221-2720 range.
- MastercardSucceeds
5200 8282 8282 8210
Mastercard (debit)
Payment succeeds.
- MastercardSucceeds
5105 1051 0510 5100
Mastercard (prepaid)
Payment succeeds.
- American ExpressSucceeds
3782 822463 10005
American Express
Payment succeeds. 15 digits, 4-digit CVC. 3D Secure is not supported on this card.
- American ExpressSucceeds
3714 496353 98431
American Express
Payment succeeds. 15 digits, 4-digit CVC.
- DiscoverSucceeds
6011 1111 1111 1117
Discover
Payment succeeds.
- DiscoverSucceeds
6011 0009 9013 9424
Discover
Payment succeeds.
- DiscoverSucceeds
6011 9811 1111 1113
Discover (debit)
Payment succeeds.
- Diners ClubSucceeds
3056 9300 0902 0004
Diners Club
Payment succeeds.
- Diners ClubSucceeds
3622 720627 1667
Diners Club (14-digit card)
Payment succeeds. 14 digits.
- JCBSucceeds
3566 0020 2036 0505
JCB
Payment succeeds.
- UnionPaySucceeds
6200 0000 0000 0005
UnionPay
Payment succeeds.
- UnionPaySucceeds
6200 0000 0000 0047
UnionPay (debit)
Payment succeeds.
- UnionPaySucceeds
6205 5000 0000 0000 004
UnionPay (19-digit card)
Payment succeeds. 19 digits.
- VisaDeclined
4000 0000 0000 0002
Generic decline
The issuer declines the payment. Returns
card_declined / generic_decline. - VisaDeclined
4000 0000 0000 9995
Insufficient funds decline
The issuer declines the payment. Returns
card_declined / insufficient_funds. - VisaDeclined
4000 0000 0000 9987
Lost card decline
The issuer declines the payment. Returns
card_declined / lost_card. - VisaDeclined
4000 0000 0000 9979
Stolen card decline
The issuer declines the payment. Returns
card_declined / stolen_card. - VisaDeclined
4000 0000 0000 0069
Expired card decline
The issuer declines the payment. Returns
expired_card. - VisaDeclined
4000 0000 0000 0127
Incorrect CVC decline
Declined when a CVC is provided. Enter any 3 digits. Returns
incorrect_cvc. - VisaDeclined
4000 0000 0000 0119
Processing error decline
The issuer declines the payment. Returns
processing_error. - VisaDeclined
4000 0000 0000 6975
Exceeding velocity limit decline
The issuer declines the payment. Returns
card_declined / card_velocity_exceeded. - VisaDeclined
4000 0000 0000 0341
Decline after attaching
Attaching the card to a Customer succeeds, but attempts to charge it fail.
- Visa3D Secure
4000 0027 6000 3184
Always authenticate
Requires authentication on all transactions, regardless of how the card is set up.
- Visa3D Secure
4000 0025 0000 3155
Authenticate unless set up
Requires authentication for off-session payments unless it has been set up for future payments. On-session payments always require authentication.
- Visa3D Secure
4000 0000 0000 3220
3DS required, succeeds
3D Secure authentication must be completed for the payment to succeed.
- Visa3D Secure
4000 0084 0000 1629
3DS required, declined
3D Secure authentication is required, then the payment is declined. Returns
card_declined. - Visa3D Secure
4000 0000 0000 3055
3DS supported, not required
3D Secure might still be performed, but is not required.
Source: Stripe testing documentation, checked 11 November 2026. Other payment providers publish their own test numbers, so check their documentation before using these there.
01 · Definition
What is a test credit card number?
A test credit card number is a card number a payment provider reserves for its sandbox so developers can exercise a checkout without moving money. It has a valid length and check digit, so forms accept it, but it belongs to no account. Stripe's best known is 4242 4242 4242 4242, which always succeeds in test mode.
02 · Overview
How the Test Credit Card Numbers works
A reference list of 31 test card numbers taken from Stripe's testing documentation: successful payments for Visa, Mastercard, American Express, Discover, Diners Club, JCB and UnionPay, declines with the error and decline codes Stripe returns, and 3D Secure authentication cases. Filter by brand or outcome and copy a number with one click. Nothing is generated: these are fixed numbers that work only with Stripe test-mode API keys and sandboxes. Other payment providers publish their own test numbers.
03 · Guide
How to use Stripe test cards
Use your Stripe test API keys or a sandbox. Enter a number from the list, any future expiry date such as 12/34, and any 3-digit CVC, or 4 digits for American Express. Other form fields can hold any value.
Choose the number by the outcome you need. The brand numbers succeed. The decline numbers fail with a specific error code, which lets you test each error message in your checkout. The 3D Secure numbers trigger an authentication step.
| Number | Result in test mode |
|---|---|
| 4242 4242 4242 4242 | Visa, payment succeeds |
| 5555 5555 5555 4444 | Mastercard, payment succeeds |
| 3782 822463 10005 | American Express, payment succeeds |
| 4000 0000 0000 0002 | Declined: card_declined, generic_decline |
| 4000 0000 0000 9995 | Declined: card_declined, insufficient_funds |
| 4000 0000 0000 0069 | Declined: expired_card |
| 4000 0000 0000 0127 | Declined: incorrect_cvc |
| 4000 0027 6000 3184 | 3D Secure authentication required on every payment |
04 · Use cases
When to use the Test Credit Card Numbers
- 01
Test a Stripe checkout with a successful payment for each card brand
- 02
Trigger a specific decline to check your error handling
- 03
Exercise the 3D Secure authentication step
- 04
Check that a card form handles 14, 15, 16 and 19-digit numbers
05 · Examples
Test Credit Card Numbers examples
Visa, succeeds
ex 014242 4242 4242 4242 · any future expiry · any 3-digit CVC
Stripe's standard test card for a successful payment.
Declined, generic
ex 024000 0000 0000 0002
Returns card_declined with the decline code generic_decline.
Declined, insufficient funds
ex 034000 0000 0000 9995
Returns card_declined with the decline code insufficient_funds.
American Express, succeeds
ex 043782 822463 10005 · any future expiry · any 4-digit CVC
15 digits grouped 4-6-5 with a 4-digit CVC, a layout card forms often get wrong.
3D Secure, always authenticate
ex 054000 0027 6000 3184
Requires authentication on every transaction.
06 · FAQ
Test Cards: frequently asked questions
Can these numbers be used to buy anything?
What expiry date and CVC should I use?
Do these work with PayPal, Adyen, Braintree or other gateways?
Why do test numbers pass card validation?
How do I test a declined payment?
How do I test 3D Secure?
Where do these numbers come from, and are they current?
07 · Reference
Specs and further reading
These are the primary sources this tool follows. Where a specification defines the behaviour, we link the specification, not a summary of it.
- Testing: test card numbers
Stripe. The source of every number on this page, with the full list of brands, countries, declines, disputes and 3D Secure cases.
- Card decline codes
Stripe. What each decline code means and how to respond to it.
- Luhn algorithm
Wikipedia. The check-digit formula card forms use to catch mistyped numbers.
08 · More
Tools that pair with Test Cards
Fake Phone Number Generator
Test phone numbers from ranges reserved for fiction: 555-01XX, 07700 900XXX and more. US, Canada, UK, Australia, France; E.164 or local format.
Random Number Generator
Generate random integers or decimals between any two numbers, up to 10,000 at a time. Allow or forbid repeats, and add a seed for a repeatable sequence.
Fake Address Generator
Random fake addresses for testing: any US state with its ZIP prefix, or the UK, Canada, Australia, Germany, France and Japan. Copy as fields, JSON or CSV.
Barcode Generator
Make Code 128, EAN-13, UPC-A, EAN-8 and Code 39 barcodes in your browser. Check digits are calculated and verified. Download as SVG or PNG.