Skip to content
EMV Tools

Tools

Test PAN generator

A card number (PAN) has three parts: the prefix, whose first digits are the BIN that identifies the issuer, the account body, and a final check digit calculated with the Luhn algorithm.

Use it when you need a well-formed test number for a form, a test case, or a simulator, and want to see how the check digit is calculated.

Enter a prefix and a length. The tool fills the body with random digits and shows the check digit calculation step by step. The result is test data: it belongs to no issued account and cannot be used to pay.

Worked example: with the prefix 411111, a length of 16, and a body of nine 1s, the check digit is 1, so the test PAN is 4111111111111111.

New to EMV? Read EMV in 5 minutes or browse the glossary

Everything runs in your browser. Nothing you enter leaves this page.

Test data: A generated number only follows the PAN format. It belongs to no issued account, so issuers and merchants reject it. Use it only in test environments.

Use a test BIN or any digit prefix. Spaces and dashes are ignored.

Anatomy of a PAN

Anatomy of a PANThe test PAN 4761739001010010 split into its three parts: the issuer identification number in the first digits, the account identifier, and the check digit at the end.4761731900101001203
  1. Issuer identification number (IIN, often called BIN): the first 6 or 8 digits. It names the issuer and the card scheme.
  2. Account identifier: the digits the issuer chooses for the account.
  3. Check digit: the last digit, computed with the Luhn formula over the digits before it.