Easy Tech Tuts
Stripe

How to Set Up a Stripe Account Test Mode Easily 2026

By Impran M N

Before you ever charge a real customer, you should be able to run a payment through your Stripe integration and watch it succeed, fail, and get declined — all without touching a real bank account. That's what Stripe's test environment is for, and in 2026 it lives under the name "sandbox" rather than the old Test Mode toggle, though it does exactly the same job: a fully isolated copy of your account where nothing you do affects real money. This guide walks through creating your account, finding the sandbox, and using it to simulate payments before you go live.

01Create your Stripe account

Head to stripe.com and start the signup form. You'll enter an email, your full name, a password, and your country — Stripe uses the country to determine which payment methods and payout currencies are available to you later, so pick the one your business actually operates in rather than where you happen to be sitting.

You can also sign up with a Google account if you'd rather skip typing a password. Once submitted, Stripe creates your account and drops you straight into the dashboard.

The Stripe account creation form — email, full name, password, and country, with an option to sign up with Google instead.
The Stripe account creation form — email, full name, password, and country, with an option to sign up with Google instead.

02Find your sandbox — Stripe's test environment

Every new Stripe account opens into a sandbox by default, which is what used to be called Test Mode. A dark banner across the top of the dashboard makes this unmistakable: "You're testing in a sandbox — your place to experiment with Stripe functionality." Everything you do here — creating products, running payments, generating API calls — is fully separated from your live account. This is intentional: it lets you build and break things freely while your integration is still in progress, with zero risk of an accidental real charge.

A fresh sandbox dashboard, with the top banner confirming you're in Stripe's test environment rather than live mode.
A fresh sandbox dashboard, with the top banner confirming you're in Stripe's test environment rather than live mode.

03Get comfortable in the sandbox dashboard

The sandbox uses the same layout as your live dashboard — Home, Balances, Transactions, Customers, and Product catalog down the left side, with Payments, Billing, Reporting, and more grouped under Products below that. The banner changes wording slightly once you're working inside it, reminding you that "changes you make here don't affect your live account." Your Overview panel will show zeroed-out figures for gross volume and net volume until you start running test transactions, which is expected — this is a blank environment built specifically for you to fill with fake activity.

The sandbox's Overview screen, with the reassurance banner and a search bar for jumping straight to settings like Team and security or Compliance.
The sandbox's Overview screen, with the reassurance banner and a search bar for jumping straight to settings like Team and security or Compliance.

04Locate your test API keys

Your API keys live under Developers in the dashboard menu, and while you're inside the sandbox, the keys shown there are your test keys — they're prefixed differently from live keys (test secret keys start with sk_test_ and test publishable keys with pk_test_) so it's obvious at a glance which environment a key belongs to. Use these test keys anywhere your checkout or backend code needs to talk to Stripe during development. Never paste a live key into a test integration or vice versa; mixing them up is the single most common way developers accidentally trigger a real charge while still "just testing."

05Simulate payments with Stripe's test cards

Stripe publishes a standard set of test card numbers that only work inside sandbox mode, and they're what you use to actually exercise your checkout flow. The number 4242 4242 4242 4242 simulates a successful payment with any future expiry date and any three-digit CVC.

Other published numbers trigger specific failure scenarios — a generic decline, insufficient funds, an expired card — so you can confirm your checkout handles errors gracefully, not just the happy path. Run a handful of these through your integration before you consider it done; a checkout that only works when everything goes right isn't ready for real customers.

06Switch to live mode when you're ready

Once your integration behaves correctly against test cards, you move to live mode from the same account — there's a toggle in the dashboard that swaps you out of the sandbox and into real payment processing, at which point you'll need your live API keys instead of the test ones. Live and sandbox data stay completely separate, so none of your test transactions or fake customers carry over. Before flipping the switch, make sure your bank account is connected for payouts, since that's required to actually receive the money live payments bring in.

FAQ

Frequently asked questions

Does Stripe's test mode use real money?

No. The sandbox (formerly called Test Mode) simulates transactions using published test card numbers so you can confirm your checkout works without spending or receiving real money.

Are test API keys different from live keys?

Yes. Test keys are prefixed sk_test_ or pk_test_ and only work inside the sandbox. Live keys use sk_live_ / pk_live_ and only work once you've switched to live mode.

Is Stripe's sandbox the same as the old Test Mode?

Functionally yes — Stripe renamed Test Mode to "sandbox" but it still gives you a fully isolated copy of your account for experimenting with payments, products, and API calls.

What card number do I use to test a successful payment?

4242 4242 4242 4242, with any future expiry date and any three-digit CVC, simulates a successful charge. Stripe also publishes numbers for testing declines and other failure cases.

Can I switch back and forth between sandbox and live mode?

Yes, at any time from your dashboard. Your test and live data never mix, so switching back to the sandbox won't show any real transactions and vice versa.

About the author

Impran M N
Written by

Impran M N

I've been hooked on technology for as long as I can remember — especially the new tools and AI apps that seem to land every other week. Easy Tech Tuts is where I write up whatever I've just worked out: I do the task in the real product, record the screen, and turn it into the guide I wish I'd found first.