A secure testing tool for payment system developers and QA professionals. All test numbers are non-functional and strictly for development environments.

Visa Card Generator

Generate Visa test card numbers that start with 4 and pass the Luhn (MOD 10) checksum. The generator is pre-filled with BIN 424242 β€” Stripe's default Visa test card. Use it for checkout testing, gateway integration and QA. No sign-up, everything runs in your browser.

*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 4242CreditSucceeds
4000 0566 5566 5556DebitSucceeds
4111 1111 1111 1111CreditSucceeds (universal test number)
4012 8888 8888 1881CreditSucceeds (Braintree)
4222 2222 2222 2CreditSucceeds β€” 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.

Free payment testing tools