What a Virtual Credit Card Is and Why You'd Use One

A virtual credit card is a temporary card number that your credit card issuer generates for you to use online instead of your real card number. It looks like a regular 16-digit card number, but it's linked to your actual account and expires after a set time or a single transaction. You never give a merchant your real card details.

The main reason to use one is security. If a website gets hacked or a merchant misuses your information, the thief has a number that either doesn't work anymore or is worthless because it's tied to nothing. Your actual card number stays hidden. Some people also use virtual cards to control spending — you can set a spending limit on the temporary number so you don't accidentally overspend, or use a different virtual card for each subscription so you know exactly which service is charging you.

Virtual cards are offered by some major issuers (Citi, Capital One, and Discover have them, though names and features vary) and by some smaller banks. Not every card comes with this feature, so you'll need to check whether yours does.

Key Takeaways

  • Virtual card numbers are generated by your bank or card issuer and work only for online purchases or specific merchants you choose.
  • You request a virtual number through your card issuer's app or website, and it appears instantly or within minutes.
  • Each virtual number can be set to expire after one use, after a set date, or after you manually delete it — you control the timeline.
  • Virtual cards protect your real card number from being stolen or misused, but they don't protect you from fraud if you authorize a bad charge yourself.
  • If a virtual card number is declined, it usually means the merchant requires a billing address match or the number has already expired.

How to Generate a Virtual Card Number

The process differs slightly by issuer, but the basic steps are the same. Log into your credit card's mobile app or online account portal. Look for a section called "Virtual Card," "Card Controls," "Digital Wallet," or sometimes "Shopping Tools" — the exact name depends on your bank.

Click the button to generate a new virtual number. Most issuers let you set a few details before it's created: a spending limit (optional, but useful), an expiration date or "single use" setting, and sometimes a merchant category or specific merchant name. Some let you nickname the card so you remember what it's for — for example, "Amazon" or "Subscription Services."

The virtual number appears on screen immediately. Copy it along with the expiration date and CVV (the three-digit security code). Use these details exactly as you would a physical card number when checking out online. The charge will post to your real account, but the merchant only ever sees the temporary number.

Setting Limits and Expiration Dates

Most virtual card programs let you choose how long the number stays active. Your options usually include: single-use (the number works once, then dies), a specific expiration date you set, or a rolling expiration (the number lasts 30 or 90 days, for example). Choose based on what you're buying.

For a one-time purchase like a hotel booking, single-use makes sense — the number works for that transaction and becomes useless afterward. For a subscription you plan to keep, set an expiration date three or six months out so the merchant can charge you multiple times without the number dying mid-subscription. For a service you're testing, a 30-day expiration lets you cancel before the number expires if you don't want to renew.

You can also set a spending cap on the virtual number. If you set a limit of $50, the card will be declined if a merchant tries to charge more than $50 in total. This is useful for subscriptions where you want to make sure you're not overcharged, or for testing a new merchant.

When and Why a Virtual Card Gets Declined

A virtual card number can be declined for several reasons. The most common is that the number has already expired — either because you set it to single-use and already used it, or because the expiration date you chose has passed. Check your card issuer's app to see the status of the number you used.

Some merchants require a billing address match before they'll accept any card. Virtual card systems usually don't let you enter a different billing address, so if the merchant's system is strict about this, the charge may be declined. Try entering your real billing address (the one on file with your bank) when prompted, or contact the merchant's customer service to ask if they can override the check.

Occasionally a merchant's system doesn't recognize virtual card numbers at all, especially older websites or international merchants. If this happens, you'll need to use your real card number instead, or find a different way to pay.

Virtual Cards and Subscription Services

Virtual cards are especially useful for subscriptions because they let you isolate each charge. Create a separate virtual card number for each subscription service you use — one for streaming, one for a gym app, one for cloud storage. Set each to expire a month or two after you expect to cancel, or set a spending limit equal to one or two months of charges.

If a subscription starts charging you without permission, or if you forget to cancel and get charged after your trial ends, you can dispute the charge with your bank. Because you used a virtual number instead of your real card, the merchant doesn't have your actual card details to use elsewhere. You can also simply delete the virtual card from your account, which stops future charges from going through (though you should still cancel the subscription formally to avoid other issues).

Some people create a new virtual card each month for subscriptions, which makes it obvious when a service is charging you something unexpected — the charge won't go through because the old number has expired.

Virtual Cards vs. Other Security Tools

Virtual cards are one layer of protection, but they're not the only one. Two-factor authentication (a code texted to your phone or generated by an app) protects your account from being hacked even if someone gets your password. Purchase protection (offered by most card issuers) lets you dispute a charge if you never authorized it or if the item doesn't arrive. Virtual cards work alongside these tools, not instead of them.

Virtual cards also don't protect you from your own mistakes. If you intentionally give a merchant your virtual card number and they charge you for something you didn't want, that's not fraud — it's a legitimate charge you authorized. You'd have to dispute it as a billing error, which is harder to win than a fraud claim. Always read the terms before you buy, and make sure you understand what you're authorizing.

If your card issuer doesn't offer virtual cards, you can use a third-party service like Privacy or Blur, which generate virtual numbers for you and link them to a payment method you choose. These work similarly to bank-issued virtual cards but come with their own fees and terms.

Troubleshooting Common Problems

If a virtual card number isn't working, first check whether it has expired. Open your card issuer's app and look at the status of the number. If it shows "expired" or "used," that's why the charge was declined. Generate a new number and try again.

If the number hasn't expired but is still being declined, try entering your full billing address (street, city, state, ZIP) exactly as it appears on your bank statement. Some merchants' systems are picky about this. If that doesn't work, contact the merchant's customer service and ask whether they accept virtual card numbers — some older systems don't.

If you generated a virtual card but can't find the number in your app, log out and log back in, or try a different browser or device. Sometimes the app needs to refresh to show the new number. If it still doesn't appear, contact your card issuer's customer service.

Frequently Asked Questions

Can I use a virtual card number at a physical store or ATM?

No. Virtual card numbers work only for online purchases and some phone or mail orders. They don't work at physical stores, gas pumps, or ATMs because those require a physical card or a contactless payment method tied to your phone. For in-person shopping, use your physical card or a digital wallet like Apple Pay or Google Pay.

If I dispute a charge made with a virtual card, does it affect my real card?

Yes. The virtual card is linked to your real account, so any dispute or chargeback goes through your actual card. The virtual number itself is just a mask — the money comes from and goes back to your real account. Disputing a charge with a virtual number works the same way as disputing a charge with your physical card.

What happens if a merchant saves my virtual card number for future charges?

If you set the virtual number to expire on a specific date, the merchant's system will try to charge it again on the next billing cycle and the charge will be declined because the number is no longer active. This is actually useful — it forces you to generate a new number and decide whether you want to renew the subscription. If you want the subscription to continue, you'll need to log into your account with that merchant and update the card number.

Do virtual cards cost extra money?

No. Virtual card numbers are a free feature offered by your card issuer as part of your account. There's no fee to generate one, use one, or delete one. If you use a third-party virtual card service instead of your bank's built-in feature, that service may charge a monthly fee.

Can I use a virtual card to pay bills or transfer money to another person?

Virtual cards work for online purchases and some merchant payments, but they don't work for peer-to-peer transfers (like Venmo or PayPal to a friend) or for paying bills through your bank's bill-pay system. For those, you'll need to use your real card number or a different payment method. Check with your specific card issuer, as some may have different rules.