Skip to main content

How Virtual Credit Cards Work and When to Use Them

A virtual credit card is a temporary card number that works like a regular credit card but exists only in your digital wallet or payment app

Instead of carrying a physical plastic card, you get a unique 16-digit number, expiration date, and security code that you can use to pay online or through your phone. The number is linked to your actual credit card account, so the charges go on your regular bill. Most virtual cards are single-use or set to expire after one transaction, which means if a retailer's website gets hacked, that stolen number is already worthless.

Virtual cards come from your credit card issuer — the bank or company that issued your physical card. You request one through their app or website, and it generates instantly. Some cards give you one number per purchase. Others let you create a number that works for multiple transactions at the same merchant, or set a spending limit before you hand over the number.

Key Takeaways

  • Virtual card numbers are temporary and often single-use, so a stolen number cannot be used again after your purchase completes.
  • You request a virtual card through your credit card issuer's app or website, and it appears instantly without waiting for mail.
  • Virtual cards work for online shopping, subscriptions, and phone orders, but not for in-person purchases at a store or gas pump.
  • Not every credit card issuer offers virtual cards yet, so check whether your bank or card company has this feature before you need it.

How a virtual card number protects your real card details

When you use a virtual card number instead of your actual card number, the merchant never sees your real 16-digit number, expiration date, or security code. If that merchant's database gets breached, hackers get a fake number that is already expired or tied to a single transaction. Your actual card number stays hidden.

This matters because your real card number is the key to your account. If someone steals it, they can try to use it at other stores, set up recurring charges, or sell it on the dark web. A virtual number that expires after one use cannot do any of those things. Even if a virtual number is compromised before you finish your purchase, the issuer can cancel it and issue you a new one in seconds.

Which credit card issuers offer virtual cards

Major issuers including Capital One, Citi, Bank of America, and American Express offer virtual card numbers to their cardholders. Smaller banks and credit unions may not. The feature is usually free and built into the card issuer's mobile app — you do not pay extra to create or use a virtual number.

To find out whether your card issuer offers this feature, open their app or log into your online account and look for a menu option like "Virtual Card," "Card Controls," or "Secure Shopping." If you do not see it, contact the issuer's customer service line and ask whether virtual cards are available for your account. Some issuers roll out the feature to customers gradually, so it may become available to you later even if it is not there now.

Virtual cards versus other payment methods for online shopping

Payment MethodHow It WorksBest ForMain Drawback
Virtual credit cardTemporary card number linked to your credit card accountOne-time online purchases, new merchants you do not trustOnly works online; not all issuers offer it
Digital wallet (Apple Pay, Google Pay)Your real card number is encrypted and stored on your phoneIn-person shopping, online purchases, contactless paymentsRequires a compatible phone and merchant terminal
PayPal or similar serviceYou give the service your card details once; merchants see only your account nameRecurring subscriptions, merchants you use oftenAdds a middleman; some merchants do not take it
Your actual credit card numberYou type or swipe your real 16-digit numberMerchants you trust, in-person purchasesHighest risk if the merchant is breached

Virtual cards are strongest when you are buying from a retailer for the first time or one with a reputation for data breaches. They work only online, so they cannot replace your physical card at a store or gas pump. Digital wallets like Apple Pay and Google Pay are better for in-person shopping because they encrypt your real card number and work at most checkout terminals. PayPal and similar services are better for subscriptions because they let you manage recurring charges in one place.

Setting spending limits and controlling virtual card numbers

Some card issuers let you set a spending cap on a virtual card before you create it. This means if you are buying a $50 item, you can tell the system to create a number that will only accept charges up to $50. If a merchant tries to charge more — or if the number is stolen and someone tries to use it — the transaction fails.

You can also control how long a virtual card number stays active. Some issuers let you choose whether it expires after one transaction, after 30 days, or after a year. Others set the expiration automatically. Check your card issuer's app to see what options you have. Most let you delete or deactivate a virtual card number at any time, which instantly stops it from working.

When virtual cards do not work and what to do instead

Virtual card numbers do not work for in-person purchases, subscriptions that require a saved card on file, or merchants that verify your billing address. Some older websites and smaller retailers do not accept virtual numbers because their payment systems cannot process them. If a virtual card is declined, you have a few options: use your physical card instead, try a different payment method like PayPal, or contact the merchant to ask whether they accept virtual cards.

Subscriptions are tricky because the merchant needs to charge you repeatedly, and a single-use virtual number stops working after the first charge. If your card issuer offers multi-use virtual numbers, you can create one specifically for that subscription and set it to expire after a year. Otherwise, use your physical card or a service like PayPal that lets you manage recurring charges.

Frequently Asked Questions

Can I use a virtual card number at a gas pump or store?

No. Virtual card numbers work only for online purchases, phone orders, and mail orders. At a gas pump or store checkout, you need your physical card or a digital wallet like Apple Pay. If you want to protect your card details at a physical location, use a digital wallet instead.

What happens if a virtual card number is stolen before I finish my purchase?

If the number is stolen before the transaction completes, the merchant will not be able to charge it because it has not been activated yet. If it is stolen after the charge goes through, the number is already expired or single-use, so the thief cannot use it again. Contact your card issuer if you notice unauthorized charges.

Do I pay a fee to create or use a virtual card?

No. Virtual cards are a free feature offered by most major credit card issuers. You do not pay to create a number, use it, or cancel it. The feature is built into your card issuer's app.

Can I use a virtual card to pay bills or make transfers?

Virtual cards work for online shopping and phone orders, but not for bill payments or bank transfers. For those, use your actual card number or your bank's bill pay system. Some issuers may have restrictions on what types of merchants accept virtual cards.

What if my card issuer does not offer virtual cards?

If your bank or card company does not offer virtual cards, you can use a digital wallet like Apple Pay or Google Pay for online shopping, or try a third-party service like Privacy or Blur that generates virtual numbers for you. These services charge a fee or subscription, unlike your card issuer's free virtual cards.