Skip to content
faker.tools
All 79

Plate III · Financial, E-Commerce & Retail Stubs

Credit Card Number Generator

Luhn-valid Visa, Mastercard, Amex, Discover, JCB and Diners numbers.

#BrandNumberExpiryCVCLuhn Valid
1Mastercard5579 7247 2602 903110/30288true
2Mastercard5239 0248 5451 030412/28419true
3American Express3418 007117 8720109/291853true
4Visa4290 1932 5286 375201/30120true
5Mastercard5265 4606 2284 338601/31894true
6Mastercard5532 4421 0230 608112/31145true
7American Express3453 386702 1330304/282523true
8American Express3771 759691 8049103/291605true
9Visa4160 9447 0306 331010/27372true
10Visa4397 0552 2854 752404/29989true
10 rows · 877 BGenerated in your browser · Credit Card Number Generator

A payment form has at least four validation layers: length, brand prefix, Luhn checksum and expiry. A number that fails at layer one never exercises the other three. Every number here passes all four, so your form has to reach the payment processor to reject it.

What you can control

  • Correct brand prefixes and lengths — Amex is fifteen digits starting 34 or 37, Visa sixteen starting 4.
  • Every number carries a valid Luhn check digit, confirmed in its own column.
  • The expired-card option produces past expiry dates, which is the fastest way to test a decline path.
  • Four display formats including a masked one, for testing how you show a stored card.

What this is not

These numbers satisfy the Luhn algorithm but are not issued by any bank and carry no funds. Any real payment processor will decline them. Attempting to use one for an actual purchase is fraud.

Questions

Will these work for a real purchase?

No. They pass client-side validation and are rejected the moment they reach a card network, because no issuer has them on file.

What is the Luhn algorithm?

A checksum that catches most single-digit typos and adjacent transpositions. Every card number in circulation satisfies it, which is why forms check it before making a network call.

Should I use these instead of my processor's test cards?

For front-end validation, these are fine and cover more brands. For end-to-end payment flows, use your processor's official test numbers — they trigger specific decline scenarios these cannot.

Next in Finance

All 11