Skip to main content
~/makemydev/credit-card-generator

$credit-card-generator

Generators

Generate Luhn-valid test credit card numbers for Visa, Mastercard, Amex, and Discover. For development and testing only.

For testing purposes only. These are not real credit card numbers and cannot be used for purchases. They are Luhn-valid numbers generated for use in development and payment integration testing.

Card Network

Visa: 16 digits, prefix 4

About test card numbers

These numbers pass the Luhn algorithm (mod-10 check), which is the same checksum validation real card processors use. This makes them suitable for testing payment form validation, checkout flows, and API integrations.

Visa

16 digits, starts with 4

Mastercard

16 digits, starts with 51–55

American Express

15 digits, starts with 34 or 37

Discover

16 digits, starts with 6011