Skip to content
Glossary · Payments and fintech

Tokenization (payments)

Also called card tokenization, payment tokens.

Definition

Replacing a card number or other sensitive value with a stand-in token that cannot be turned back into the original without the token service.

Last updated

What it is.

With tokenization, the sensitive value, such as a card number, is stored by a token service, usually the payment provider. Your system stores and uses only the token: to charge the card again, show the last four digits or issue a refund. The PCI SSC published guidance on tokenization and PCI DSS in August 2011.

It is different from encryption. Encrypted data can be decrypted by anyone with the key; a token has no mathematical link to the original and only the token service can map it back.

Why it matters

If your systems never hold real card numbers, a breach of your database does not leak them, and much less of your stack is in PCI scope. The same idea is used for other sensitive values, such as bank account or ID numbers.

In a product build

Tokenization is the default in modern payment builds: card entry goes through the provider's fields, and the product stores tokens, card brand and last four digits only.

Watch out

Common mistakes.

  1. 01

    Logging the card number before it is tokenized, for example in a debug log.

  2. 02

    Building your own token vault without need, which brings it into PCI scope.

  3. 03

    Assuming tokens from one provider work with another if you switch.

Sources

Read the official text.

Primary sources this definition is based on.

Tools

Work it out with a tool.

Related

Related terms.

Building something with this? Ask an engineer.

OceanLab designs and builds production software. Tell us what you are planning and we will reply with how we would approach it.

OceanLab

Enterprise Software Engineering - Human + AI

Languages

Locations

Global Headquarters

21 Merchant Road, 3rd Floor, Singapore 058267

Main corporate office and leadership operations

North America Office

548 Market Street, PMB 12472, San Francisco, CA 94104

Client operations and business development

India Office

402 Shivalik Shilp II, SG Highway, Ahmedabad 380015

Engineering and delivery center

© 2026 - Copyright. All Rights reserved OceanLab