data_data_anonymizer
Detect and mask personally identifiable information (PII) like emails, phone numbers, SSNs, IBANs, and credit cards in free text. Returns masked text with per-occurrence replacements.
Instructions
PII Data Anonymizer and Redactor. Detect and mask personally identifiable information (emails, phone numbers, US SSNs, IBANs with mod-97 check, Luhn-validated credit cards, IPv4/IPv6 addresses, ISO-8601 dates) in free text. Use this to scrub or redact real PII from logs, tickets, or datasets; use data_data_faker instead when you need to generate brand-new synthetic test data rather than mask existing values. Detection is regex-based with validity checks, and longer or stricter patterns (credit card, IBAN) resolve ahead of shorter ones (phone, SSN) so values are never partially matched. Runs locally on the text you provide: read-only, non-destructive, contacts no external service, deterministic for a given input, and rate-limited (60 requests/minute for anonymous callers). Returns the masked text plus a per-occurrence replacement list and per-type match counts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to scan for PII. Maximum 1000000 characters; longer input is rejected. | |
| mask | No | Masking mode. token replaces each match with a bracketed type label; partial redacts the middle and keeps a few leading and trailing characters; counter substitutes per-type sequential ids such as email-1. | token |
| enable | No | Per-type detection toggles; each key defaults to true (detected) when omitted. Set a key to false to skip that PII type. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | No | Whether anonymization succeeded. | |
| result | No | The anonymization output. |