Credit Card Number Generator - Test Data Generation

If you are software tester, you may need some credit card numbers to be used as part of application input. Credit card numbers have special prefixes and MOD 10 checks. This page helps you to generate some credit card numbers in valid format for your test data need. Issuers include American Express, Diners Club, Discover, enRoute, JCB, MasterCard, VISA, Voyager.

How to generate credit card numbers?

To help you to obtain some credit card numbers for testing purpose, has designed this online tool. All you need to do is to enter the number of data items you need in the form below, and click the Start button. The generated credit card numbers will be presented in the result area with expiration month and year.

Warning, these credit card numbers are for testing purpose only. Do not use them in any production systems.


What is a valid credit card number?

All credit card numbers are divided into 3 parts:

  • Issuer Identifier - 6 digits to identify the issuer of the card.
  • Acccount Number - 6 to 9 digits to identify the individual account number.
  • Check Digit - 1 digit computed as a checksum of the Issuer Identifier and the Account Number based on Luhn algorithm.

For example, credit card number "4417123456789113" consists of:

  • "441712" - Identifies a Visa partner as the issuer.
  • "345678911" - Identifies the holder's account number.
  • "3" - Gives the checksum number.

Popup Windows Tutorials

20 tutorials on different ways to create and test popup windows created in JavaScript: Page unload popups, Pop re-open on close, ...

200+ PHP Script Tutorials

Each tutorial answers one commonly asked PHP programming question with a short, but precise and clear PHP script.