Skip to main content

HomeAll guides

How to Use a Virtual Credit Card for Online Shopping and Payments

What a Virtual Credit Card Is and How It Works

A virtual credit card is a temporary card number generated by your credit card issuer or a third-party service. It looks like a regular 16-digit card number, but it exists only in digital form — there is no physical plastic. When you use it to make an online purchase, the transaction goes through your actual credit card account, but the merchant never sees your real card details.

The number is tied to your real account and has its own expiration date and security code. Some virtual cards work only once; others work for multiple purchases at the same merchant or across different sites. The key difference from your regular card is that if a merchant's database is hacked or a website stores your number, the stolen number is useless because it either expires after one use or is linked to nothing of value.

Virtual cards are offered by major issuers including Citi, Bank of America, Capital One, and American Express. Some banks call them by different names — Citi calls theirs Virtual Account Numbers, while American Express uses Amex Digital. A few third-party apps like Privacy and Blur also generate virtual numbers, though these typically work with a linked debit or credit card rather than replacing it.

Key Takeaways

  • Virtual card numbers are generated through your bank's app or website and appear in your account within seconds, ready to use when ready for online purchases.
  • Each virtual number is tied to your real account but keeps your actual card details hidden from the merchant, reducing the risk if that site is breached.
  • You can set spending limits on individual virtual cards, so a compromised number cannot be used to charge more than you authorized.
  • Virtual cards expire on a schedule you control — some after a single use, others after a set date or when you manually close them.
  • Your credit card statement shows the purchase under the merchant's name, not under a separate virtual card entry, so tracking spending works the same way.

How to Generate a Virtual Card Number Through Your Bank

Log into your credit card issuer's mobile app or website. Most banks place the virtual card tool in the account settings or card management section. Look for a button or link labeled "Virtual Card," "Virtual Account Number," "Digital Card," or "Card Controls." Click it to open the virtual card generator.

The app will ask you to name the card (for example, "Amazon" or "Subscription Services") so you can track which virtual number you used where. Some banks let you set a spending limit — this is useful because it caps how much a merchant can charge even if the number is compromised. You can also choose an expiration date. Some cards expire after 30 days; others let you pick a longer window or set them to expire after the first use.

Once you confirm your choices, the bank generates the number when ready. You will see a 16-digit card number, expiration date, and CVV (security code). Copy these details or screenshot them — you will need them to complete your purchase. The number is now active and ready to use.

Using Your Virtual Card to Make a Purchase

At checkout on any website, enter the virtual card number in the card number field exactly as you would your regular card. Use the expiration date and CVV that the bank provided for that virtual number, not your real card's details. The payment will process normally, and the merchant will see only the virtual number, not your actual card information.

The purchase will appear on your regular credit card statement under the merchant's name. You will not see a separate line item for the virtual card itself — it is straightforward a different number pointing to the same account. Your rewards, cash back, and payment due date all work as they normally do.

If the website asks you to save the card for future purchases, you can choose to do so, but remember that the virtual number will expire on the date you set. Once it expires, any saved version of that number will be declined. If you plan to make repeat purchases from the same merchant, you can either generate a new virtual number each time or create one virtual card specifically for that merchant and set it to expire much later.

Setting Spending Limits and Controlling Your Virtual Cards

Most banks let you set a maximum amount that each virtual card can charge. For example, if you are buying a single item for $50, you can cap that virtual card at $50.01 or $60. If a fraudster somehow obtains the number, they cannot charge more than your limit, even if they try.

You can also pause or close a virtual card at any time through your bank's app. If you notice suspicious activity or straightforward no longer need a card you created for a one-time purchase, you can deactivate it when ready. Once closed, any attempt to use that number will be declined.

Some banks show you a list of all active virtual cards in your account, along with where you used each one and how much you have spent. This makes it straightforward to see which merchants have your virtual numbers and to close cards you no longer use. Check this list periodically to clean up old cards and reduce the number of places that hold your card information.

Virtual Cards for Subscriptions and Recurring Charges

Virtual cards work well for subscription services because you can create one number per subscription and set it to expire on a specific date. When the subscription renews, the charge will go through normally. When you want to cancel, you can straightforward close the virtual card, and the next renewal attempt will be declined — no need to contact the company or navigate their cancellation process.

This approach also protects you if a subscription service is breached. The stolen number is tied to that one subscription and cannot be used elsewhere. If the service tries to charge you after you have closed the card, the charge will fail, and you will not be overcharged.

Keep in mind that if you close a virtual card before a subscription renews, the company will not be able to charge you, but they also will not notify you that the card failed. You may not realize the subscription has lapsed until you try to use the service. Some people prefer to let the card stay active until they are ready to cancel, then close it deliberately.

Risks and Limitations of Virtual Cards

Virtual cards protect your real card number, but they do not protect you from other forms of fraud. If you are tricked into sending money to a scammer or if you authorize a charge that turns out to be fraudulent, the virtual card number does not prevent that. The protection works only if the merchant's database is hacked or if someone intercepts your card details during transmission.

Not every website accepts virtual card numbers. Some merchants, particularly older sites or those with strict payment processing rules, may reject a virtual number or flag it as suspicious. If this happens, you will need to use your real card instead. Subscription services sometimes have trouble processing renewals on virtual cards if the card expires before the next billing cycle, so you may need to update the payment method manually.

Virtual cards also do not help if you are making a purchase that requires a physical card — for example, renting a car or checking into a hotel. In those cases, you must use your actual card. Additionally, some banks limit how many virtual cards you can create or how often you can generate new ones, so check your issuer's rules if you plan to use them frequently.

Frequently Asked Questions

Do I pay interest or fees on a virtual card?

No. A virtual card is straightforward a different number for the same account, so you pay the same interest rate and annual fee (if any) as you do on your regular card. The bank does not charge extra for generating virtual numbers. Some third-party virtual card apps do charge a subscription fee, so read their terms before signing up.

Can I use a virtual card at an ATM or in a store?

No. Virtual cards exist only as numbers and cannot be used anywhere that requires a physical card or chip reader. They work only for online purchases and phone orders where you enter the card number manually.

What happens if a merchant charges my virtual card after I close it?

The charge will be declined because the card number no longer exists. The merchant will not be able to process the transaction. If you closed the card to cancel a subscription, the company will see a failed payment but typically will not contact you — you may not know the subscription has lapsed until you try to use it.

Can I transfer a balance to a virtual card?

No. Virtual cards are tied to your existing account and cannot be used for balance transfers or cash advances. They work only for purchases.

Is a virtual card the same as a digital wallet?

No. A digital wallet like Apple Pay or Google Pay stores your real card number and uses encryption to protect it during payment. A virtual card generates a completely different, temporary number. They serve different purposes — digital wallets are for in-store and online payments, while virtual cards are mainly for online shopping where you want to hide your real card number.

This guide is for general information only and is not medical, financial, legal, or other professional advice. For decisions specific to your situation, consult a qualified professional. See our Editorial Policy.