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 linked to your real credit card account. Instead of using your actual 16-digit card number online, you generate a unique number that works only for that transaction or merchant. The charge still goes to your real account, but the temporary number protects your actual card details from being stolen or misused.

When you use a virtual card number, the merchant sees and processes the temporary number, not your real one. If that temporary number is later compromised in a data breach, it cannot be used again because it has already expired or is locked to a single purchase. Your actual card number stays private.

Virtual cards are offered by most major credit card issuers — Visa, Mastercard, American Express, and Discover all have versions. Some banks and credit unions offer them too. You generate the numbers through your card issuer's app or website, usually in seconds, and they appear in your account right away.

Key Takeaways

  • Virtual card numbers are temporary numbers you generate from your real card account, used only for online purchases or subscriptions.
  • Each virtual number can be set to expire after one use, on a specific date, or after a certain spending limit is reached.
  • You generate virtual numbers through your card issuer's mobile app or website, and the process takes less than a minute.
  • Virtual cards protect your actual card number from being stolen in data breaches, but they do not protect you from your own mistakes like sending money to a scammer.
  • Some virtual card services charge a small fee, but most major card issuers offer them at no extra cost to cardholders.

Where to generate a virtual card number

The place you generate a virtual number depends on which card issuer you use. If your card is from a major bank like Chase, Bank of America, or Wells Fargo, log into your online banking portal or open the bank's mobile app. Look for a section called "Virtual Card," "Card Controls," "Card Management," or "Digital Wallet." The exact name varies by bank.

If your card is American Express, log into your Amex account online and look for "Virtual Card Numbers" under the Card section. For Discover, the feature is called "Discover Virtual Card Numbers" and is found in your account dashboard. Visa and Mastercard do not issue cards directly — they work through your bank — so you would use your bank's app instead.

Some card issuers also partner with third-party services. For example, some banks let you use a service called Privacy or Blur, which generate virtual numbers on your behalf. These services typically charge a monthly fee, though some offer a free tier with limited features. Check your card issuer's website or app to see which services they support.

Setting limits and expiration dates for virtual numbers

When you create a virtual card number, you can usually set rules for how and when it can be used. Most issuers let you choose one of these options: the number expires after a single transaction, it expires on a date you set, or it expires after you reach a spending limit you choose.

Single-use numbers are best for one-time purchases like buying something from a new online store where you are not sure if you trust the merchant. You generate the number, make the purchase, and the number becomes useless when ready after. If the merchant tries to charge it again — for a hidden subscription or unauthorized charge — the transaction will be declined.

Date-based expiration works well for recurring charges like a monthly subscription. You set the number to expire on the day before your subscription renews, forcing the merchant to ask for a new payment method. Spending limits are useful when you are buying from a merchant you trust but want to cap how much they can charge. If they try to charge more than your limit, the transaction fails.

Using a virtual card for online shopping

The process of using a virtual card number is identical to using a real card number. At checkout, enter the virtual card number in the card number field, use the expiration date and CVV that your card issuer provides for that virtual number, and complete the purchase as normal. The merchant has no way of knowing it is a virtual number — it processes like any other Visa, Mastercard, or Amex.

After the transaction completes, check your real card account to confirm the charge appears. It will show the merchant's name and the amount charged. If you set the virtual number to expire after one use, trying to use it again will be declined. If you set it to expire on a specific date, you can use it multiple times until that date arrives.

Virtual cards work with most online retailers, subscription services, and payment processors. However, some older websites or international merchants may have trouble processing them if their payment systems are outdated. If a virtual number is declined, you can fall back to your real card number for that purchase, or contact the merchant's support to ask if they accept virtual cards.

Virtual cards versus other security tools

Virtual cards are one layer of protection, but they work differently from other security features you may already use. A virtual card number protects your real card number from being exposed in a data breach, but it does not protect you from phishing scams or social engineering. If a scammer convinces you to send them money, a virtual card number will not stop you from doing so — you are still choosing to send the payment.

Virtual cards also do not replace fraud monitoring or purchase protection. Your card issuer still monitors your account for suspicious activity and will contact you if they spot something unusual. If an unauthorized charge appears on your account, you can still dispute it through your card issuer, whether the charge was made with a real or virtual number.

Two-factor authentication (the code you receive by text or app when logging in) protects your account from being hacked. A virtual card number protects your card details from being stolen during a transaction. Together, they create stronger security than either one alone. Use both: enable two-factor authentication on your card account and use virtual numbers for online purchases.

Fees and costs of using virtual cards

Most major credit card issuers offer virtual card numbers at no extra cost. If your card is from Chase, Bank of America, Discover, or American Express, you can generate as many virtual numbers as you want without paying a fee. The service is included in your regular card benefits.

If you use a third-party service like Privacy or Blur, those services may charge a monthly subscription fee. Privacy, for example, charges around $10 per month for unlimited virtual card generation, though pricing varies. Some of these services offer a free tier with a limited number of virtual cards per month. Check the service's website to see current pricing before you sign up.

Using a virtual card number does not change your interest rate, rewards rate, or any other terms of your credit card. You earn the same cash back or points on a virtual card purchase as you would on a regular card purchase. The virtual number is straightforward a different way to enter your card information — it does not change the underlying account.

When virtual cards do not work and what to do instead

Virtual cards work for most online transactions, but a few situations require your real card number. If you are renting a car, checking into a hotel, or making a purchase where the merchant needs to verify your identity in person, you will need to provide your real card. Virtual numbers cannot be used for these transactions because the merchant needs to match the card to your ID.

Some subscription services and merchants have outdated payment systems that do not accept virtual card numbers. If a virtual number is declined, contact the merchant's customer support and ask if they accept virtual cards. If they do not, you will need to use your real card number for that purchase. You can still use virtual numbers for other merchants.

If you lose access to your card issuer's app or website, you cannot generate new virtual numbers until you regain access. Keep your login credentials find and set up account recovery options (like a backup email or phone number) so you can regain access quickly if you get locked out.

Frequently Asked Questions

Can I use a virtual card number more than once?

Yes, if you set it to expire on a specific date or spending limit. Single-use virtual numbers decline after one transaction. Date-based numbers work for multiple purchases until the expiration date arrives. You can use a spending-limit number repeatedly until you hit the cap you set.

What happens if a merchant charges my virtual card number after it expires?

The transaction will be declined because the number no longer works. The merchant will receive a message that the card is invalid. You will not be charged. If the merchant needs to charge you again, you will need to generate a new virtual number or provide your real card number.

Does using a virtual card hurt my credit score?

No. Virtual card numbers are linked to your real account, so the charge counts toward your credit utilization and payment history the same way a regular purchase does. Your credit score is based on your real card account, not on which number you used to make the purchase.

Can I use a virtual card for in-person purchases?

No. Virtual card numbers work only for online purchases and phone orders. For in-person shopping, you need your physical card or a digital wallet like Apple Pay or Google Pay. Those digital wallets use tokenization (a similar security concept) but work differently than virtual card numbers.

What if my virtual card number is stolen?

Contact your card issuer when ready, just as you would if your real card number were stolen. The issuer can cancel the virtual number and investigate the unauthorized charge. If the virtual number was set to expire soon or had a low spending limit, the damage is usually limited. Your real card account is still protected because the thief only has the temporary 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.