Skip to content

Free generators tool

Test credit card number generator (Luhn valid)

Generate Luhn-valid fake card numbers, expiry dates and CVVs for testing payment forms.

Free, no sign-up to use · what you type or add stays on your device · works offline · How it works

What do you want to generate?
Action
Punctuation

Generated cards

    Test numbers for payment sandboxes and form validation only. They are not real accounts and cannot be used to buy anything.

    Sponsor this tool

    About this tool

    This generator builds card numbers that pass the Luhn checksum and use the real IIN/BIN ranges of common networks (Visa, Mastercard, American Express, Discover, Elo, Hipercard), plus a random future expiry date, CVV and cardholder name. The numbers are completely fake: there is no account behind them, they hold no funds, and any real processor will decline them. Use them only to test input masks, brand detection and Luhn validation, never for real transactions or fraud.

    How to use it

    1. 1 Pick a card network and how many numbers you want.
    2. 2 Click Generate to get the number, expiry, CVV and a random holder name.
    3. 3 Copy the block into your test cases.

    Frequently asked questions

    Can I buy anything with these?

    No. They are structurally valid but not issued by any bank: there is no real account, no balance and no cardholder. Any genuine payment gateway rejects them. Using fake card data to attempt real purchases is fraud.

    What does Luhn valid mean?

    The Luhn algorithm is the checksum in the last digit of a card number. Payment forms use it as a first sanity check. These numbers satisfy it, which is what makes them useful for testing.

    Are the BIN ranges real?

    The leading digits match the published IIN ranges for each network so brand-detection code recognises them, but the remaining digits are random.

    Embed this tool

    Add this free tool to your own website — copy the code below. It stays up to date automatically.

    Tools for your site →

    More in Test data

    Test data · Browse all 122 free tools