*All random cards generated are structurally valid but have no actual balance and cannot be used for online payments or real transactions. Any attempt to use these test card numbers for actual purchases is strictly prohibited and illegal. For more details, visit our Terms of Service.
Visa test card numbers
These numbers come from official provider documentation (Stripe, Braintree) and are safe to use in test mode. Any future expiry date works; use any 3-digit CVV.
| Card number | Type | Behaviour |
|---|---|---|
| 4242 4242 4242 4242 | Credit | Succeeds |
| 4000 0566 5566 5556 | Debit | Succeeds |
| 4111 1111 1111 1111 | Credit | Succeeds (universal test number) |
| 4012 8888 8888 1881 | Credit | Succeeds (Braintree) |
| 4222 2222 2222 2 | Credit | Succeeds β 13-digit number |
Visa BIN ranges and lengths
- First digit: Visa numbers always start with 4.
- Length: 13, 16 or 19 digits. 16 is the standard for modern cards.
- BIN/IIN: the first 6β8 digits identify the issuing bank.
- Check digit: the last digit is calculated with the Luhn algorithm.
Enter any valid 6β8 digit Visa BIN in the generator above to produce numbers for that issuer range. Need something else? Try the Mastercard generator or the full test card numbers list.
FAQ
- Are these Visa numbers real?
- No. They are structurally valid test numbers with no balance and no associated account. They cannot be used for real payments.
- Why does my gateway reject a generated number?
- Most gateways only accept their own documented test BINs in test mode. Use the numbers in the table above for gateway-specific behaviour and generated numbers for format validation, UI testing and fuzzing.
- How do I check a Visa number?
- Use the Luhn validator or the BIN checker.