AI Prompt Library Sanitizer

Sanitize a batch of prompts to remove PII and secrets

Ad placeholder (leaderboard)

AI prompt library sanitizer

Teams build up valuable prompt libraries, but the best real-world prompts are often full of things that should never be shared — live API keys, customer emails, internal hostnames, account numbers. This tool bulk-sanitizes a batch of prompts so you can publish or commit a clean, reusable library without leaking secrets or personal data. It runs entirely in your browser, so even the raw, sensitive input never leaves your machine.

How it works

Paste your prompts one per line, or drop in a JSON array of strings exported from an existing library. The tool detects the format, then applies a set of toggleable redaction rules: provider API keys (OpenAI, Anthropic, AWS), platform tokens (GitHub, Slack), emails, phone numbers, credit card numbers, IPv4 addresses, and internal URLs. Each match is swapped for a readable placeholder like [EMAIL] or [OPENAI_KEY], and live counts show how much each rule caught. Copy the result and you have a shareable library.

Tips and notes

  • Local only. Nothing is uploaded — that’s the point. Paste freely.
  • Read before you share. Regex catches formatted secrets, not paraphrased confidential context or project codenames. A human eyeball is the last filter.
  • Keep placeholders readable. [CARD] tells a teammate what kind of value belongs there, which makes the cleaned prompt still usable as a template.
  • Re-sanitize on export. Add it to your workflow whenever you publish a prompt library so newly added secrets don’t slip through.
Ad placeholder (rectangle)