Official Test Credit Card Numbers for Payment Testing
Curated list of official test cards from major gateways. For sandbox and development use only. Always check provider docs for updates (as of November 27, 2025).
🚨 Critical Legal Warnings & Disclaimers
Using test credit card numbers is legal only in designated testing environments like sandbox modes. Misuse can lead to severe consequences.
- Prohibited Uses: Never use test cards for real transactions, fraud, or unauthorized testing. This violates terms of service and laws like 18 U.S.C. § 1344 (bank fraud) in the US, with penalties including fines up to $1M and 30+ years imprisonment.
- PCI Compliance: Do not log or store test numbers in production code – it risks PCI DSS violations and fines up to $500K per incident. Use PaymentMethod objects (e.g., Stripe’s pm_card_visa) instead of raw numbers.
- Fraud Prevention: Test cards help simulate carding attacks but must not enable them. Report suspicious activity to your processor.
- International Note: Laws vary; in EU (PSD2), misuse triggers GDPR fines. Always consult legal counsel for compliance.
- Our Policy: This hub provides info for educational/dev purposes only. No liability for misuse. Verify with official docs.
Sources: Official gateway docs & legal guides (2025).
Stripe Test Cards
Stripe’s official test numbers simulate success, declines, 3DS, and more. Use in test mode only.
| Scenario | Brand | Number | Notes |
|---|---|---|---|
| Success | Visa | 4242 4242 4242 4242 | Any future expiry/CVV |
| Decline (Funds) | Visa | 4000 0000 0000 0002 | Insufficient funds |
| Fraud/3DS | Visa | 4000 0000 0000 0010 | Triggers auth |
| Success | Mastercard | 5555 5555 5555 4444 | Any expiry/CVV |
| Success | Amex | 3782 8224 6310 005 | Charge card |
| Success | Discover | 6011 1111 1111 1117 | Full details req. |
| High Value | Visa | 4000 0566 5566 5555 | $250 limit |
| Expired | Visa | 4000 0000 0000 0069 | Declines as expired |
| Country-Specific (EU) | Visa | 4000 0000 0000 0253 | EU SCA test |
Tip: For non-card (e.g., ACH), use bank: 000123456789.
PayPal Sandbox Test Cards
PayPal provides test accounts and cards for sandbox. Use personal sandbox email for PayPal tests.
| Brand | Number | Notes |
|---|---|---|
| Visa | 4111 1111 1111 1111 | Success |
| Mastercard | 5111 1111 1111 1111 | Success |
| Amex | 3782 3456 7890 123 | Success |
| Diners | 3056 9300 0900 0904 | Success |
| Decline | 4000 0000 0000 0002 | Generic decline |
Tip: Create sandbox accounts at developer.paypal.com.
Braintree Test Cards
Braintree (PayPal-owned) requires specific nonces and numbers for sandbox.
| Scenario | Number | Notes |
|---|---|---|
| Success | 4111 1111 1111 1111 | Visa success |
| Decline | 4000 0015 0000 0003 | CVV decline |
| Fraud | fake-gateway-rejected-fraud-nonce | Use nonce |
| 3DS | 4000 0000 0000 0251 | Auth required |
| Processor Decline | 2000 0000 0000 0004 | Gateway reject |
Tip: Use nonces like fake-valid-nonce for API tests.
Adyen Test Cards
Adyen’s test numbers cover global scenarios; generate via API for customs.
| Brand | Number | Notes |
|---|---|---|
| Visa | 4111 1111 1111 1111 | Success |
| Mastercard | 5555 5555 5555 4444 | Success |
| Amex | 3714 4963 5398 431 | Success |
| Decline | 4000 0000 0000 0002 | Refused |
| 3DS | 5555 5555 5555 0045 | Auth challenge |
Tip: Use Chrome extension for quick fill.
Square Test Cards
Square’s sandbox cards for POS and e-comm testing.
| Scenario | Number | Notes |
|---|---|---|
| Success | 4532 1457 0198 1234 | Visa success |
| Decline | 4000 1160 0000 0003 | Card declined |
| AVS Fail | 4000 0000 0000 0004 | Address mismatch |
| High Risk | 4000 0027 6000 3184 | Triggers review |
Tip: Expiry: Any future date; CVV: 123.
FAQ: Test Card Best Practices
Fake Credit Card Generator for Testing: The Most Trusted Free Tool in 2025
Updated November 18, 2025 – As a developer, you know how frustrating it is to test payment flows without valid-looking test cards. That’s why we built the completely free, 100% client-side Fake Credit Card Generator trusted by over 50,000 developers worldwide.
Why Developers Love This Fake Credit Card Generator
Unlike shady “free credit card generators” that collect data or generate illegal numbers, our tool is:
- 100% client-side – nothing ever leaves your browser
- Real Luhn algorithm validation (passes Stripe, PayPal, Adyen, etc.)
- Supports Visa, Mastercard, American Express, Discover
- Dark/light mode + realistic card design
- No registration, no logs, no ads
How the Luhn Algorithm Works (Simple Explanation)
Every valid credit card number passes the Luhn algorithm (also called mod-10). Here’s how our generator does it:
- Choose correct prefix (e.g., 4 for Visa, 51–55 or 2221–2720 for Mastercard)
- Generate random digits to reach required length
- Calculate and append the correct check digit
- Format with proper spacing (4-4-4-4 or Amex 4-6-5)
Learn more: Wikipedia – Luhn Algorithm
Best Test Cards for Popular Payment Gateways
Popular test numbers (also generated by our tool):
- Visa:
4242 4242 4242 4242→ Works everywhere - Mastercard:
5555 5555 5555 4444 - Amex:
3782 822463 10005 - Declined card:
4000 0000 0000 0002(Stripe)
Full list → Stripe Testing Cards | PayPal Sandbox Cards
Features That Make This Tool Stand Out in 2025
| Feature | Our Tool | Other Generators |
|---|---|---|
| 100% Client-Side | Yes | Rarely |
| Real-Time Card Preview | Yes with chip & logo | Text only |
| Dark Mode | Yes | No |
| Copy & Print Support | Yes | Sometimes |
| Batch Generation (up to 10) | Yes | No |
Who Uses This Tool Daily?
- Frontend developers testing Stripe Elements
- Shopify & WooCommerce store owners
- Backend engineers working with Braintree, Adyen, Square
- QA testers running automated payment scripts
- E-commerce agencies launching new stores
Security & Privacy Guarantee
We take your privacy seriously:
- No cookies
- No analytics
- No server requests
- All code runs in your browser
- Open-source logic (view page source)
Verified safe by: VirusTotal | Mozilla Observatory
Ready to Test Your Payment Forms?
Generate Fake Cards Now – Free Forever
Also check our other free developer tools:
Mentioned on: GitHub Discussions • dev.to • Product Hunt
© 2025 AiFreeRush • Free AI & Developer Tools • Made with ❤️ for the developer community