Test data tools
Test card number format generator
Create Luhn-valid number formats for UI prototypes and validation fixtures. Pick a brand shape and generate a batch with example expiry and CVC fields.
Generation and export run in this browser. These batches are not added to your saved addresses.
Choose your options, then generate a batch.
Your batch
CSV and JSON export fields
JSON contains tool, generatedAt and records. Each record includes brand, number, expiryMonth, expiryYear, cvc, testOnly and formatOnly. Number, expiry and CVC values are strings. In a spreadsheet, import card-number and CVC columns as Text to preserve long values and leading zeros. These files test number formats, not payment approval.
brand- Card format
number- Card number
expiryMonth- Expiry
expiryYear- Expiry
cvc- CVC
How to use this tool
Choose options, select Generate, then copy or download the batch. Changing an option clears the previous result.
Choose a format and batch size. The check digit follows the Luhn checksum; Amex uses a four-digit CVC and the other formats use three. Preserve numbers and CVC values as text so zeros are not lost.
Format example
Visa-shaped example: 4242 4242 4242 4242
What these samples mean
Format samples only: these numbers cannot be used for purchases and are not guaranteed to be accepted by a payment sandbox. Use your payment provider’s documented test cards for payment integration tests.
Luhn validity checks number structure only. It does not prove issuance, an account, balance, ownership or authorisation. Prefixes are representative format examples, not an exhaustive current BIN directory. For Stripe integration tests, use Stripe’s official sandbox card values and test keys.