Credit Card Number Generator & Validator

Generate Luhn-valid test card numbers for QA and sandbox payments, or validate a card number to detect its brand.

For testing only. These numbers are not real and cannot be used for purchases. Never enter your real card number anywhere on the public internet.

Generator

Optional. Defaults to a random Visa prefix (4…).

Number Exp CVV Holder
01/30854JAMIE LOPEZ
11/27119CASEY PATEL
12/30060JORDAN SHARMA
08/28637JORDAN SULLIVAN
01/28125QUINN MORALES

Validator

Do not enter a real card number.

Paste a card number above to see brand, length, and Luhn result.

About this tool

This generator creates credit card numbers that satisfy the Luhn checksum and follow brand-specific prefix and length rules for Visa, MasterCard, American Express, Discover, JCB, Diners Club, and UnionPay. The numbers are useful for filling out test payment forms, exercising QA flows, and seeding sandbox payment gateways. They are not real and cannot be used for any purchase or subscription.

The validator does the reverse: strip spaces and dashes from the input, detect the brand by prefix, check that the length matches what the brand allows, and verify the Luhn checksum. Use it to sanity-check the test data your QA stack is producing.

FAQ

Are these real credit card numbers?
No. They pass the Luhn check used by payment forms, but they are not issued by any bank and have no funds behind them.
Which card brands are supported?
Visa, MasterCard, American Express, Discover, JCB, Diners Club, and UnionPay.
Can I generate a card for a specific BIN range?
Yes. Enter the BIN prefix and the tool fills in the rest, then appends a valid Luhn check digit.
Is the data sent anywhere?
No. Everything runs in your browser. Nothing you type or generate leaves your device.

Andrei Rovnyi

Engineering leader, founder, and software developer building web platforms, game systems, and automation tools. 13 years of shipped work — currently at Gaijin.net.

Get in Touch

Building an MVP, shipping a game feature, or automating a team workflow? Open source or paid — let's talk.

Contact Me
© 2020-2026 XPLOIT FZE. All trademarks, names and logos belong to their respective copyright holders.