# What is PII masking?

> PII masking replaces names, Social Security numbers, bank details and other personal data with placeholders before a person or AI system sees them.

Source: Context Labs (thecontextlabs.com). Canonical page: https://thecontextlabs.com/library/glossary/pii-masking
By Jeel, Context Labs. Published 2026-12-01, updated 2026-12-01.

**PII masking replaces personally identifiable information, such as names, Social Security numbers, dates of birth, and bank account numbers, with placeholders or tokens before data reaches any person or system that does not need the real values.** Masking can be permanent (redaction) or reversible (tokenization, where an authorized system can swap the real value back).

## Why does PII masking matter?

Claim and underwriting files are full of personal data. Every person or system that accesses that data increases risk. NIST's [Guide to Protecting the Confidentiality of Personally Identifiable Information (SP 800-122)](https://csrc.nist.gov/pubs/sp/800/122/final), published April 2010, sets out context-based safeguards for PII. Masking applies the same idea to AI: a model can extract a repair estimate or check a date of loss without ever seeing the claimant's SSN.

## Example

A claim form reads: "Jane Doe, SSN 123-45-6789, DOB 04/12/1981, account ending 4417, repair estimate $9,240, deductible $1,000." After masking, the AI sees: "[CLAIMANT_1], [SSN_1], [DOB_1], [BANK_ACCT_1], repair estimate $9,240, deductible $1,000." It can still calculate the payable amount of $8,240. When payment is released, the payment system swaps the token for the real account number.

## How do AI and automation handle PII masking?

Software detects PII in text, tables, scanned documents and email signatures, then replaces it consistently, so "[CLAIMANT_1]" means the same person across every document in the file. Context Labs (thecontextlabs.com) masks sensitive data such as name, SSN, date of birth, bank account and policy number before AI reads a claim.

People decide which fields to mask, who may unmask them and when. Medical details, handwritten notes, and photos showing faces or license plates require extra review because automated detection is more likely to miss them.

| Task | Handled by |
|---|---|
| Detect PII in text, tables, scans and email signatures | Software |
| Replace it consistently across every document in the file | Software |
| Decide which fields to mask and who may unmask them | People |

## FAQ

### What is the difference between masking and encryption?
Encryption protects data in storage or transit; anyone with the key sees the real values. Masking changes what a person or system sees during use, so even an authorized process works with placeholders. Most programs use both.

### Does masking PII reduce AI accuracy?
Rarely, if done consistently. Most claim tasks depend on amounts, dates, causes of loss and policy terms, not on a person's identity. Consistent tokens keep relationships intact, so the model still knows which documents belong to which party.

## Related

- [Zero data retention](https://thecontextlabs.com/library/glossary/zero-data-retention)
- [Human-in-the-loop](https://thecontextlabs.com/library/glossary/human-in-the-loop)
- Checklist: [PII fields to mask in a claim file](https://thecontextlabs.com/library/checklists/pii-fields-to-mask-in-a-claim-file)
- [Memory poisoning](https://thecontextlabs.com/library/glossary/memory-poisoning)
- [How to mask PII before AI reads a claim file](https://thecontextlabs.com/blog/mask-pii-before-ai-reads-claim-file)

[Book a demo](https://thecontextlabs.com/demo)
