How Virtual Credit Cards Work and When to Use Them
What a virtual credit card is and how it works
A virtual credit card is a temporary card number that your credit card issuer generates for you to use online. Instead of typing your actual card number into a website, you use this temporary number instead. The charge still comes from your real account, but the merchant never sees your real card details.
Here's how the process works in practice: You log into your credit card's app or website, find the virtual card option (sometimes called "digital card" or "card controls"), and generate a new number. That number comes with its own expiration date and security code. You copy it into the checkout form just like you would a regular card number. When the transaction processes, it connects to your real account behind the scenes, but the temporary number is what the website stores.
The temporary number typically expires after one use or after a set time period — often 30 days or a year, depending on your card issuer and how you set it up. Once it expires, that number becomes useless to anyone who might have stolen it. If you want to shop at the same store again, you generate a fresh number.
Key Takeaways
- Virtual card numbers are temporary numbers your credit card issuer creates for online shopping, and your real card number stays hidden from merchants.
- Each virtual number can expire after one purchase or after a set time period, so a stolen number has a limited window of usefulness.
- Not all credit card issuers offer virtual cards — check your card's app or website to see if the feature is available to you.
- Virtual cards work best for one-time purchases and subscriptions you plan to cancel, but they can complicate returns and recurring charges.
- Virtual cards reduce fraud risk but do not protect you from your own mistakes, like accidentally ordering from a scam website.
Which credit card issuers offer virtual card numbers
Major issuers including Capital One, Citi, Bank of America, and American Express all offer virtual card numbers to their cardholders. Smaller banks and credit unions vary — some have the feature, others do not. The easiest way to find out is to open your card's mobile app and look for a menu option labeled "Virtual Card," "Digital Card," "Card Controls," or "Temporary Card Number."
If you do not see the option in your app, log into your online account through a web browser and search the help section for "virtual card" or "temporary card number." If neither location has it, contact your card issuer's customer service line to ask whether the feature is available on your specific card product. Some issuers only offer virtual cards to certain account types or credit tiers.
How to generate and use a virtual card number
The steps vary slightly by issuer, but the general process is the same. Open your card's app, navigate to the card details or card controls section, and look for a button that says "Generate Virtual Card" or "Create Temporary Number." Tap or click it. The app will show you a new 16-digit card number, an expiration date, and a three-digit security code (CVV). Some apps let you set how long the number lasts before it expires — you might choose "one transaction," "30 days," or "one year."
Copy the temporary number and security code, then go to the website where you want to make your purchase. At checkout, paste the virtual number into the card number field, enter the expiration date and CVV exactly as they appear in your app, and complete the purchase. The transaction will post to your real account within a day or two, just like any other credit card charge.
Some issuers let you set spending limits on each virtual number before you generate it. For example, you might create a number that only works for a single $50 charge, or a number that caps out at $200 total. This adds another layer of protection: even if someone steals the number, they cannot charge more than the limit you set.
When virtual cards make sense and when they do not
Virtual cards are most useful for one-time purchases on websites you do not fully trust or have never used before. If you are buying from a small retailer, a marketplace seller, or a site with a reputation you are unsure about, a virtual number keeps your real card details out of their system. If that site gets hacked or sells customer data, the stolen number is already expired and worthless.
Virtual cards also work well for subscriptions you plan to cancel soon. Generate a number specifically for that free trial or short-term membership, set it to expire in 30 days, and you do not have to remember to cancel before you get charged. The expired number will simply decline when the company tries to renew.
Virtual cards become a headache for recurring charges you want to keep. If you use a virtual number for a subscription you plan to stay with for years, you will need to update your payment method every time the number expires. Some issuers let you set a virtual number to renew automatically, but not all do. For bills you pay regularly — streaming services, insurance, utilities — your real card number is simpler.
Returns and refunds also complicate virtual card use. If you buy something with a temporary number and need to return it, the refund has to go back to that same temporary number. If the number has already expired, the refund may fail or take longer to process. Check the return window before you use a virtual card for a purchase you might send back.
How virtual cards reduce fraud risk
Virtual cards shrink your fraud risk in two ways. First, your real card number never reaches the merchant's website or payment system. If that company's database gets breached, hackers find only the temporary number, which is already useless because it has expired or will expire soon. Your actual account number stays safe in your credit card issuer's system.
Second, the temporary number itself is limited in scope. You can set it to work only at one merchant, only for one transaction, or only up to a certain dollar amount. A thief who steals the number cannot use it anywhere else or charge more than the limit you set. This is different from your real card, which works everywhere and has your full credit limit attached to it.
Virtual cards do not protect you from your own mistakes, though. If you enter your virtual card number into a fake website that looks real, you will still lose money. The fraud protection comes from limiting what a stolen number can do, not from preventing you from handing it over in the first place. Always verify you are on the real website before you enter any card number, temporary or not.
Virtual cards versus other payment methods
Virtual cards sit between your real credit card and other payment methods like digital wallets and buy-now-pay-later services. A digital wallet like Apple Pay or Google Pay also hides your real card number from merchants, but it works differently: your phone generates a one-time code for each transaction, and the payment processes through the wallet app rather than through the website's checkout form. Digital wallets work in stores and online, while virtual cards work only online.
Buy-now-pay-later services like Affirm or Klarna do not use your credit card at all — they lend you the money directly and you repay them in installments. They offer different protections and different costs than virtual cards. Virtual cards are simpler if you just want to hide your real card number; they do not change how you pay or what you owe.
For maximum security on a single purchase, you could combine methods: use a virtual card number in a digital wallet, which gives you two layers of protection. Most issuers let you add your virtual card to Apple Pay or Google Pay just like you would your real card.
Frequently Asked Questions
Can I use a virtual card number in a physical store?
No. Virtual card numbers work only for online purchases and phone orders where you type in the card number. They do not work at checkout counters or ATMs. For in-store shopping, use your physical card or a digital wallet like Apple Pay.
What happens if I lose track of which virtual number I used for which purchase?
Your credit card app keeps a record of every virtual number you generated and which transactions used it. Open your app and look at your transaction history or virtual card history — you will see the temporary number, the merchant, the amount, and the date. This record helps you track subscriptions and dispute charges if needed.
Can I reuse the same virtual card number?
That depends on how your issuer set it up. Some virtual numbers expire after one use, so you cannot reuse them. Others stay active for 30 days or a year, and you can use them multiple times at the same merchant or different merchants. Check your app to see the expiration rules for each number you generate.
Do virtual cards help if my credit card number is already stolen?
No. Virtual cards protect you going forward by keeping your real number hidden from new merchants. If your actual card number has already been compromised, you need to contact your issuer to report the fraud and request a new physical card. Virtual cards do not fix a number that is already in the wrong hands.
Will using a virtual card hurt my credit score?
No. Virtual card numbers are just temporary versions of your real card — they do not change how your account reports to credit bureaus. Charges made with a virtual number count toward your credit utilization and payment history exactly the same way as charges with your real card number.