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 card details online, you generate a unique number that works only for a single purchase or a specific merchant. The charge still goes to your real card, but the virtual number protects your actual card number from being stored or stolen.

When you use a virtual card number, the merchant sees and processes that temporary number, not your real one. If that merchant's system is breached or sells your data, the stolen number is useless because it either expires after one use or stops working after a set date. 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 bundle them into their mobile apps; others require you to visit a website or use a separate app to generate numbers.

Key Takeaways

  • Virtual card numbers are temporary numbers tied to your real credit card that you can use instead of your actual card details for online purchases.
  • You generate a new virtual number through your card issuer's app or website, usually in under a minute, and it appears in your account when ready.
  • Each virtual number can be set to work for a single transaction, a specific merchant, or a limited time period depending on your card issuer's rules.
  • Virtual cards protect your real card number from being stored by merchants or stolen in data breaches, but they do not change your liability or fraud protections.
  • You can use virtual cards for recurring subscriptions, one-time purchases, and free trials, though some merchants may reject them if their payment system is outdated.

How to generate a virtual card number

The process differs slightly by card issuer, but the basic steps are the same. Log into your credit card's mobile app or online portal and look for a section labeled "Virtual Card," "Card Controls," "Digital Wallet," or "Temporary Numbers." Some issuers put this under account settings; others have a dedicated tab on the home screen.

Once you find the virtual card section, click the button to generate a new number. The app will ask you to set a few details: the merchant name (optional but useful for tracking), a spending limit, and an expiration date. You can usually set the limit anywhere from a few dollars to your full credit line, and the expiration can be as short as one hour or as long as several years.

After you confirm, the app displays a complete virtual card number, expiration date, and CVV code — everything you need to make a purchase. Copy these details and use them at checkout just as you would your real card. The transaction posts to your account under the merchant name you entered, so you can track it easily.

Virtual cards for one-time purchases versus recurring charges

One-time purchases are the simplest use case. Generate a number, set it to expire after a single transaction or within a few hours, and use it at checkout. Once the purchase completes, that number stops working. This is ideal for shopping at unfamiliar websites or making a purchase from a merchant you do not plan to use again.

Recurring charges — subscriptions, monthly services, gym memberships — require a different approach. Set the virtual number to expire on or after the date your last payment is due. For example, if you are signing up for a three-month free trial that will auto-renew, set the expiration date three months out. When the trial ends and the charge would normally post, the expired number declines the payment, stopping the renewal automatically.

Some card issuers let you pause or reactivate a virtual number, which gives you more control over subscriptions. If you want to keep a service but prevent accidental charges, you can pause the number and reactivate it only when you are ready to pay. Check your issuer's app to see what controls are available.

Where virtual cards work and where they do not

Virtual cards work at most online retailers: Amazon, Target, Walmart, travel sites, and smaller e-commerce stores all accept them. They also work for phone and email orders, and many subscription services accept them without issue. If a merchant's payment system is modern and processes standard credit card numbers, a virtual card will go through.

Some merchants reject virtual cards because their payment systems are outdated or overly strict. Certain airlines, insurance companies, and government websites sometimes flag virtual numbers as suspicious or straightforward do not accept them. If a virtual card is declined, you have two options: use your real card number instead, or contact the merchant's customer service to ask if they accept virtual cards.

Virtual cards do not work for in-person purchases at physical stores or ATMs. They are online-only tools. If you need a card number for a phone order, a virtual card works fine — the merchant does not know it is temporary.

Virtual cards and fraud protection

Using a virtual card does not change your legal fraud protections. If someone uses your virtual card number fraudulently, you still have the same dispute rights as you would with your real card. Most credit cards offer zero liability for unauthorized charges, meaning you are not responsible for fraud.

The advantage of a virtual card is prevention, not just protection. Because the number expires or works only at one merchant, a thief cannot use a stolen virtual number at a different store or months later. The damage is contained to that one transaction, and you can dispute it when ready.

Virtual cards also reduce the number of places where your real card number is stored. Every merchant that stores your card details is a potential breach point. By using a virtual number instead, you keep your actual card number out of merchant databases entirely, lowering your overall risk.

Virtual cards versus other privacy tools

Virtual cards are one way to protect your card number online. Other tools serve similar purposes but work differently. A digital wallet like Apple Pay or Google Pay stores your card in an encrypted format and generates a one-time code for each transaction, but you can only use it on devices that support it. A payment service like PayPal or Square Cash lets you pay without sharing your card number at all, but you have to set up an account and fund it first.

Virtual cards are simpler than wallets for most online shopping because they work on any website — you just enter the number at checkout like a regular card. They are more flexible than payment services because you do not need a separate account. The trade-off is that you have to generate a new number for each purchase or merchant, which takes a minute or two.

Many people use virtual cards alongside other tools. You might use a digital wallet for everyday online shopping, a virtual card for unfamiliar merchants or free trials, and your real card for in-person purchases. The combination gives you the most control and the lowest risk.

Common issues and how to fix them

If a virtual card is declined, first check that you entered the number, expiration date, and CVV correctly. Virtual card numbers are long and straightforward to mistype. If the details are correct, the merchant's system may not accept virtual cards — contact their customer service to confirm, or use your real card instead.

If a charge posts to your account but you did not authorize it, dispute it when ready through your card issuer's app or website. Report the transaction as fraudulent, and your issuer will investigate. Even though you generated the virtual number, if someone else used it without permission, you can still dispute it.

If you forget which virtual number you used for a subscription and need to update or cancel it, log into your card issuer's app and look at your virtual card history. Most issuers show you every number you generated, the merchant it was used for, and the current status. You can use that information to contact the merchant and update your payment method.

Frequently Asked Questions

Can I use a virtual card for a free trial?

Yes. Generate a virtual card number and set the expiration date to the day before your free trial ends. When the service tries to charge you after the trial, the expired number will decline the payment and stop the renewal. This prevents accidental charges without having to remember to cancel manually.

Do virtual cards cost extra money?

No. Virtual cards are a free feature included with most credit cards. Your card issuer does not charge you to generate numbers or use them. You pay the same interest and fees as you would with your real card number.

What happens if I lose my phone after generating a virtual card?

The virtual number is tied to your credit card account, not your phone. Even if you lose your device, the number still works for purchases you have already made, and you can log in from another phone or computer to manage it. Generate a new number or pause the old one from any device that can access your card account.

Can merchants see that I am using a virtual card?

No. To the merchant, a virtual card number looks exactly like a real card number. They cannot tell it is temporary or linked to another number. They only see the transaction and the number you used.

Do virtual cards work with PayPal or other payment apps?

Some do, depending on the app and your card issuer. PayPal, Venmo, and similar services sometimes accept virtual card numbers, but not always. Try entering the virtual number at checkout — if the app rejects it, use your real card number instead or contact the app's support team.

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.