stripe test card

A Stripe test card is a documented card number that only works in Stripe's test mode, letting you run charges, declines and 3D Secure flows without ever touching a real bank account. Because these numbers are fictional and published for everyone, you can rehearse an entire checkout — success, failure, refund, dispute — in a matter of minutes. This guide covers the numbers you need, how they behave, and where the limits are.

Key Features

Numbers, Formats and Specs

Every test card uses the standard 16-digit layout, so anything that parses a real card will parse these too. The well-known success number is 4242 4242 4242 4242; 4000 0000 0000 0002 returns a generic decline, 4000 0000 0000 9995 returns insufficient funds, and 4000 0000 0000 3220 triggers a 3D Secure challenge. Supply any future expiry date, any three-digit CVC and a postal code such as 00000. Decline responses arrive with codes like card_declined or insufficient_funds, which is exactly what your error handling should read. Note that these numbers are deliberately issued to nobody, so they cannot process real money — and real card data, including CVV values, must never be stored or passed around outside a compliant processor.

Delivery, Access and Returns

This is a digital reference, so there is nothing to ship and no waiting on a courier — access is immediate and the tables are updated whenever Stripe revises its sandbox. If a number stops behaving as described, report it and the entry is corrected or refunded at no cost.

What is a Stripe test card?

It is a fake card number published by Stripe for use in test mode. It behaves like a real card inside your sandbox but is rejected everywhere else.

Do Stripe test cards work in live mode?

No. They only function with test API keys, and attempts to use them against a live account fail immediately.

Is it legal to use Stripe test card numbers?

Yes — they are public, non-issued values intended for software testing. Buying, selling or storing real card credentials is a separate matter and is illegal.

More

Read our complete guide: Buy CVV Cheap: Pricing, Risks, and What First-Time Buyers Need to Know