Text Redactor for AI
Redact emails, phone numbers and other PII before sending text to an AI model, with custom patterns.
Processed locally in your browser. Nothing you paste is sent anywhere.
- Catches the high-frequency PII patterns in one pass and shows what it found.
- Add a custom pattern (your own regex) for anything the built-in detectors miss — an internal employee ID, a company-specific ticket-number scheme.
- The redaction happens before the text ever leaves your machine.
- Runs entirely in your browser — the tool itself sends nothing anywhere.
Why this is private
- Processed locally in your browser. Nothing you paste is sent anywhere.
- Open your browser's DevTools → Network tab while using this tool — you won't see a request carrying your input, because it never leaves your device.
- Nothing you enter is uploaded to a server or shared with us — the processing happens entirely on your device.
Overview
Scans text for common personally identifiable information — emails, phone numbers, IP addresses, SSNs, card numbers — and redacts it before you paste the text into a chatbot or send it to an API. Add your own custom regex patterns for formats the built-in detectors can't know about.
How to use it
- 1Paste text you're about to send to an AI tool.
- 2Review the redacted version and what was found.
- 3Add a custom pattern below if you have a format specific to your data.
- 4Copy the redacted text.
Tips
- This uses pattern matching and can miss unusual formats or context-dependent PII (like a name on its own) — review the output yourself for anything sensitive, or add a custom pattern for a format you know appears in your data.
Frequently asked questions
What people use it for
Sanitise a support ticket before asking an AI to draft a replyStrip the customer's email and phone number first.
Clean a log or stack traceRemove IP addresses before pasting it into a chatbot for help — for API keys and tokens in the same log, also run it through Secret Redactor.
Prepare a document for summarisationRedact names and account numbers from a contract or report.
Redact a format specific to your organisationAdd a custom pattern for an internal employee ID or ticket-number scheme the built-in detectors don't recognise.
Share a dataset sampleMask identifiers in a few rows you want to discuss.
Related tools
All security toolsSecret RedactorScrub API keys, tokens and secrets out of text before sharing it, with custom patterns for your own formats.Prompt FormatterFormat a prompt as chat messages, XML tags or Markdown.Token CounterExact token counts for OpenAI models, plus calibrated per-model estimates for Claude, Llama, Gemini and Mistral.Context Window CalculatorSee how much of a model's context window your text uses.
Ready to use Text Redactor for AI?
Text Redactor for AI