Data Vault

What Is Tokenization? How It Works, Types and Examples

Tokenization is a data security method that replaces sensitive values, such as card numbers, Social Security numbers or patient IDs, with random tokens, while the original data is stored separately in a secure vault.

AK Abhilash Kumar Nov 10, 2026 13 min read
On this page

    Enigma Vault

    Secure your cards.
    Protect your data.
    Keep it out of your AI.

    Data tokenization that keeps your applications working, so a breach exposes nothing worth stealing.

    • Free Lite tier, no contract
    • PCI DSS Level 1, SOC 2 Type II
    • Billed through AWS Marketplace
    Request a demo

    Tokenization is a data security method that replaces sensitive values, such as card numbers, Social Security numbers or patient IDs, with random tokens, while the original data is stored separately in a secure vault.

    What Is Tokenization and How Does It Protect Sensitive Data?

    Tokenization protects sensitive data by swapping each real value for a token that has no meaning on its own, so your databases and apps hold only tokens while the real values stay in one secure vault.

    Take a travel agency that books trips over the phone. A client reads out her card number, and the agency’s system sends it to a tokenization service. Back comes a token such as tok_8Kd2pQw9.

    From that point on, the token is what every system stores:

    • CRM: The client profile holds tok_8Kd2pQw9 in place of the card number.
    • Booking record: Each reservation references the token.
    • Email threads: Agents reference the token whenever they discuss the booking.

    The real card number sits in the vault, and nowhere else.

    That’s where the protection comes from. Someone who breaks into the CRM finds tokens with no value to them. A spreadsheet export carries tokens too. Your security effort shifts from guarding every tool that touches card data to guarding one vault.

    The same approach protects Social Security numbers at a law firm, passport numbers at a private aviation operator or member IDs at a health plan. Whatever the data, the goal is the same: real values in one place, tokens everywhere else.

    What Is a Token and How Is It Different From the Original Data?

    A token is a substitute value that represents sensitive data without revealing it, and since a vault token has no mathematical link to the original, no key or formula can turn it back into the real value.

    This is the main difference between a token and encrypted data. Encryption transforms the original value with a key, so anyone holding that key can reverse it. A vault token is generated at random. The only connection to the real value is a record stored inside the vault.

    Tokens come in several forms, and each one suits a different need:

    Token typeWhat it looks likeWhy teams use it
    Random tokenA string like 8Kd2pQw9Lm4ZtR7x with no structureStrongest separation, since nothing about the original survives
    Format-preserving tokenMatches the original format, such as a card number that keeps its first six and last four digitsFits existing database fields and lets staff recognize a card by its last four digits
    Deterministic tokenThe same input always produces the same tokenLets teams join tables and find duplicates without seeing real values
    High-value payment tokenCan complete a payment on its own within set limitsUsed in mobile wallets
    Low-value tokenMust be mapped back to the real card before a paymentUsed in merchant systems and card vaults

    The type you choose decides what your teams can do with tokenized data. A dental practice that only needs to keep a patient’s card on file can use random tokens. A health plan that analyzes claims across several systems will usually choose deterministic tokens, so each member links up correctly everywhere.

    How Does Tokenization Work? A Step-by-Step Process With Examples

    Tokenization works by capturing a sensitive value, sending it to a tokenization service, storing the original in an encrypted vault and returning a token your systems use until an authorized request reveals the original.

    Let’s follow a contact center taking a card payment by phone for a home services company.

    1. Capture: The customer enters the card number on the phone keypad or through a secure payment link, so the agent never hears or types it.
    2. Tokenize: The card number goes straight to the tokenization service, which generates a token.
    3. Store: The service encrypts the real card number and stores it in the vault, mapped to that token.
    4. Use: The CRM, scheduling tool and invoices store only the token. To charge the card, the system sends the token to the vault’s proxy, which passes the real number to the payment gateway. Our card vault tokenization guide walks through this flow in detail.
    5. Reveal: If an authorized employee needs the real value, the vault checks their permissions, returns it and logs the request.

    By the end of the call, the agent has never seen the card, and the CRM has never stored it. The vault is the only system holding the real number, and every access to it leaves an audit trail.

    The same flow applies to other kinds of sensitive data. A law firm can tokenize a client’s Social Security number at intake. A payroll platform can tokenize bank account numbers as employees enroll. In both cases, the steps stay the same and only the data changes.

    Types of Tokenization and How Each One Is Used in Real Workflows

    The main types of tokenization are payment, data and AI prompt tokenization, while NLP tokenization and asset tokenization use the same word for unrelated purposes in language models and blockchain systems.

    Payment Tokenization

    Payment tokenization replaces a card’s primary account number (PAN) with a token. Depending on who issues the token, it works in different ways:

    • Card networks: Visa and Mastercard issue network tokens for mobile wallets and card-on-file programs.
    • Payment processors: Gateways return their own tokens for repeat charges, and these usually work only with that processor.
    • Independent card vaults: Businesses store cards in a vault they control, so they can charge through more than one processor.

    Each option fits a different business. A subscription app selling through one processor can live with that processor’s tokens. A private aviation operator paying fuel suppliers, ground handlers and catering firms can’t, because none of them share a processor. An independent vault lets that operator keep one token per client card and charge whichever supplier needs paying. If you’re comparing providers, our roundup of payment tokenization software covers the main options.

    Card verification codes are handled separately. Under PCI DSS, the CVV can’t be stored after authorization, so vaults hold it only briefly, if at all.

    Data and PII Tokenization

    Any sensitive field can be tokenized. Here’s how one member record at a health insurer might look:

    FieldOriginalToken
    Member IDMBR-48151623tok_Lm4ZtR7x
    SSN123-45-6789tok_9pQ7dK2w
    Diagnosis codeJ45.909J45.909

    Analysts still see the diagnosis code they need, while the member ID and SSN stay in the vault.

    Two choices shape how useful this data stays. Deterministic tokens give the same member the same token in every system, so claims, case notes and reports still join up. Expiry settings decide how long each token lives, which helps when a law firm or accounting practice must delete client data after a matter closes. Our list of data tokenization tools compares how vendors handle both.

    Tokenization for AI and LLM Prompts

    AI assistants create a new route for sensitive data to leave your systems. Tokenizing a support ticket before it reaches the language model looks like this:

    Agent's ticket:   Refund Jane Doe, account 48151623
    Model receives:   Refund [NAME: Ry0Ixd1], account [ACCOUNT: 7Qp2mX]

    The model drafts a reply using tokens, and the real values are restored before the agent reads it.

    This matters most for contact centers, SaaS support teams and claims operations, where AI tools process thousands of customer records a day. Because the same customer keeps the same token across a conversation, the model’s answers stay accurate even though it never sees who the customer is. We cover this workflow in our guide to PII tokenization for AI.

    NLP Tokenization

    In AI, the word token means something different. Language models can’t read a whole sentence at once, so they first break text into small pieces called tokens, usually words or parts of words.

    For example, “Refund my order” becomes three tokens: “Refund,” “my” and “order.” The model reads and writes text one token at a time, which is why AI tools talk about token limits and charge by the number of tokens processed.

    These NLP tokens don’t hide anything. A support ticket split into NLP tokens still contains the customer’s real name and account number. That’s why businesses apply data tokenization before the text reaches the model.

    Asset and Blockchain Tokenization

    In finance and crypto, tokenization means turning ownership of a real-world asset into digital units recorded on a blockchain. Each token represents a share of that asset.

    For example, a $10 million office building could be divided into 10,000 tokens worth $1,000 each, and investors could buy, sell or trade those tokens. The purpose is to make expensive assets easier to trade and to let people own a fraction of them.

    Asset tokenization doesn’t protect sensitive data. If you’re researching tokenization for security or compliance, this isn’t the meaning you need.

    Vault vs Vaultless Tokenization: How the Two Architectures Differ

    Vault tokenization stores each original value in a secure vault and maps it to a random token, whereas vaultless tokenization calculates tokens from the original using an algorithm and a key, with no vault involved.

    Both approaches produce tokens. The difference lies in what protects the original data.

    FactorVault tokenizationVaultless tokenization
    How tokens are madeGenerated at random and mapped to the original in a vaultCalculated from the original with an algorithm and a key
    Link to the originalOnly the vault recordMathematical, through the key
    If something is compromisedOriginals sit only in the vault, the single place to defendAnyone with the key can reverse every token
    Deleting one person’s dataDelete the vault record, and every copy of the token stops workingHarder, since tokens can be recalculated from the key
    InfrastructureRequires a highly available vaultNo vault to run

    The choice matters most for payment data. The PCI Security Standards Council’s tokenization guidelines note that tokens created through reversible encryption can be treated as encrypted card data, which may keep them within PCI DSS scope. Random vault tokens avoid that issue, because there’s nothing to decrypt.

    Deletion is the other practical difference. When a travel agency client asks to have her data erased, the agency deletes one vault record. Every booking, email and report that held her token then points to nothing.

    Vaultless designs can suit environments where running a central vault isn’t practical. For businesses that want to reduce compliance scope and handle deletion requests cleanly, vault tokenization is the safer choice. For a deeper look at the trade-offs, see our guide to vault vs vaultless tokenization.

    Tokenization vs Encryption: Key Differences and When to Use Each

    Tokenization replaces data with an unrelated token and keeps the original in a vault, while encryption scrambles data with a key, so anyone who holds that key can turn it back into the original value.

    Tokenization and encryption protect different things, and most businesses need both.

    FactorTokenizationEncryption
    What happens to the dataReplaced with a random substituteTransformed using an algorithm and a key
    Reversible by math?NoYes, with the key
    Data formatCan keep the original length and formatUsually changes length and characters
    Best forSpecific fields like card numbers and SSNsFiles, databases, backups and network traffic
    Effect on PCI scopeSystems holding only vault tokens may fall outside scopeEncrypted card data is still card data
    AnalyticsDeterministic tokens support joins and lookupsUsually requires decryption first

    When to use tokenization: Choose it for individual sensitive values that many systems reference while only a few need to read, such as a card on file or a member ID.

    When to use encryption: Choose it for whole documents, storage volumes and data moving across networks.

    The two also work together. A tokenization vault encrypts every original value it stores, while your applications keep only the tokens. A hotel group, for example, might encrypt its reservation database at rest and tokenize the card number field, so even staff with database access see tokens instead of card numbers.

    Key Benefits of Tokenization for Data Security and Compliance

    Tokenization reduces breach impact, narrows PCI DSS scope, supports GDPR and HIPAA programs, simplifies data deletion and keeps tokenized data usable for analytics and AI without exposing real values.

    Without tokenization, one card number or SSN tends to spread. It lands in a CRM, then a spreadsheet, then a support ticket and a backup. Every copy is one more place to protect and one more place it can leak. Tokenization keeps the real value in the vault and gives every other system a token.

    Here’s what that changes:

    1. Lower breach impact: Attackers who steal a database, log file or export get tokens they can’t use. The real values were never there.
    2. Smaller PCI scope: Card data rules apply to systems that store, process or transmit card numbers. Systems that hold only tokens, and never reveal card numbers, may fall outside that scope, which your Qualified Security Assessor (QSA) confirms.
    3. Support for privacy laws: Under GDPR, tokenized data counts as pseudonymized, a safeguard the regulation encourages. It’s still personal data, but far less exposed. For PHI, tokenizing fields like member IDs keeps identifiers out of everyday clinical and billing tools.
    4. Faster deletion: When a customer asks to be erased, deleting one vault record makes every copy of their token meaningless, across every system that stored it.
    5. Data teams keep working: With deterministic tokens, analysts can still count customers, join tables and remove duplicates without seeing a single name or number.
    6. Easier AI approvals: Security teams can sign off on AI tools faster when customer data reaches the model as tokens instead of real identifiers.

    Tokenization Use Cases Across Industries That Handle Sensitive Data

    Tokenization use cases cover any business that collects cards, IDs or personal data remotely and reuses it later, from travel agencies and dental clinics to law firms, contact centers and SaaS platforms.

    In each of these industries, sensitive data arrives by phone, email or form, gets copied into everyday tools and is needed again weeks later. Tokenization breaks that cycle at the point of capture.

    IndustrySensitive dataHow tokenization helps
    Travel agenciesClient cards, passport numbersAgents book with tokens, and authorized staff reveal a card only when a supplier needs it
    Hotels and private aviationCards on file, guest IDsRepeat bookings and incidental charges run on stored tokens instead of cards in spreadsheets
    Clinics and dental practicesInsurance IDs, payment cardsFront-desk systems store tokens, keeping card numbers out of practice notes
    Health insurers and administratorsMember IDs, claims dataAnalysts link records across systems with deterministic tokens
    Law and accounting firmsSSNs, tax IDs, bank detailsIntake tokenizes identifiers before they reach case or practice software
    Contact centers and collectionsCards taken over the phoneAgents never hear or store card numbers, which go straight to the vault
    SaaS platformsEnd-user cards, bank accounts, credentialsThe platform offers sensitive features without storing plaintext in its own databases

    AI now runs through many of these workflows. A collections agency summarizing calls with an LLM and a law firm drafting with AI face the same question: how to keep client identifiers out of the prompt. Tokenizing data inside the application, before any request leaves it, answers that question for every AI tool the business uses. It also keeps more context than PII masking for LLMs, since each person keeps a consistent token.

    Limitations of Tokenization and What It Does Not Solve on Its Own

    Tokenization doesn’t make a business compliant by itself, can’t protect data it never receives and makes the vault a critical system, so it works best alongside access controls, encryption and secure data collection.

    Planning for these limits upfront helps you get the most out of tokenization:

    • Vault availability: Every payment, lookup and reveal depends on the vault, so it needs strong security, high availability and strict access control. A provider with independent certifications such as PCI DSS Level 1 and SOC 2 Type II carries much of that burden for you.
    • Untokenized copies: Tokenization can’t protect a card number an employee pastes into a support ticket or a passport scan sent by email. Collecting data through secure forms and links from the first contact closes most of these gaps.
    • Overused deterministic tokens: When one token represents a person across every system, it can turn into a universal ID that links unrelated datasets. Limit deterministic tokens to the applications that need them.
    • Remaining compliance work: Tokenization reduces PCI DSS scope and supports privacy programs. Policies, vendor contracts, access reviews and an assessor’s sign-off are still required.
    • Unsupported formats: Most tokenization covers structured fields. Images, audio and scanned documents need separate handling, such as secure file storage, before any values inside them can be tokenized.

    How Enigma Vault Helps You Tokenize Sensitive Data

    At Enigma Vault, we keep your sensitive data in one certified vault, so every other system holds tokens. You can start with the product that fits your data:

    • Card Vault: Tokenizes payment cards and charges them through your gateway, so your systems never touch the card number.
    • Data Vault: Tokenizes SSNs, account numbers and other sensitive fields, with deterministic tokens when your teams need joins.
    • NoPII: Tokenizes PII in AI prompts before they reach the model provider.

    All three run on PCI DSS Level 1 and SOC 2 Type II certified infrastructure and include a free plan. Request a demo to see how they fit your data flows.

    AK
    Abhilash Kumar Chief Growth Officer

    Abhilash Kumar is Chief Growth Officer at Enigma Vault, where he leads growth strategy, market positioning, and partnership development. He brings experience across B2B SaaS marketing, product marketing, brand building, and demand generation, with a career spanning technology companies and communications agencies.

    View full profile

    Frequently asked questions

    Can a Token Be Reversed Back to the Original Data?
    Only through the vault. A random vault token has no mathematical link to the original value, so it can’t be decoded. An authorized request to the vault, checked against permissions and logged, is the only way back.
    Is Tokenized Data Still Considered Personal Data?
    Yes, for the business that holds the vault. Under GDPR, tokenized data is pseudonymized, because the vault can map tokens back to real values, so privacy obligations still apply even though exposure drops sharply.
    Does Tokenization Reduce PCI DSS Scope?
    It can. Systems that store only tokens and never reveal card numbers may fall outside the cardholder data environment, while systems that detokenize stay in scope. Your QSA confirms the final boundary.
    What Does Tokenization Mean in Crypto and Blockchain?
    In crypto, tokenization means representing ownership of an asset, such as property or a fund share, as a digital token on a blockchain. Its purpose is easier trading and fractional ownership, which is unrelated to data protection.
    What Does Tokenization Mean in AI and NLP?
    In AI, tokenization splits text into words or word pieces so a language model can process it. Data tokenization is different: it protects AI prompts by replacing names and IDs with tokens before text reaches the model.