Utilities lainnya
Credit Card Number Generator & Validator
Generate and check card numbers (Luhn) for testing.
Generated numbers only satisfy the Luhn algorithm — they are not real cards and cannot be used for transactions.
Guide & explanation
This tool generates and checks card numbers for testing payment integrations, forms, and input validation.
The Luhn algorithm
A card number ends with one check digit that makes the whole number pass the Luhn (mod 10) formula. This catches single-digit typos, but it does not prove the card actually exists.
Network detection
| Network | Prefix | Length |
|---|---|---|
| Visa | 4 | 16 |
| Mastercard | 51-55, 2221-2720 | 16 |
| American Express | 34, 37 | 15 |
| Discover | 6011, 65, 644-649 | 16 |
| JCB | 3528-3589 | 16 |
| Diners Club | 300-305, 36, 38-39 | 14 |
Warning
Generated numbers only pass Luhn with a correct prefix. They are not real cards, are not linked to any account, and cannot be used for transactions.