What a Virtual Credit Card Number Is

A virtual credit card is a temporary card number generated by your credit card issuer that links to your real account but is not tied to a physical card. When you make an online purchase, you use this temporary number instead of your actual card number. The charge still posts to your real account, but the merchant never sees your real card details.

Virtual numbers are created on demand through your card issuer's app or website. Each number is unique, has its own expiration date (usually set by you), and can be restricted to a single merchant or a spending limit you choose. Once the number expires or you close it, that particular number becomes useless to anyone who might have obtained it.

Not all credit card issuers offer this feature. American Express, Citi, Bank of America, and Capital One are among the issuers that provide virtual card numbers, though the names and exact mechanics vary by bank. Some issuers call them "virtual account numbers," "temporary card numbers," or "digital wallet tokens." You typically access them through your card's mobile app or online account portal.

Key Takeaways

  • Virtual card numbers are temporary numbers linked to your real account that you use for online purchases instead of your actual card number.
  • You control the expiration date and spending limit of each virtual number, and can close it immediately after use or set it to expire on a schedule you choose.
  • The merchant charges the virtual number, but the transaction posts to your real account and appears on your regular statement.
  • Virtual numbers protect you if a merchant's database is breached or if you shop on a site you do not fully trust, because the stolen number has no value once it expires.
  • Virtual cards do not reduce the interest you pay, change your credit limit, or affect your credit score differently than a regular purchase would.

How the Transaction Process Works

When you generate a virtual number, your card issuer assigns it a unique 16-digit number, expiration date, and CVV (the three-digit security code on the back). This number is linked to your real account behind the scenes, but the merchant sees only the virtual number at checkout.

You enter the virtual number into the checkout form exactly as you would a regular card number. The payment processor routes the transaction to your card issuer, which recognizes the virtual number, matches it to your real account, and approves or declines the charge based on your credit limit and account status. The transaction settles normally—the merchant receives payment, and the charge appears on your statement under your real card.

If the merchant's system is later breached or if someone intercepts the transaction data, they obtain only the virtual number. That number either has already expired (if you set a short expiration window) or is useless because it is tied to a spending limit you set. The thief cannot use it to make a second purchase or access your real card number.

Setting Limits and Expiration Dates

Most issuers let you set a spending cap on each virtual number before you generate it. You might create a number with a $50 limit for a one-time purchase at a new retailer, or a $500 limit for a subscription service you plan to use for several months. Once the virtual number reaches its limit, it declines further charges.

You also control when the number expires. Some issuers let you set an expiration as short as one day or as long as several years. A common strategy is to generate a number that expires immediately after a single purchase, or to set it to expire at the end of the month if you are using it for a recurring charge. After expiration, the number is dead—even if someone has it, they cannot use it.

If you want to stop using a virtual number before its expiration date, you can close it manually through your card issuer's app. This is useful if you cancel a subscription or decide not to complete a purchase. The number becomes invalid instantly.

When Virtual Numbers Protect You and When They Do Not

Virtual numbers are most useful when you are shopping on a site you do not fully trust, buying from a new merchant, or making a one-time purchase where you do not want to hand over your real card details. They also reduce risk if you shop on public Wi-Fi or use a device you do not own, because the intercepted number has limited or no value.

Virtual numbers do not protect you against fraud you commit yourself—for example, if you authorize a charge and then claim it was unauthorized, your issuer will investigate the same way they would for a regular card. They also do not protect you if you are tricked into sending money to a scammer, because you authorized the transaction. The protection is specifically against merchant breaches and interception of card data, not against social engineering or your own mistakes.

Virtual numbers also do not help with in-person fraud or identity theft. If someone steals your Social Security number or personal information, a virtual card number does not stop them from opening accounts in your name. Virtual numbers are a tool for online shopping security, not a comprehensive identity protection service.

How Virtual Cards Affect Your Account and Credit

Using a virtual number does not change how the charge is reported to credit bureaus. The transaction posts to your real account under your real card, and the credit bureaus see it as a regular purchase. Your credit utilization, payment history, and credit score are affected the same way they would be if you had used your physical card.

Virtual numbers do not give you a separate credit limit or a new account. They are simply a masking layer on top of your existing account. If your credit limit is $5,000, you cannot use virtual numbers to spend an additional $5,000 on top of that. All virtual number charges count toward your single credit limit.

Interest accrues on virtual card charges the same way it does on regular charges. If you carry a balance, the interest rate applies to the full balance regardless of whether you used a virtual number or your physical card. Paying off the balance in full by the due date avoids interest, just as it would with any other purchase.

Virtual Cards Versus Digital Wallets and Tokenization

Virtual card numbers are different from digital wallets like Apple Pay or Google Pay, though the goals overlap. A digital wallet stores your real card information on your phone and uses tokenization—a process where the wallet sends a token (a stand-in code) to the merchant instead of your actual card number. The merchant never sees your real number.

Virtual card numbers are generated by your card issuer and are actual card numbers (with their own expiration dates and CVVs), whereas tokens are encrypted codes that only the payment processor can decode. Virtual numbers give you more control—you set the limit and expiration yourself—while tokens are managed by the wallet provider and your issuer.

Both reduce the risk of your real card number being stolen in a merchant breach. If you use Apple Pay at a store, the store sees a token, not your card number. If you use a virtual card number at an online retailer, the retailer sees a temporary card number, not your real one. The end result is similar: your actual card details stay hidden.

Common Reasons Virtual Cards Decline

A virtual card number can decline for the same reasons a regular card declines: insufficient credit limit, the account is closed or suspended, or the issuer suspects fraud. It can also decline if the spending limit you set on that particular virtual number has been reached, or if the number has expired.

Some merchants' systems do not accept virtual numbers, though this is rare. Older payment processors or certain industries (like some gas stations or rental car companies) may have trouble processing temporary numbers. If a virtual number declines, you can try your physical card or contact your issuer to ask whether they know of issues with that merchant.

If you set a virtual number to expire on a specific date and then try to use it after that date, it will decline. This is intentional—it is the security feature at work. If you need to keep using a number for an ongoing subscription, set the expiration date far enough in the future, or plan to update the merchant's payment information before the number expires.

Frequently Asked Questions

Can I use a virtual card number for recurring charges like subscriptions?

Yes, but you need to set the expiration date far enough in the future to cover all the charges. If you set a number to expire in three months and your subscription renews monthly, it will work for three months and then decline. Many people update their subscription payment information before the virtual number expires, or generate a new virtual number and update the merchant's records.

What happens if a merchant gets hacked after I use a virtual card number?

The hacker obtains the virtual number you used, but not your real card number. If you set the virtual number to expire after one use or within a short window, it is already dead and cannot be used. If the number is still active, the hacker can only charge up to the spending limit you set, and only until the expiration date you chose.

Do I need to pay off virtual card charges differently than regular charges?

No. Virtual card charges post to your regular account and appear on your statement alongside any other charges. You pay your statement balance the same way you always do. Interest accrues on virtual charges the same way it does on regular charges if you carry a balance.

Can I use a virtual card number at a physical store or gas pump?

No. Virtual numbers work only for online purchases and phone orders where you enter the card number manually. You cannot use a virtual number at a checkout counter or at a gas pump because there is no physical card to insert or tap. For in-person purchases, use your physical card or a digital wallet like Apple Pay.

If I close a virtual card number, can the merchant still charge it?

No. Once you close a virtual number, it becomes invalid immediately. Any attempt to charge it will decline. This is useful if you cancel a subscription or decide you do not want to complete a purchase. The merchant will need a different payment method to process any future charges.