CodeToolsHub.dev

Credit Card Generator (Luhn-valid test numbers)

Live

Generate 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.

Configuration

Output

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"
API

Frequently asked questions

Can these cards be used to pay?
No. They only pass the Luhn checksum; they are not issued by any bank and have no funds. They are for testing validation and payment forms.

Related tools

CodeToolsHub.dev

Realistic fictional data for development, testing, and AI.

© 2026 CodeToolsHub.devAll generated data is fictional. Not affiliated with Microsoft or Visual Studio Code.