Prompt Privacy & PII Scrubber for AI Tools
Mask API keys, Bearer tokens, emails, phone numbers, and IPv4 addresses before submitting to ChatGPT or Claude.
const cleaned = text.replace(/(?:sk-[a-zA-Z0-9_-]{20,}|(?:Bearer\s+)[a-zA-Z0-9._-]{20,})|[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}|\b(?:\d{1,3}\.){3}\d{1,3}\b/g, '');
$...$), Markdown data tables, and ISO-8601 timestamps are strictly preserved.
Deterministic Sanitization Specification & Live Diff
Please debug this issue for user support@example.com connecting from 192.168.1.45 with API key sk-proj-abc123456789XYZ12345.Please debug this issue for user [REDACTED] connecting from [REDACTED] with API key [REDACTED].How to Clean Prompt Privacy & PII Scrubber for AI Tools Online
ClipNText Prompt Privacy & PII Scrubber for AI Tools is a client-side text sanitizer that strips Exposed Secrets & Personally Identifiable Information (PII), orphaned delimiters, and syntax clutter from ai. Executing locally via asynchronous browser Web Workers (scrub.worker.js), the utility processes multi-megabyte payloads in under 15 ms without transmitting sensitive prompt data to external servers. Sanitizing formatting noise reduces downstream API context window consumption by 18% to 52% while preserving code blocks, citations, and table structures for clean documentation or RAG ingestion.
| Target Artifact | Regex / Pattern Signature | Sanitization Behavior |
|---|---|---|
Please debug this issue for user support@exam |
/(?:sk-[a-zA-Z0-9_-]{20,}|(?:Bearer\s+)[a-zA-Z0-9._-]{20,})|[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}|\b(?:\d{1,3}\.){3}\d{1,3}\b/g |
Developers accidentally paste production logs containing API keys, private IPs, or customer emails into public AI chat windows. |
Please debug this issue for user [REDACT |
/[ \t]{2,}|\u200B/g |
Collapses redundant whitespace and purges invisible zero-width tokens. |
Exposed Secrets & Personally Identifiable Information (PII)
Developers accidentally paste production logs containing API keys, private IPs, or customer emails into public AI chat windows.
/(?:sk-[a-zA-Z0-9_-]{20,}|(?:Bearer\s+)[a-zA-Z0-9._-]{20,})|[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}|\b(?:\d{1,3}\.){3}\d{1,3}\b/g
Technical Edge-Case FAQ
Common engineering questions regarding character preservation, encoding boundaries, and browser worker performance: