# PII Redactor & Text Anonymizer

> Scrub names, orgs, locations, emails, phone numbers, Luhn credit cards, SSNs, IPs, IBANs, and API keys locally before pasting into AI (~66 MB optional AI NER model).

URL: https://uttir.com/pii-redactor
Categories: ai-tools, security-tools, text-tools
Privacy: Structured patterns (emails, phones, cards, SSNs, IPs, IBANs, API keys) run instantaneously with 0 MB downloaded. Optional ~66 MB DistilBERT NER weights also run 100% locally on your device.

## About

Pasting real support tickets, contracts, invoices, or application logs into cloud chatbots or issue trackers routinely leaks customer emails, API tokens, IBANs, or full names — and using a remote "redaction API" defeats the entire reason you wanted to scrub the text.

This hybrid redactor runs deterministic pattern and checksum validators (emails, phone numbers, Luhn-checked payment cards, valid SSNs, IPv4/IPv6, mod-97 IBANs, JWTs, and common `sk-`/`ghp_`/`AKIA` tokens) instantaneously in under a millisecond with zero downloads. When you also want unstructured Person, Organization, and Location names caught, click once to load the quantized ~66 MB DistilBERT NER ONNX model cleanly in your browser cache.

## How to use

1. **Paste text, logs, or prompts** — Paste emails, tickets, JSON snippets, or Markdown notes. Pattern and secret redaction runs live right away with zero download.
2. **Optionally enable AI entity detection (~66 MB)** — Click Download AI NER (66 MB) & Scan once to detect Person, Organization, and Location names alongside structured PII.
3. **Toggle categories & output format** — Enable or disable any PII category chip and pick consistent numbered tags ([PERSON_1]), generic [REDACTED], or bullet masking (••••).
4. **Copy safe text** — Copy the sanitized text or download redacted.txt. Keep the temporary Replacement Map strictly local to reverse placeholders if needed.

## Examples

### Sanitize a billing escalation before summarizing with AI

Replace customer names, organization, email, phone, IP, IBAN, Luhn test card, and API token with typed placeholders.

Input:

```
Hi Alice Chen (alice@northstar-labs.com), refund card 4242 4242 4242 4242 from IP 203.0.113.42
```

Output:

```
Hi [PERSON_1] ([EMAIL_1]), refund card [CREDIT_CARD_1] from IP [IP_ADDRESS_1]
```

### Mask API keys in production crash logs cleanly

Catch accidental GitHub tokens, OpenAI project keys, AWS access IDs, or JWTs without sending logs off your workstation.

Input:

```
Authorization failed for sk-proj-demo1234567890abcdef1234567890 on 10.24.8.15
```

Output:

```
Authorization failed for [SECRET_1] on [IP_ADDRESS_1]
```

## FAQ

### Do I have to download the 66 MB AI model just to redact emails or API keys?

No. Emails, phone numbers, Luhn-verified credit cards, SSNs, IP addresses, mod-97 IBANs, JWTs, and common cloud API keys run instantly using zero-dependency pattern and checksum logic.

### Why are some numbers like dates not flagged as phone numbers or cards?

Phone detection ignores ISO/calendar dates (such as 2026-11-25), credit card numbers must pass the mod-10 Luhn checksum, IBANs must pass ISO 13616 mod-97 validation, and SSNs reject invalid area/serial ranges.

### Can AI NER miss an unusual name or non-English entity?

DistilBERT NER is trained mainly on English news entities (CoNLL-2003), so always review the highlighted preview pane before sharing strictly regulated documents.

### Where is the replacement map stored?

Strictly in volatile JavaScript memory inside your browser tab. Reloading or closing the tab clears the mapping immediately.

## Related tools

- [Text Summarizer](https://uttir.com/text-summarizer) — Summarize long articles, blog posts, reports, or emails — entirely in your browser. Nothing is uploaded. The model runs locally on your device.
- [Luhn / PAN Validator](https://uttir.com/luhn-pan-validator) — Validate a credit or debit card number with the Luhn checksum, identify the scheme (Visa, Mastercard, Amex, Discover, JCB, UnionPay), and generate a display-safe mask.
- [HMAC Generator](https://uttir.com/hmac-generator) — Compute a Hash-based Message Authentication Code (HMAC) for any message and shared secret. Supports SHA-256, SHA-512, SHA-1, and MD5. All computation runs in your browser.
- [AES Encrypt / Decrypt](https://uttir.com/aes-encrypt) — Encrypt or decrypt text with a password using AES-256-GCM. The encryption runs entirely in your browser, the password never leaves the page, and the result is a portable text envelope you can paste into an email, a chat, or a file.

---

For the full HTML page with the live tool, visit https://uttir.com/pii-redactor.
This file is the markdown rendering at https://uttir.com/pii-redactor.md. See https://uttir.com/llms.txt for a site-wide summary.
