TestCardsGet a free key

For software testing & QA — non-functional fixtures, no real card data

Test cards, a Luhn validator & a generator for QA

The test numbers processors publish for sandbox testing, an instant Luhn checker, and a QA fixture generator — plus a BIN/Luhn API and MCP server. Everything is for exercising payment forms and validation code; the numbers here are declined by any real processor.

4242 4242 4242 4242

Stripe test cards

A clean, copy-paste reference of the test numbers Stripe documents — successes, declines, and 3D Secure.

View test cards

Luhn validator

Paste a card number and instantly see if it passes the Luhn checksum, plus its detected scheme. Runs in your browser.

Open validator

Test-card generator

Generate format-valid, non-functional QA fixtures per network. For exercising forms and validation code — never real transactions.

Open generator

A tiny API for card metadata

Need BIN detection or Luhn validation in your own tests or CI? One endpoint each, a generous free tier, and an MCP server for AI agents. Pure compute — fast and deterministic.

curl "https://www.testcards.io/api/v1/bin?bin=424242&key=YOUR_KEY"
Read the API docs →

BIN / Luhn API

Detect scheme, type, and length from a BIN, or validate a number — one GET request, JSON back.

MCP server

Validate and generate test cards from Claude, Cursor, or any agent with a metered key — no SDK.

QA-only, by design

No real cardholder data, no PII, nothing stored. Generated numbers are declined by real processors.

API pricing

The website tools are free and need no account. Pricing is for the API.

Free
$0
1,000 calls / mo
  • BIN, Luhn & generate API
  • MCP server
  • API key, no card
Starter
$8/mo
100,000 calls / mo
  • Everything in Free
  • Higher rate limits
  • Email support
Pro
$29/mo
1,000,000 calls / mo
  • Everything in Starter
  • Bulk generation
  • Priority support

Upgrade an existing key

Enter the email you used to get your key — your plan upgrade is applied to it automatically.

Secure checkout via Stripe. Cancel anytime. Don’t have a key yet? Get one free →

Paid plans bill through Stripe. Start free with no card.

Get a free API key

1,000 free calls a month, no card. Use it from REST or the MCP server.

See the API docs →