Test card generator
Generate Luhn-valid card numbers with a network-appropriate prefix and length, for use as software test fixtures: populating forms, exercising validation, and seeding test databases.
4952 2857 0181 0895 7604330 0040 2857 3522 1944325 1661 5898 84434210 5014 6604 13034828 8410 1582 9
Generated in your browser. These pass the Luhn check and look like a real PAN, but they are not issued to anyone and are declined by every real payment processor. Use them as QA fixtures only, never to attempt a real transaction.
When to use generated fixtures vs. processor test cards
For end-to-end tests against a payment processor’s sandbox, use that processor’s own documented numbers (they map to specific behaviors). See the Stripe test cards reference. Use generated fixtures when you just need many distinct, Luhn-valid numbers to exercise your own form masks and validation logic. Validate any number with the Luhn validator.