How Tokenization Swaps Card Numbers for Stand-In Values
Data tokenization replaces a real card number with a random substitute, called a token, that means nothing outside the system that issued it. The merchant's checkout, order history and billing records store the token. The real Primary Account Number (PAN) sits in a separate, locked-down database called a token vault, usually run by a payment processor, gateway or specialist vendor. If a store's records are stolen, the thieves get tokens that cannot be used to buy anything elsewhere.
This matters because the card number is the valuable part of a payment record. Expiry dates, names and billing postcodes are useful to criminals mainly when paired with the number. Tokenization pulls the number out of most of the places where it might leak, so fewer systems hold data worth stealing.
This guide explains how tokens work, how they differ from other methods, what network tokens are, what to check in a provider, and where tokenization does not cover the risk. It is an educational resource about one part of payment security, not a description of any specific company's product.
Key Takeaways
The points below summarise the main ideas covered in this guide.
- Tokenization stores the real card number in a separate token vault, so a merchant's own database holds only substitute values.
- Unlike encryption, a token has no mathematical link to the card number, so stealing tokens alone does not reveal the original data.
- Network tokens issued through card networks such as Visa and Mastercard can replace the card number for stored and recurring payments, and they update automatically when a card is reissued.
- Before relying on a tokenization provider, check whether it holds current PCI DSS compliance documentation, where its vault is hosted, and whether your tokens can move if you change providers.
- Tokenization reduces where card data lives but does not remove the need for other controls, such as fraud monitoring, access rules and staff training.
What a Token Is and Where the Real Card Number Goes
A token is usually a string of characters that looks a little like a card number but fails the checks that real card numbers pass. It is generated randomly or by a method that cannot be reversed without access to the vault. When a customer enters a card, the payment page sends the details directly to the tokenization service, which stores the PAN and returns a token. The merchant's system receives only that token.
When the merchant later charges the customer, it sends the token back to the service. The service looks up the matching PAN in the vault and passes the payment to the card network and the customer's bank. The merchant never sees the real number at any point in that flow. This is why tokenization is often described as moving card data out of the merchant's environment rather than just hiding it.
Some tokens are single-use and expire after one payment. Others are multi-use and tied to one merchant, so they can be charged again for subscriptions or saved carts. Ask any provider which type it issues and whether a token can be used by a different merchant. A token that works across merchants carries more risk than one locked to a single business.
Tokenization Compared With Encryption and Masking
Tokenization is often confused with encryption, and both appear in payment systems. The main difference is whether the original data can be recovered from the stored value. Encryption scrambles data using a key, so anyone holding the key and the encrypted data can get the card number back. Tokenization stores no key-based link at all; the only route back to the PAN runs through the vault. Masking is a third method that shows only part of a number, such as the last four digits, on receipts or screens. It hides data from people looking at a screen but does not remove the full number from the system.
| Method | What is stored | Can the card number be recovered? | Typical use |
|---|---|---|---|
| Tokenization | A random substitute value; the PAN sits in a separate vault | Only by querying the vault with proper authorisation | Stored cards, recurring billing, reducing data in merchant systems |
| Encryption | Scrambled version of the full PAN | Yes, with the correct decryption key | Protecting data in transit and in databases |
| Masking | Full PAN in some places, partial number on screens and receipts | Yes, if the full number is stored elsewhere | Displaying card details to staff or customers |
Many payment setups use more than one method together. A merchant may tokenize stored cards, encrypt traffic between systems and mask numbers on receipts. Each method covers a different gap, so none replaces the others entirely.
Network Tokens and Card-on-File Payments
A network token is a different kind of token, issued by the card network itself rather than by a merchant's processor. Visa offers the Visa Token Service, and Mastercard runs the Mastercard Digital Enablement Service. These tokens are linked to a specific card and device or merchant, and the network stores the mapping. Because the network sits between the bank and the merchant, it can update the token when a card is reissued or its expiry date changes.
This matters for subscriptions and saved cards. Under older setups, a reissued card often broke recurring payments until the customer typed in new details. With network tokens, the underlying card can change while the token stays in use, which reduces failed payments. The exact behaviour depends on the card issuer, the network and the merchant's setup, so it varies from one bank and one country to the next.
For shoppers, the practical point is that many saved cards in digital wallets are already network tokens. Your phone may show a device-specific token rather than the card number. If you lose the phone, the token can usually be suspended by your bank. Check your bank's app or customer line for how to do this, because the steps differ between issuers.
What to Check in a Tokenization Provider
Businesses choosing a tokenization provider should start with the PCI Security Standards Council, which maintains the Payment Card Industry Data Security Standard (PCI DSS). A provider may show an Attestation of Compliance issued by a may have access to assessor. Ask for the current version rather than a logo on a website, and check the date on it. Compliance is assessed at a point in time, so an old certificate tells you little about today.
Other questions matter just as much. Ask where the token vault is hosted and which countries its data can move through. Ask how the provider handles key management and who inside its company can reach the vault. Find out whether tokens can be exported in a usable form if you leave, or whether you would need to ask every customer to re-enter their card. That second question often determines how painful switching providers will be.
Pricing also varies. Providers may charge per token, per transaction, per month or through a bundle with payment processing. None of these structures is universal, so compare total cost using your own volumes and any setup fees, rather than relying on a headline rate.
Where Tokenization Leaves Gaps
Tokenization protects stored card numbers, but it does not cover every way payment data can be exposed. If a checkout page is compromised before the data reaches the tokenization service, the card number can be captured in that step. Attacks that copy what a shopper types into a payment form are a known risk, and they sit outside what tokenization alone can prevent. Merchants still need secure page design, script controls and monitoring of their checkout code.
Tokens can also be misused in other ways. A stolen token might still be used for fraud within the merchant it belongs to, so fraud checks, velocity limits and customer verification remain important. Staff with access to the vault or its admin tools present a separate risk, which is why access rules and logging are part of any serious setup.
Finally, tokenization does not remove the need to meet PCI DSS. It can reduce how many systems fall within scope, which may lower the effort of an assessment, but the remaining systems still have to meet the standard. Merchants who believe they are outside scope should confirm that with their acquiring bank or a may have access to assessor rather than assume it.
Frequently Asked Questions
Is a tokenized card number the same as my real card number?
No. A token is a substitute value that a merchant or processor uses in place of your card number. The real number is kept in a separate vault. A token generally cannot be used to make a payment outside the system that issued it, which is one reason it is less useful to thieves than a full card number.
Can someone turn a token back into my card number?
Not without access to the token vault and the authority to query it. Unlike encrypted data, a token has no key-based link to the card number. This is why the security of the vault itself is the main concern, so providers should be able to explain how the vault is protected and monitored.
Do I need to do anything if my card is reissued?
It depends on whether your card is saved as a network token or as a merchant-specific token. Network tokens can often update automatically when the card is replaced. For other saved cards, you may need to re-enter details. Check the store's account settings or contact your bank to see how your card is handled.
Does tokenization mean a business no longer needs to follow PCI DSS?
No. Tokenization can reduce the number of systems that hold card data, which may narrow what a business needs to assess. However, any system still handling card data remains in scope. Businesses should confirm their obligations with their acquiring bank or a may have access to security assessor, because requirements depend on how payments are taken.