Credit Card Generator
Generate fake credit card numbers for testing: dummy Visa, Mastercard, Amex, Discover, JCB and Diners Club numbers that pass the Luhn check and carry a real brand prefix, with an expiry, CVV and holder name, for exercising validation, brand detection and payment forms. None of them belongs to an account or can pay for anything.
Generated Cards (0)
| # | Brand | Card Number | Expiry | CVV | Holder | Country | Copy |
|---|
Frequently asked questions
Are these real credit card numbers?
No. They are randomly generated numbers that happen to satisfy the Luhn check and carry a recognisable brand prefix, which is all that makes a number well-formed. No account, bank, holder or balance exists behind any of them, and no funds can be moved with one.
What is the Luhn algorithm?
A checksum invented in 1954 that every payment card number satisfies. Doubling every second digit from the right, adding the digits of any result over nine, and summing the lot gives a multiple of ten. It catches every single-digit typo and most transposed pairs — swapping an adjacent 0 and 9 is the one it misses — which is why forms can reject a mistyped card before contacting the network at all.
What are these numbers actually for?
Exercising code that handles card numbers: checking that your validation accepts a well-formed number, that brand detection picks the right logo, that formatting and masking behave, and that your test fixtures are not full of one hard-coded number. They test the shape of a card number, not a payment.
Can I buy anything with one?
No. Authorisation is an online check against a real issuer and a real account, and these numbers match neither, so any attempt fails at the first step. Attempting to pay with a generated number is attempted fraud regardless of the outcome — this is a developer tool, not a way around a payment.
Which card brands are supported?
Visa, Mastercard, American Express, Discover, JCB and Diners Club, each generated with a prefix from that brand’s real issuer identification ranges and at the brand’s digit length — 16 digits for Visa, Mastercard, Discover and JCB, 15 for American Express and 14 for Diners Club — so brand detection code sees exactly what it would see in production. Visa also issues 13- and 19-digit cards, which this tool does not generate. To test one specific issuer range, type a custom BIN or prefix and it replaces the brand’s own.
Should I use these to test a payment gateway sandbox?
No — use the gateway’s own test numbers. Stripe, Adyen, PayPal and the rest publish specific cards wired to specific outcomes, including declines and 3-D Secure challenges, and their sandboxes only recognise those. Generated numbers are for your own validation and display code.
Are the generated numbers logged anywhere?
No. The whole tool is JavaScript running in your own browser, so nothing you type or paste is sent over the network, written to a log or attached to an analytics event. You can confirm it by opening the network tab and watching it stay empty while you work.
