Credit Card Generator (Luhn-valid test numbers)
LiveGenerate Luhn-valid test card numbers by brand.
All generated data is fictional and intended for development, testing, QA, prototyping, and automation only. Do not use it for fraud, impersonation, or illegal activity.
Configure the options and press Generate to produce output.
About this tool
Each record has a brand, the raw number and a formatted version. The number is built from a real brand IIN/BIN prefix, padded with random digits, and closed with a Luhn check digit — so it passes format/checksum validators. It is fictional: not issued, not linked to any account, and unusable for payment. Use only for testing.
Example output
[
{
"brand": "Hipercard",
"number": "6062825125874299",
"formatted": "6062 8251 2587 4299"
},
{
"brand": "Mastercard",
"number": "5270490198878998",
"formatted": "5270 4901 9887 8998"
}
]API endpoint
curl "https://codetoolshub.dev/api/v1/credit-card?count=3"