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. When you make an online purchase, you use this temporary number instead of your actual card number. The charge still goes to your real account, but the merchant never sees your real card details.
The process works like this: you request a virtual card number from your card issuer (usually through their app or website), receive a temporary 16-digit number with its own expiration date and security code, and use that number at checkout. The merchant processes the payment normally, but only the temporary number is exposed if their system is breached.
Virtual cards are issued by major credit card companies including Citi, Capital One, Bank of America, and American Express, though not all cards from these issuers include the feature. Some banks call them "temporary card numbers" or "disposable card numbers" — the function is the same regardless of the name.
Key Takeaways
- Virtual card numbers are temporary and tied to your real account, so charges still appear on your regular statement and build your credit history.
- You generate a new number through your card issuer's app or website, usually in under a minute, and can set spending limits and expiration dates on each one.
- Virtual cards protect your real card number from being stolen in a data breach, but they do not protect you from your own mistakes like entering the wrong amount.
- Not every merchant accepts virtual cards — some subscription services and international retailers may reject them, so keep your real card number available as backup.
- Virtual cards work for online shopping, recurring subscriptions, and one-time purchases, but most cannot be used for in-person payments or ATM withdrawals.
How to generate a virtual card number
The exact steps depend on your card issuer, but the general process is the same across all providers. Log into your credit card's mobile app or website, look for a section labeled "Virtual Card," "Temporary Card Numbers," "Card Controls," or "Digital Wallet," and select the option to generate a new number.
Most issuers let you customize each virtual card before generating it. You can usually set a spending limit (for example, $50 for a single purchase or $200 per month for a subscription), choose an expiration date (anywhere from one month to several years), and name the card so you remember what it was for. Some issuers also let you restrict the card to a specific merchant or category of spending.
Once you confirm your choices, the issuer generates a 16-digit number, expiration date, and three-digit security code. Write these down or copy them into your password manager when ready — most issuers do not show the full number again after you close the screen. The virtual card is active right away and ready to use at checkout.
Using a virtual card at online retailers
At checkout, enter the virtual card number, expiration date, and security code exactly as you would with a physical card. The merchant's payment processor sees only the temporary number, not your real card details. From the merchant's perspective, it looks like a normal credit card transaction.
The charge posts to your real credit card account within one to three business days, just like any other purchase. You see it on your regular statement under the merchant's name, and it counts toward your credit utilization and payment history. The virtual number itself is invisible to you after the transaction completes — you only see the charge on your main account.
If you need to return an item or dispute a charge, contact the merchant or your card issuer through your normal channels. The refund goes back to your real account, not to the virtual card number. Virtual cards simplify the payment process but do not change how returns or disputes work.
Virtual cards for recurring subscriptions and memberships
Virtual cards are particularly useful for subscriptions because you can set an expiration date on the card itself. When the subscription tries to renew after that date, the payment fails and the subscription cancels automatically — no need to remember to unsubscribe yourself.
To use this strategy, generate a virtual card with an expiration date that matches when you want the subscription to end. For example, if you want a three-month trial of a streaming service, create a virtual card that expires in three months. When the service tries to charge you on month four, the card declines and the subscription stops.
Some subscriptions require you to update your payment method before they will process a renewal, so this method does not work everywhere. If a service asks for a new card before the virtual card expires, you can either provide a different payment method or generate a new virtual card and update it in the subscription settings.
Security benefits and limitations
The main security benefit is that your real card number stays hidden. If a retailer's database is hacked or a payment processor is compromised, the thieves get only the temporary number, which is useless after the transaction completes. This reduces your risk of identity theft and fraudulent charges on your actual account.
Virtual cards do not protect you from your own mistakes, however. If you enter the wrong amount at checkout, the charge still goes through. If you accidentally use a virtual card at a scam website, the scammers still get paid. Virtual cards are a shield against merchant-side breaches, not against human error or intentional fraud on your part.
Your real card's fraud protections still explore to virtual card charges. If someone uses a virtual card number fraudulently, you can dispute it with your card issuer just as you would any other charge. The temporary nature of the number actually makes fraud less likely — by the time a thief could use a stolen virtual card number, it has usually already expired.
Merchants that may reject virtual cards
Most major online retailers accept virtual cards without issue, but some do not. Subscription services sometimes reject them because they need a stable payment method for recurring charges. International retailers, especially those outside North America, may have payment systems that do not recognize temporary card numbers.
Some merchants require the billing address on file to match the address you enter at checkout. Virtual cards use your real card's billing address, so this is usually not a problem — but if you have moved recently or your address on file is outdated, the transaction may fail regardless of whether you use a virtual or real card number.
If a virtual card is rejected, you have two options: use your real card number instead, or contact the merchant's customer service to ask whether they support temporary card numbers. Keeping your real card details saved in your password manager or browser means you can switch to them quickly if needed.
Virtual cards versus other payment methods
Virtual cards are one tool among several for protecting your payment information online. Digital wallets like Apple Pay and Google Pay also hide your real card number by creating a tokenized version for each transaction. The difference is that digital wallets work on your phone and are designed for in-person and online use, while virtual cards are generated through your card issuer's app and work primarily online.
Buy now, pay later services like Affirm and Klarna give the merchant a different company's payment information instead of your card details, but they also add a loan or installment plan to your purchase. Virtual cards do not change your payment terms — they are just a different number for the same credit card account.
Prepaid cards are separate accounts you load money into, so they do not draw from your credit card or bank account. They offer privacy but do not build credit history and often charge fees. Virtual cards are free and tied to your existing credit account, making them simpler for most online shopping.
Frequently Asked Questions
Can I use a virtual card for in-person shopping or ATM withdrawals?
No. Virtual cards work only for online transactions and phone orders. They cannot be used at physical stores, gas pumps, or ATMs because they do not have a physical card or chip. If you need to pay in person, use your real card or a digital wallet like Apple Pay.
What happens if I lose track of which virtual card I used for which purchase?
Name each virtual card when you create it — for example, "Amazon March" or "Hulu Trial" — so you can find it in your card issuer's app later. Your real credit card statement shows the merchant name, not the virtual card name, so you can always trace a charge back to the merchant even if you forget which virtual card you used.
Do virtual cards affect my credit score?
No. Virtual cards are tied to your real credit account, so charges appear on your statement and count toward your credit utilization and payment history. Your credit score is based on your real account's behavior, not on how many virtual cards you create or use.
Can I use the same virtual card number twice?
Most issuers allow you to reuse a virtual card number for the same merchant, but it defeats the security purpose. If you plan to make multiple purchases from one retailer, it is simpler to just use your real card. Virtual cards are most useful for one-time purchases or subscriptions where you want to control the expiration date.
What if a virtual card number is declined?
Check that the expiration date and security code are correct, and verify that the spending limit has not been reached. If the card has expired, generate a new one. If the merchant rejects it, try your real card number instead — some payment systems do not recognize temporary card numbers.