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.
Anatomy of a PAN
- Issuer identification number (IIN, often called BIN): the first 6 or 8 digits. It names the issuer and the card scheme.
- Account identifier: the digits the issuer chooses for the account.
- Check digit: the last digit, computed with the Luhn formula over the digits before it.