PII Detector
Scan text for emails, phones, and card-like patterns locally.
OpenReplace personal data and secrets with numbered placeholders, with optional name detection on your device.
Prompts, logs, tickets, or JSON blobs work.
Emails, phones, JWTs, keys, and cards are masked instantly offline.
Download Transformers.js weights once for person/org/location entities.
Token maps stay in your browser for safe LLM round-trips.
You want an LLM to help summarize a batch of customer emails, but the emails are full of names, phone numbers and the odd API token. Sending them as-is is not an option. On-Device NER Redactor swaps those values for placeholders and keeps a map so you can put them back later.
Paste text or JSON and click Redact (regex). Pattern rules mask email addresses, phone numbers, JWTs, keys that start with sk, rk or pk, AWS access key IDs starting with AKIA or ASIA, IPv4 addresses, 13 to 19 digit card-like numbers and US SSNs in the 123-45-6789 format. Each match becomes a numbered token such as [EMAIL_1] or [PHONE_2], and the reversible map beside the output records which token stands for which original value. Overlapping matches are merged so one value is not masked twice.
Add local NER loads Transformers.js and a BERT-based named-entity model, then tags people, organizations, locations and miscellaneous entities as [PERSON_1], [ORG_1] and so on. The first run downloads the model files, which can take a minute; later runs use the browser cache. If loading fails, you keep the regex results and see a warning. Models miss uncommon names and sometimes tag ordinary words, so read the output before trusting it.
Keep the map private: it holds every original value. The masked text can go to an AI model, and you can restore names in the reply using the map. Text is processed inside your browser in both modes. For a scan-only report, see the PII Detector, and what a privacy receipt records explains the Receipt button.
Keyboard shortcut
Answers for this tool. For site-wide help, open the FAQ hub.
Only requests to download the Transformers.js library and the model files. Your text is passed to the model inside the page and is not uploaded. Regex mode makes no network requests at all.
Search the AI response for each placeholder in the reversible map, such as PERSON_1 inside square brackets, and replace it with the value listed. Do this in a local editor so the map itself never leaves your machine.
No. The secret rules cover sk, rk and pk prefixed keys and AWS access key IDs. Tokens from other services may pass through, so run Secrets Redactor as well when you are cleaning logs or config files.