Cloud Data Loss Prevention (Cloud DLP) is now a part of Sensitive Data Protection. The API name remains the same: Cloud Data Loss Prevention API (DLP API). For information about the services that make up Sensitive Data Protection, see Sensitive Data Protection overview.
Stay organized with collections
Save and categorize content based on your preferences.
Text classification
Given the following text input:
Please update my records with the following information:
Email address: foo@example.com
National Provider Identifier: 1245319599
Driver's license: AC333991
The output is a list of findings, organized into the following categories:
Offset (Where in the string the potential InfoType was found)
Example output is shown in the table below.
InfoType
Likelihood
Offset
US_HEALTHCARE_NPI
VERY_LIKELY
122
EMAIL_ADDRESS
LIKELY
72
US_DRIVERS_LICENSE_NUMBER
LIKELY
155
CANADA_BC_PHN
VERY_UNLIKELY
122
UK_TAXPAYER_REFERENCE
VERY_UNLIKELY
122
CANADA_PASSPORT
VERY_UNLIKELY
155
Automatic text redaction
Automatic redaction produces an output with sensitive data matches removed
instead of giving you a list of findings.
Example automation redaction input:
Please update my records with the following information:
Email address: foo@example.com
National Provider Identifier: 1245319599
Driver's license: AC333991
Example output using a placeholder of "***":
Please update my records with the following information:
Email address: ***
National Provider Identifier: ***
Driver's license: ***
For more information about using Sensitive Data Protection to de-identify
sensitive data in text content—which includes "masking" sensitive
data, replacing sensitive data with a "token" string, and encrypting and
replacing sensitive data using a randomly generated or pre-determined
key—see
De-identifying sensitive data in text content.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Text classification and redaction\n\nText classification\n-------------------\n\nGiven the following text input: \n\n```\nPlease update my records with the following information:\nEmail address: foo@example.com\n\nNational Provider Identifier: 1245319599\n\nDriver's license: AC333991\n```\n\nThe output is a list of findings, organized into the following categories:\n\n- [`InfoType`](/sensitive-data-protection/docs/infotypes-reference \"InfoTypes Reference\")\n- [`Likelihood`](/sensitive-data-protection/docs/likelihood \"Likelihood Concept Page\")\n- `Offset` (Where in the string the potential `InfoType` was found)\n\nExample output is shown in the table below.\n\nAutomatic text redaction\n------------------------\n\nAutomatic redaction produces an output with sensitive data matches removed\ninstead of giving you a list of findings.\n\nExample automation redaction input: \n\n```\nPlease update my records with the following information:\nEmail address: foo@example.com\n\nNational Provider Identifier: 1245319599\n\nDriver's license: AC333991\n```\n\nExample output using a placeholder of \"\\*\\*\\*\": \n\n```\nPlease update my records with the following information:\nEmail address: ***\n\nNational Provider Identifier: ***\n\nDriver's license: ***\n```\n\nResources\n---------\n\n- For more information about using Sensitive Data Protection to redact text, see [Redacting Sensitive Data From Text Content](/sensitive-data-protection/docs/redacting-sensitive-data).\n- For more information about using Sensitive Data Protection to de-identify sensitive data in text content---which includes \"masking\" sensitive data, replacing sensitive data with a \"token\" string, and encrypting and replacing sensitive data using a randomly generated or pre-determined key---see [De-identifying sensitive data in text content](/sensitive-data-protection/docs/deidentify-sensitive-data)."]]