Credit cards generator (credit and debit card numbers) for printing, database insertion, testing

Enter your card generation fields below if you want to generate specific card data. Ifyou just want to see it run, press the "Generate Cards" button directly, and some values will be be used by default

Generate card data

Input required for the generator

Select a Card brand from the list if you want the prefix of the card pre-populated(optional)
{Option not working}

Enter the card number to begin with:

Sequence Number:

Card Holder Name:

Expiry date (format MMYY):

Institution/Bank Name:

Service Code:

Address line 1 (mandatory):

Address line 2 (optional):

PIN number(0000 for random):

Enter the PIN Key (32 hex bytes/characters):

Enter the CVV Key (32 hex bytes/characters):

Generate number of card records:

{Just press this button to get some random values}

This information goes to the card printing company, securely (to print the plastic cards)

This information goes to into the authorization system database, securely (for PIN verification)

This information goes to the cardholder, securely (PIN print envelope)

How card data generation works

Calculating the correct card number

First Step is to calculate the card number based on an in initial value or a prefix or BIN. If you just press the "Generate Cards" button, an initial card number is set by default. This is "4000340000000500", which is an invalid Card Number.

To make calculate a correct card number, we call a function that takes the first 15 characters of this card number, so without the last digit. This last digit is being calculated with Luhn algorithm. That is why it is called the Luhn Digit. The algorithm makes the Luhn check of the first 15 digits and appends the calculated digit, so the correct card number is 4000340000000504

Generating the card records

For printing on the plastic card, this card number is split in 4 digits groups, with a blank space as a separator. The Expiration Date is a 4 digit number in the format of MMYY which means month as 2 digits, and year, also 2 digits. Next is the name that is printed on the card. The Institution ID is the ID of the Bank or institution that issued the card. Nowdays there are cards issued by non-banks, like bank-in-an-app services.

Next, we need to calculate the CVV, the 3-digit number that gets printed on the back of the card. The CVV is calculated from the card number, the expiration date, and the service code. The CVV encryption key is used to apply encryption to the data.

The following 2 records are Track1 and Track2 data. Track1 is not really used anymore, but Track2 is always used and it is printed on the magnetic stripe of the back of the card, just like recording with a casette player recorder. The Track1 and Track2 records have a specific format which you can see from the generation console. Next, we append the Address information, whick can consist of 2-7 records, depending on company. This is plain text address information.

A random number is being generated to uniquely identify this record , which may or may not be used. Based on this information, 3 sets of records are generated.

The card printing information

A file is generated for the company that will literally print the plastic cards, and that you can see in the record above.

The database record information

A file is generated which will make SQL inserts of the data the bank will store so it can verify this card and PIN.

The Pin printing information

A file is generated for the envelope printing service, which may contain the address and PIN number. The only place where the real, clear PIN is stored. It does not exist in any other place, and once printed to the envelope that goes to the card Holder, the client, this value does not exist anywhere anymore

Iso8583 - articles

Are you ready to start or need help?


Download and Use the software yourself

Download software

Read Documentation and Start guides

Get started