What a virtual credit card is and how it works
A virtual credit card is a temporary card number linked to your real credit account. Instead of using your actual card details online, you generate a unique number that works for one purchase, one merchant, or a set time period — depending on which bank or card issuer you use. The transaction still draws from your real account, but the merchant never sees your actual card number.
When you make a purchase with a virtual number, the payment processes normally. Your bank or card issuer routes the transaction to your real account behind the scenes. If the merchant's website is hacked or the virtual number is stolen, that temporary number is either already expired or useless to anyone else — it cannot be used again or transferred to a different merchant.
Most virtual card services are built into your existing credit card account or banking app. You do not need a separate card or a new account. You log in, generate a number when you need one, and use it the same way you would type in a physical card number at checkout.
Key Takeaways
- Virtual card numbers are temporary, unique numbers tied to your real credit account that expire after one use, one merchant, or a set date.
- You generate a virtual number through your bank's app or website, then use it for online purchases instead of your actual card details.
- If a virtual number is stolen or a merchant is breached, that number cannot be used again or transferred to another store.
- Most credit card issuers and some banks offer virtual cards at no extra cost as part of your existing account.
- Virtual cards work for online shopping, subscriptions, and one-time purchases, but not for in-person payments or ATM withdrawals.
How to generate and use a virtual card number
The exact steps depend on your bank or card issuer, but the process is similar across most platforms. Log into your credit card app or online banking portal. Look for a menu option labeled "Virtual Card," "Card Controls," "Temporary Card," or "Generate Card Number" — the name varies by institution.
When you find it, you will see options to set the details of your virtual number. You can usually choose whether the number expires after one transaction, after a set number of days, or on a specific date. Some services let you set a spending limit for that number, so even if it is compromised, the damage is capped. A few issuers let you assign the virtual number to a specific merchant only, which means it will not work anywhere else.
Once you generate the number, your app displays a full card number, expiration date, and CVV (the three-digit security code on the back of a physical card). Copy these details and enter them at checkout just as you would for a regular card. The transaction completes normally, and the merchant has no way to know it is a virtual number.
After the transaction posts or the expiration date passes, that number is dead. You cannot use it again, and neither can anyone else.
Which banks and card issuers offer virtual cards
Most major credit card issuers now offer virtual card numbers at no cost. Visa, Mastercard, and American Express all have versions. Capital One, Chase, Bank of America, Citi, and Discover all include virtual card tools in their apps. If you have a credit card from one of these issuers, log into your app and search for the feature — it may already be available to you.
Some banks also offer virtual cards through their checking or savings accounts, though this is less common. A few fintech banks and digital-only banks include virtual card generation as a standard feature. If your current bank does not offer it, you can check their website or call customer service to ask whether it is coming or whether you can request it.
The feature is free. No subscription, no monthly fee, no charge per virtual number. You pay only for the purchase itself, just as you would with your physical card.
When virtual cards protect you and when they do not
Virtual cards are most useful when you are shopping on a website you do not fully trust, buying from a new merchant, or signing up for a subscription you might cancel. The temporary number means that even if the site is hacked or the company sells your data, your real card number stays private. A thief cannot use the virtual number at a different store or withdraw cash from an ATM.
Virtual cards do not protect you from fraud you commit yourself — for example, if you authorize a charge and then claim you did not. They also do not protect you if you type the wrong address or accidentally buy the wrong item. Those are still your responsibility, and you would handle them the same way you would with a physical card: by contacting the merchant or disputing the charge with your bank.
Virtual cards also do not work for every type of purchase. You cannot use them at gas pumps, for in-person retail, or at ATMs. Some subscription services and airlines have trouble processing virtual numbers because their systems are older and expect a physical card. If a virtual number is declined, you can fall back to your real card number for that transaction.
Virtual cards versus other fraud protection tools
Virtual cards are one layer of protection, but they work alongside other tools your bank already offers. Most credit cards include fraud monitoring, which flags unusual charges and alerts you. You also have chargeback rights — if a merchant charges you twice or charges you for something you never received, you can dispute it with your bank and usually get your money back.
Virtual cards are different because they prevent the fraud before it happens. A stolen virtual number cannot be used. Fraud monitoring and chargebacks fix the problem after the fact. Using both together — generating a virtual number for risky purchases and relying on fraud monitoring for everyday spending — gives you the most protection.
Some people also use a separate low-limit credit card for online shopping, or they use a digital wallet like Apple Pay or Google Pay, which also masks your real card number. Virtual cards are simpler than opening a new account and more widely accepted than some digital wallets, so they are often the easiest option.
Setting spending limits and expiration dates on virtual cards
Most virtual card services let you control how long the number lasts and how much can be charged to it. When you generate a number, you can usually choose an expiration date — anywhere from one day to several months out. If you are buying a single item, set it to expire the next day. If you are signing up for a monthly subscription, set it to expire after the first charge posts, or set it to last three months if you want to keep the subscription active.
Spending limits work the same way. If you are buying a $50 item, you can set the virtual number to allow only $50 in charges. If the merchant tries to charge more — for example, if they add a tip or a shipping fee you did not expect — the charge will be declined. You can then generate a new number with a higher limit or use your real card.
These controls are optional. You do not have to set a limit or an expiration date if you do not want to. But using them adds another layer of protection, especially for subscriptions or merchants you are unsure about.
Frequently Asked Questions
Can I use a virtual card number for a subscription I plan to keep?
Yes. Set the expiration date to a few months out, or set it to never expire. When the subscription renews, the charge will go through normally. If you want to cancel the subscription later, you can do so through the merchant's website or app — the virtual number does not prevent cancellation. Some people generate a new virtual number each month for subscriptions they want to monitor closely.
What happens if a virtual card number is declined?
The transaction straightforward fails, and you are not charged. This usually happens because the merchant's system does not accept virtual numbers, the number has expired, or you have hit the spending limit you set. You can generate a new number with a higher limit, use your physical card, or contact the merchant to ask if they accept virtual cards.
Do virtual cards help if I lose my physical card?
Virtual cards do not replace your physical card. If you lose your physical card, you still need to contact your bank to freeze or replace it. Virtual cards are a separate tool for online shopping. You can use virtual numbers to shop online while your physical card is being replaced, but you cannot use them at stores or ATMs.
Can I see virtual card transactions in my statement?
Yes. Virtual card charges appear in your regular account statement and transaction history, just like any other purchase. The merchant name shows up the same way it would if you had used your physical card. You can track spending and dispute charges normally.
Is there a limit to how many virtual cards I can generate?
Most banks do not limit the number of virtual cards you can create. You can generate as many as you need. Some issuers may have a soft limit — for example, a maximum of 10 active virtual numbers at once — but this is rare and usually not enforced unless you are generating hundreds per day.