Skip to content
Tools

AI Prompt Sanitizer

Find secrets and personal data in a prompt and get a redacted copy to paste.

Local
Paste a prompt to scan it for secrets and personal data. The scan runs in your browser and your text is never uploaded.

What this tool does

The AI Prompt Sanitizer scans text for secrets and personal data before you paste it into a chatbot or an API. It lists what it found, grouped by risk, and produces a redacted copy with each sensitive value replaced by a placeholder such as [REDACTED:EMAIL]. The scan happens in your browser, so the prompt you are trying to protect is never sent anywhere.

Why it runs in your browser

A tool that checks a prompt for leaks would defeat its own purpose if it uploaded that prompt to a server. Everything here is local pattern matching. Nothing is transmitted, logged or stored, and you can confirm that by opening your browser developer tools and watching the network tab stay empty, or by running the page offline.

What it detects

  • API keys and tokens: AWS, OpenAI and Anthropic, GitHub, Google, Slack, Stripe, and JSON Web Tokens.
  • Private key blocks and URLs with an embedded username and password.
  • Passwords and secrets written as key=value or key: value.
  • Payment card numbers that pass a Luhn check, IBAN that pass the mod-97 check, Dutch BSN that pass the 11-proef, and US Social Security Numbers.
  • Emails, phone numbers, IP addresses, MAC addresses, and long high-entropy strings that look like secrets.

A checker, not a guarantee

Pattern matching catches the common shapes, but it cannot know every secret format, and a name or an address written in plain prose will slip past it. Treat a clean result as "nothing obvious found", not "safe to share". Always read the prompt yourself, and treat the redacted copy as a starting point you still review.

Common use cases

  • Removing credentials from a stack trace or log before asking a model to explain it.
  • Scrubbing customer details from a support message you want drafted.
  • Checking a prompt template for leftover API keys before you commit or share it.

Frequently asked questions

Is my prompt uploaded anywhere?
No. The scan runs entirely in your browser with local pattern matching. Your text never leaves the page, which is the whole point of checking a prompt before you share it.
What does it detect?
API keys and tokens (AWS, OpenAI, GitHub, Google, Slack, Stripe, JWT), private key blocks, passwords in assignments, URLs with embedded credentials, payment cards that pass a Luhn check, IBAN, Dutch BSN, US SSN, emails, phone numbers, IP and MAC addresses, and generic high-entropy strings.
Can it miss something?
Yes. It is a pattern-based aid, not a guarantee. Always read the prompt yourself before sharing it, and treat the redacted copy as a starting point.
Does it change my original text?
No. It leaves your input untouched and produces a separate redacted copy, with each sensitive value replaced by a typed placeholder such as [REDACTED:EMAIL].

Learning resources

Testsmith also runs hands-on courses and a free practice app for the skills behind this tool.

Feedback welcome

Found a bug in this tool, or want it to do something it does not? Tell us and we will take a look.