Dummy Credit Card Data Generator
Generate valid dummy credit card numbers with Luhn checksum for Visa, MasterCard, AmEx, Discover, and JCB. For testing only.
Select a network and click Generate
About
Payment gateway integration requires valid test card numbers that pass automated checksum verification. Using arbitrary digit strings causes silent failures in Stripe, PayPal, and Braintree sandboxes, wasting debugging hours on data that was invalid from the start. This generator produces syntactically correct Primary Account Numbers (PANs) by implementing the ISO/IEC 7812 standard: correct Issuer Identification Number (IIN) prefixes per network, proper length constraints (15 digits for AmEx, 16 for others), and a mathematically valid check digit computed via the Luhn Mod-10 algorithm. Every generated number will pass any checksum validator. The accompanying expiry dates, CVVs, and cardholder names are structurally realistic but entirely fictional.
These numbers cannot be used for real transactions. No bank account is linked. No issuer has allocated these PANs. The tool exists solely for software testing, form validation development, and educational demonstration of how payment card numbering works. Note: some gateways maintain internal blocklists of known test prefixes. If a generated number is rejected in a sandbox, try a different IIN range within the same network.
Formulas
Every generated PAN must satisfy the Luhn algorithm (ISO/IEC 7812-1). The check digit d0 is computed so the full number passes this test:
where the transformation function f operates on each digit di (indexed from the rightmost digit, i = 0):
The generator works in reverse: it fills positions dn through d1 with the IIN prefix followed by random digits, then computes d0 as:
Where di = digit at position i from the right, n = total number of digits (15 or 16), d0 = check digit (rightmost), and f = Luhn doubling function.
Reference Data
| Card Network | IIN / BIN Prefix(es) | PAN Length | CVV Digits | Market Share (2024) | ISO Standard |
|---|---|---|---|---|---|
| Visa | 4 | 16 | 3 | ~39% | ISO/IEC 7812 |
| MasterCard | 51 - 55, 2221 - 2720 | 16 | 3 | ~24% | ISO/IEC 7812 |
| American Express | 34, 37 | 15 | 4 | ~11% | ISO/IEC 7812 |
| Discover | 6011, 644 - 649, 65 | 16 | 3 | ~9% | ISO/IEC 7812 |
| JCB | 3528 - 3589 | 16 | 3 | ~3% | ISO/IEC 7812 |
| Diners Club Intl. | 36 | 14 - 19 | 3 | <1% | ISO/IEC 7812 |
| UnionPay | 62 | 16 - 19 | 3 | ~45% (China) | ISO/IEC 7812 |
| Maestro (legacy) | 5018, 5020, 5038 | 12 - 19 | 3 | Discontinued 2023 | ISO/IEC 7812 |
| RuPay | 60, 65, 81, 82 | 16 | 3 | ~60% (India) | ISO/IEC 7812 |
| Elo | 636368, 438935 | 16 | 3 | ~25% (Brazil) | ISO/IEC 7812 |
| Luhn Check Digit | Applied to ALL networks. Sum of alternating doubled digits ≡ 0 (mod 10) | ||||
| IIN Range | First 6 - 8 digits identify issuer. Remaining digits are account number + check digit. | ||||