Test credit card number generator (Luhn)
Generate Visa, Mastercard, Amex, Diners and Discover test card numbers that pass the Luhn check, with expiry and CVV. Validate any card number too.
Generated numbers are fictitious data for software testing: they have a valid format and check digit, but do not belong to real people, accounts or cards. Do not use them for real transactions.
Generate
| Number | Expiry | CVV |
|---|
Validate (Luhn check)
How it works
Choose the brand and quantity and get numbers with the right prefix and length and a Luhn check digit, plus a future expiry date and a CVV. Use them to test payment form validation, never to buy anything.
The validator tells you whether a number passes the Luhn check and which brand it is. For end-to-end tests with your payment gateway (Stripe, PayPal, etc.) always use the official test cards each provider publishes.
Frequently asked questions
Can I buy things with these cards?
No. They only have a valid format; they are not linked to any account and any payment will be declined.
What is the Luhn algorithm?
A checksum formula: every second digit from the right is doubled and the total must be a multiple of 10. It catches typing errors.
Related tools
Argentine CUIT and CUIL generator and validator
Generate valid test CUIT and CUIL numbers (Argentine tax IDs for people and companies) with a correct check digit, and validate any CUIT/CUIL.
Open toolArgentine DNI test number generator
Generate random Argentine DNI (national ID) numbers in realistic ranges by age, with or without dots and with their matching CUIL. For testing and QA.
Open toolTest phone number generator
Generate test mobile and landline numbers for Argentina, Mexico, Spain, the US, Chile, Uruguay, Colombia, Brazil and Peru, in local, international and E.164 format.
Open toolArgentine CBU generator and validator
Generate 22-digit Argentine CBU bank account test numbers with valid check digits and real bank codes, and validate any CBU showing its bank.
Open toolCPF, CNPJ, RUT, CI and RUC generator and validator
Generate and validate Latin American test IDs: Brazil CPF and CNPJ, Chile RUT, Uruguay CI and Peru RUC, with correct check digits.
Open toolFake person data generator (Argentina)
Generate fictitious people with name, email, phone, DNI, CUIL, birth date and Argentine address. Export to JSON, CSV or SQL to seed your test database.
Open toolNeed a custom tool for your business?
Tell us about your case and in 30 minutes we'll give you a clear diagnosis: what's going on, what to do first and what it might cost. No strings attached.