Test credit card numbers

Use these card numbers to test a checkout. They are Stripe's published test numbers for each card brand, and they work with any future expiry date and any CVC in test mode.

runs in your browser · nothing uploaded

loading tool…

How to use it

  1. Copy the number for the brand you want to test.
  2. Enter any future expiry date and any CVC (four digits for American Express).
  3. Use them only with your payment provider's test or sandbox keys.
  4. To check whether a number is well-formed, paste it into the Luhn checker.

Why we list numbers instead of generating them

Any number that passes the Luhn check looks like a card number, but only the processor's own test numbers are accepted by its sandbox. A random valid-looking number is rejected in test mode, and could belong to a real card. So this page lists the official test numbers and leaves generation out.

Each processor publishes its own list. Stripe's numbers are shown here, taken from its testing docs on 30 November 2026. Adyen, Braintree, PayPal and Checkout.com each have their own test cards in their docs, and Stripe also lists numbers that trigger declines and 3-D Secure.

How the Luhn check works

Starting from the right, double every second digit, subtract 9 from any result over 9, then add everything up. A well-formed number gives a total that ends in 0. It catches typos, such as one wrong digit or two swapped neighbours, before the number is sent anywhere.

Questions

Will these work in live mode?

No. They only work with test API keys, and a live payment with them is declined. That is the point: you can test without moving money.

Is the number I check sent anywhere?

No. The Luhn check runs in your browser. Still, don't paste your real card number into websites that don't need it.

Why does Amex have 15 digits and a 4-digit CVC?

American Express uses 15-digit numbers grouped 4-6-5 and a four-digit security code printed on the front of the card. Make sure your form allows both.