Test Card Number Generator
Generate Luhn-valid test card numbers with correct brand prefixes and lengths for payment-form testing, plus a validator that checks any number. All local, all free.
Generated entirely in your browser, nothing is sent anywhere or stored.
Why do these numbers “work” in test forms?
Card forms usually validate three things before talking to a bank: the brand prefix (IIN, e.g. Visa starts with 4, Amex with 34/37), the length (15 for Amex, 14 for Diners, 16 for most), and the Luhn checksum, a mod-10 digit invented in 1954 to catch typos. This tool generates numbers that satisfy all three, which is why sandboxes and front-end validators accept them. A real charge still requires an issuing bank to recognize the account, which these numbers don't have. Free forever, runs offline.