# Create Tokens
source: https://developer.mastercard.com/mastercard-checkout-solutions/documentation/use-cases/card-on-file/create-tokens/index.md

## Overview {#overview}

When a cardholder is making a payment transaction or adding a card on a merchant's website or application, Integrators should immediately generate a token using the [Enroll Card](https://developer.mastercard.com/mastercard-checkout-solutions/documentation/api-reference/apis/index.md#card) API. This API creates a unique token for each Primary Account Number (PAN) entered or saved for future checkouts and associates it with the cardholder's profile. For Integrators with a limited number of existing cards (consumer PANs) stored in their database, the Enroll Card API can be utilized to exchange a PAN for a token (`srcDigitalCardId`).
Note: Only one PAN can be tokenized per Enroll Card request.

The [Cards Batch Enroll](https://developer.mastercard.com/mastercard-checkout-solutions/documentation/api-reference/apis/index.md#cards-batch-enrollment) API allows Integrators to replace multiple stored PANs with tokens without cardholder's presence. Additionally, it can also be used to migrate existing MDES for Merchant's Token Unique References (TURs) to Secure Card on File. Integrators will receive an `srcDigitalCardId` for each successfully enrolled record that can be used in subsequent checkout requests.
Note: Up to 250 PANs or TURs can be tokenized per Cards Batch Enroll request.

An Integrator may initiate PAN tokenization using either Enroll Card API or Cards Batch Enroll API for the following scenarios:

|                                                                                        Tokenization Use Case                                                                                         |                                                                                                                       Description                                                                                                                        |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Tokenization While Transacting](https://developer.mastercard.com/mastercard-checkout-solutions/documentation/use-cases/card-on-file/create-tokens/tokenization-while-transacting/index.md)          | Use [Enroll Card](https://developer.mastercard.com/mastercard-checkout-solutions/documentation/api-reference/apis/index.md#card) API to create a token while a cardholder is shopping online with a stored card or is adding a new card during checkout. |
| [Tokenization While Adding a Card](https://developer.mastercard.com/mastercard-checkout-solutions/documentation/use-cases/card-on-file/create-tokens/tokenization-while-adding-card/index.md)        | Use [Enroll Card](https://developer.mastercard.com/mastercard-checkout-solutions/documentation/api-reference/apis/index.md#card) API to create a token while a cardholder is adding a card to their profile on a merchant's website or app.              |
| [Tokenization of an Existing Card](https://developer.mastercard.com/mastercard-checkout-solutions/documentation/use-cases/card-on-file/create-tokens/tokenization-of-existing-card/index.md)         | Use [Enroll Card](https://developer.mastercard.com/mastercard-checkout-solutions/documentation/api-reference/apis/index.md#card) API to create token for a single existing card, without cardholder interaction.                                         |
| [Tokenization of Multiple Existing Cards](https://developer.mastercard.com/mastercard-checkout-solutions/documentation/use-cases/card-on-file/create-tokens/tokenization-of-existing-cards/index.md) | Use [Cards Batch Enroll](https://developer.mastercard.com/mastercard-checkout-solutions/documentation/api-reference/apis/index.md#cards-batch-enrollment) API to create tokens for multiple existing cards, without cardholder interaction.              |
| [Tokenization of an Existing Token](https://developer.mastercard.com/mastercard-checkout-solutions/documentation/use-cases/card-on-file/create-tokens/tokenization-of-existing-token/index.md)       | Use [Enroll Card](https://developer.mastercard.com/mastercard-checkout-solutions/documentation/api-reference/apis/index.md#card) API to create a new token using credentials from an existing token as the enrollment data.                              |
| [Issuer-Initiated Token Creation](https://developer.mastercard.com/mastercard-checkout-solutions/documentation/use-cases/card-on-file/create-tokens/scof-push-acc-receipt/index.md)                  | Use [Enroll Card](https://developer.mastercard.com/mastercard-checkout-solutions/documentation/api-reference/apis/index.md#card) API to create tokens when cardholders push their cards from Issuer's banking app/website to a participating Integrator. |

