Skip to content

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).

Brand
What happens

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.

NumberResult in test mode
4242 4242 4242 4242Visa, payment succeeds
5555 5555 5555 4444Mastercard, payment succeeds
3782 822463 10005American Express, payment succeeds
4000 0000 0000 0002Declined: card_declined, generic_decline
4000 0000 0000 9995Declined: card_declined, insufficient_funds
4000 0000 0000 0069Declined: expired_card
4000 0000 0000 0127Declined: incorrect_cvc
4000 0027 6000 31843D Secure authentication required on every payment
The most used Stripe test cards

04 · Use cases

When to use the Test Credit Card Numbers

  1. 01

    Test a Stripe checkout with a successful payment for each card brand

  2. 02

    Trigger a specific decline to check your error handling

  3. 03

    Exercise the 3D Secure authentication step

  4. 04

    Check that a card form handles 14, 15, 16 and 19-digit numbers

05 · Examples

Test Credit Card Numbers examples

Visa, succeeds

ex 01

4242 4242 4242 4242 · any future expiry · any 3-digit CVC

Stripe's standard test card for a successful payment.

Declined, generic

ex 02

4000 0000 0000 0002

Returns card_declined with the decline code generic_decline.

Declined, insufficient funds

ex 03

4000 0000 0000 9995

Returns card_declined with the decline code insufficient_funds.

American Express, succeeds

ex 04

3782 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 05

4000 0027 6000 3184

Requires authentication on every transaction.

06 · FAQ

Test Cards: frequently asked questions

Can these numbers be used to buy anything?

No. They are test numbers that Stripe publishes for its sandbox. They are not real cards, are not attached to any account, and are meant to be used with Stripe test API keys. This page does not generate card numbers.

What expiry date and CVC should I use?

Stripe's documentation says to use any valid future date, such as 12/34, and any three-digit CVC, or four digits for American Express. To test a CVC failure, use the incorrect CVC card (4000 0000 0000 0127) with any three digits.

Do these work with PayPal, Adyen, Braintree or other gateways?

Do not assume so. This list is taken from Stripe's documentation and is checked only against Stripe. Other providers publish their own test numbers and trigger declines in their own ways, so use the list in your provider's documentation.

Why do test numbers pass card validation?

Card forms check the length, the brand prefix and the Luhn check digit, a checksum that catches typing errors. All 31 numbers here pass the Luhn check, so client-side validation accepts them. Passing Luhn says nothing about whether a card exists.

How do I test a declined payment?

Use one of the decline numbers. Each returns a documented result: 4000 0000 0000 0002 is a generic decline, 9995 insufficient funds, 9987 a lost card, 9979 a stolen card, 0069 an expired card, 0127 an incorrect CVC and 0119 a processing error. Stripe notes that these cards cannot be attached to a Customer; use 4000 0000 0000 0341 for a card that attaches and then fails.

How do I test 3D Secure?

Use the 3D Secure numbers: 4000 0027 6000 3184 requires authentication on every transaction, and 4000 0000 0000 3220 must complete 3D Secure for the payment to succeed. Stripe's documentation notes that 3D Secure redirects do not happen for payments created in the Dashboard, so test through your own integration.

Where do these numbers come from, and are they current?

They come from the card tables in Stripe's testing documentation, checked on 11 November 2026. Stripe adds and changes test cards over time, so treat its documentation as the authority if a number here behaves differently.

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

Last updated .