> ## Documentation Index
> Fetch the complete documentation index at: https://www.dataframer.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Data Anonymization

> Detect PII, PHI, financial data, identity documents, and more—then redact your datasets using AI models and pattern-based rules

> [card] Accuracy
>
> Up to **99.999%** detection accuracy across supported entity types, combining AI model recognition with pattern-based rules.

> [card] Pricing
>
> Starting at **\$0.10 per million tokens** processed. Only detected and transformed tokens count toward usage.

DataFramer's detection and anonymization feature scans your datasets for sensitive information and redacts it:

* **Detection** — identify sensitive entities across your data, combining AI model recognition with pattern-based rules
* **Anonymization (redaction)** — replace detected entities with mask tokens to remove sensitive information

Detection covers seven categories of sensitive information:

* **Personal** — First name, last name, date of birth, dates, age, gender, nationality, race/ethnicity, marital status
* **Contact** — Email, phone number, street address, postal/ZIP code, city, state, country
* **Financial** — SSN, credit/debit card, bank routing number, routing number, tax ID, IBAN
* **Digital** — IP address, URL, username, password, MAC address, device identifier
* **Identity Documents** — Passport number, license/certificate number, national ID, voter ID
* **Medical / PHI** — Medical record number, diagnosis, medication, health plan number, patient ID, lab result
* **Professional** — Company name, occupation, employee ID, salary

## Creating a job

### Step 1: Select dataset

Choose a seed dataset from your library as the input for the job.

![Step 1 – Select a dataset for anonymization](https://mintcdn.com/aimonlabsinc/277fUvQIA2YgQg9V/images/anonymization/anon-step1-select-dataset.png?fit=max\&auto=format\&n=277fUvQIA2YgQg9V\&q=85\&s=63711f771c4d361a19aa6ae7883c5359)

### Step 2: Detection configuration

Configure how sensitive entities are detected and which model evaluates the results.

![Step 2 – Detection configuration: choose detection method, confidence threshold, and evaluation judge](https://mintcdn.com/aimonlabsinc/277fUvQIA2YgQg9V/images/anonymization/anon-step2-detection-config.png?fit=max\&auto=format\&n=277fUvQIA2YgQg9V\&q=85\&s=d73103b303af4d0cb635287cc41fbf0a)

#### Detection methods

> [accordion] PII-M1 (Recommended)
>
> Uses the PII-M1 detection model exclusively, relying on learned entity recognition without rule-based augmentation.

> [accordion] LLM Only
>
> Delegates all detection to an LLM. The most flexible option for unusual or domain-specific entity types.

> [accordion] All Methods
>
> Combines PII-M1, LLM, and Heuristics in a union. Best for maximum coverage when false negatives are unacceptable.

#### Confidence threshold

The confidence threshold controls the trade-off between recall and precision. Lower values (e.g., 0.1) produce more detections with more potential false positives. Higher values (e.g., 0.9) produce fewer detections but with higher certainty. The default of 0.30 works well for most datasets.

#### Evaluation judge model

After the job completes, an LLM evaluates the quality of the results. Select the model to use for this evaluation.

### Step 3: Entity types & masks

Select which entity types to detect and configure the mask token each one is replaced with in the output.

![Step 3 – Select sensitive entity types and configure mask tokens](https://mintcdn.com/aimonlabsinc/277fUvQIA2YgQg9V/images/anonymization/anon-step3-pii-types.png?fit=max\&auto=format\&n=277fUvQIA2YgQg9V\&q=85\&s=5ce5453209152e137ca8672deff4a5bd)

The full set of supported entity types is organized by category:

> [accordion] Personal
>
> First Name, Last Name, Date of Birth, Date, Age, Gender, Nationality, Race / Ethnicity, Marital Status

> [accordion] Contact
>
> Email, Phone Number, Street Address, Postal / ZIP Code, City, State, Country

> [accordion] Financial
>
> Social Security Number, Credit / Debit Card, Bank Routing Number, Routing Number, Tax ID, IBAN

> [accordion] Digital
>
> IP Address, URL, Username, Password, MAC Address, Device Identifier

> [accordion] Identity Documents
>
> Passport Number, License / Certificate Number, National ID, Voter ID

> [accordion] Medical / PHI
>
> Medical Record Number, Diagnosis, Medication, Health Plan Number, Patient ID, Lab Result

> [accordion] Professional
>
> Company Name, Occupation, Employee ID, Salary

Each selected type maps to a mask token in the output—for example, `first_name → <FIRST NAME>` or `date_of_birth → <DOB>`. You can customize the mask token for each type.

### Step 4: Review & submit

Review your full configuration before submitting. The summary shows your full configuration—dataset, detection method, threshold, evaluation model, and all selected entity types with their mask tokens.

![Step 4 – Review and submit the anonymization job](https://mintcdn.com/aimonlabsinc/277fUvQIA2YgQg9V/images/anonymization/anon-step4-review-submit.png?fit=max\&auto=format\&n=277fUvQIA2YgQg9V\&q=85\&s=0df44d5dee9d633bcf590a9d1c41b007)

After submission, the job runs in the background. You can monitor progress on the job detail page.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.