Test Credit Card Generator
Generate Luhn-valid test card numbers for Visa, Mastercard, American Express and other brands, to fill payment forms in development.
- Local calculation
- The result is calculated in your browser.
- Private by default
- Nothing you enter leaves your browser.
How it works
Each number starts with a real prefix for the chosen brand, has the brand's length, and ends with a Luhn check digit, so it passes front-end validation. The numbers are random and are not linked to any account.
For real payment testing, prefer the official test cards published by your payment provider, which also simulate approvals and declines.
Questions
Can I use the generated numbers for real registrations?
No. They are random numbers that happen to pass the format and check-digit rules. Use them only to test software, never to impersonate a person or company.
Related tools
Credit Card Validator
Check a card number with the Luhn checksum and detect its brand from the prefix. Nothing you type is sent or stored.
Bank Account Generator
Generate Brazilian test bank accounts with the right branch and account lengths and a valid check digit for nine major banks.