What a virtual credit card number is
A virtual credit card number is a temporary set of digits your bank or credit card company generates for you to use online instead of your real card number. It looks like a regular 16-digit card number, but it's tied to your actual account and expires after one use or on a date you set. When you use it to buy something, the merchant sees the virtual number, not your real one.
The real card number stays hidden. If a website gets hacked or a merchant misuses your information, the thief has a number that either no longer works or was never connected to your actual account in the first place. Your bank or card issuer controls when the virtual number stops working, so you can shut it down when ready if something feels wrong.
Key Takeaways
- Virtual card numbers are temporary digits your bank creates for online shopping, and they expire after one transaction or on a date you choose.
- Your real card number stays private, so if a website is hacked, the stolen number is useless to a thief.
- Not all banks offer virtual numbers—check your card issuer's app or website to see if the feature is available to you.
- Virtual numbers work best for one-time purchases and unfamiliar websites, but some recurring charges and subscription services may reject them.
- You can usually set spending limits and expiration dates on each virtual number before you use it.
Which banks and card companies offer virtual numbers
Major issuers have rolled out virtual card features, but not all of them, and the names and rules differ. Citi offers Citi Virtual Account Numbers through its app. Bank of America cardholders can use ShopSafe (though this feature has been phased out for new customers). Capital One offers virtual numbers through its mobile app. American Express has AmEx Digital for some cardholders. Discover provides virtual card numbers through its app as well.
Smaller banks and credit unions may not offer this feature at all. The easiest way to find out is to open your card issuer's mobile app or log into your online account and look for a section labeled "virtual card," "digital card," "card controls," or "shopping tools." If you don't see it, call the customer service number on the back of your card and ask whether the feature is available to you.
How to generate and use a virtual number
The process is nearly identical across all providers. Open your card issuer's app or website and find the virtual card or digital card section. You'll see a button to generate a new number. Before you click it, you can usually set a spending limit (say, $50 for a single purchase) and an expiration date (one month, one year, or one transaction only). Some apps let you name the virtual number so you remember what it was for—"Amazon," "Sketchy Site," "Subscription Test."
Once you generate the number, you'll see a 16-digit card number, expiration date, and CVV (the three-digit security code on the back of a physical card). Copy these into the checkout form just as you would your real card. The transaction processes normally. When the virtual number expires or you delete it, that number stops working. If you need to make another purchase, you generate a new virtual number.
When virtual numbers work and when they don't
Virtual numbers work smoothly for one-time purchases on websites you've never used before or don't fully trust. They also work for testing whether a website is legitimate before you hand over your real card details. Many people use them for free trials that require a card upfront, since you can set the virtual number to expire before the trial converts to a paid subscription.
Virtual numbers often fail for recurring charges—subscriptions, gym memberships, insurance payments—because the merchant needs to charge the same number repeatedly. If your virtual number expires after one month but your subscription renews in six weeks, the charge will be declined. Some merchants also reject virtual numbers outright because they can't verify them the same way they verify physical cards. If a purchase is declined, you'll need to use your real card number instead.
How virtual numbers protect you from fraud
The protection works in two directions. First, if you use a virtual number on a website that later gets hacked, the stolen number is either already expired or was set to expire soon. A thief cannot use it to make purchases elsewhere because it's not a real card number—it's a one-time token tied only to that specific merchant or transaction. Your real card number was never exposed.
Second, you control the spending limit on each virtual number. If you set a limit of $25 and a merchant somehow charges the number twice, the second charge fails. You also see the virtual number in your transaction history, so you can spot unauthorized charges when ready and report them to your bank. Because the number is temporary and limited, your bank can cancel it without canceling your entire account.
Virtual numbers versus other fraud protection tools
Virtual numbers are one layer of protection, but they're not the only one. Your credit card already comes with fraud liability protection—federal law limits your responsibility for unauthorized charges to $50, and most card issuers waive that entirely. If someone uses your real card number fraudulently, you report it and the charge is reversed.
Virtual numbers prevent fraud from happening in the first place by keeping your real number hidden. They're most useful when you're shopping on an unfamiliar website or one with a reputation for poor security. For everyday purchases on major retailers like Amazon or Target, your card's built-in fraud protection is usually enough. For high-risk situations—sketchy websites, international merchants you've never heard of, or free trials—a virtual number adds an extra layer you control.
Frequently Asked Questions
Can I use a virtual number for in-person shopping?
No. Virtual numbers are for online purchases only. They don't work at physical stores, gas pumps, or ATMs because those require a physical card or a card number that doesn't expire when ready. For in-person shopping, you need your actual card.
What happens if I lose track of which virtual number I used for which purchase?
Your bank's app or website shows every virtual number you've generated and which transactions used it. You can search by merchant name or date. If you name each virtual number when you create it ("Amazon," "Etsy," "Subscription"), you'll have an straightforward reference. Your regular card statement also shows the merchant name, so you can match it back.
Can a merchant see that I'm using a virtual number instead of a real card?
No. To the merchant, a virtual number looks identical to a real card number. They process it the same way and have no way to know it's temporary. The only time they might notice is if the number declines because it's expired, in which case they'll ask you for a different payment method.
Do virtual numbers affect my credit score?
No. Virtual numbers are tied to your real card account, so the purchase counts toward your credit utilization and payment history just like any other charge. Generating a virtual number itself does not trigger a hard inquiry or affect your score in any way.
What if a merchant charges my virtual number after it expires?
The charge will be declined because the number no longer works. The merchant will contact you asking for a valid payment method. You can then use your real card or generate a new virtual number. You won't be charged twice, and you won't owe anything for the declined attempt.