UFOZoo

Prompt Sanitizer — Remove Sensitive Data from AI Prompts

Detect and remove API keys, emails, phone numbers, and credit cards from AI prompts. All processing local, text never leaves browser.

Features

  • Detect API keys from OpenAI, Anthropic, Google, AWS, GitHub, and more
  • Find email addresses in text
  • Detect phone numbers in various formats
  • Find credit card numbers (Visa, MasterCard, Amex, etc.)
  • Detect IP addresses and URLs
  • Find SSN (Social Security Numbers) and other ID patterns
  • Custom replacement patterns — choose [REDACTED], [MASKED], or custom text
  • One-click copy sanitized text
  • Real-time detection as you type
  • All processing local — text never leaves your browser

How to Use

  1. 1Paste your AI prompt text into the input area.
  2. 2Sensitive data is automatically detected and highlighted.
  3. 3Review the detected items in the sidebar panel.
  4. 4Choose a replacement style: [REDACTED], [MASKED], or custom text.
  5. 5Click 'Sanitize' to replace all detected sensitive data.
  6. 6Copy the sanitized text to clipboard.
  7. 7Use the sanitized text when sending to AI services.
  8. 8Your original text is never stored or transmitted.

Frequently Asked Questions

What types of sensitive data does this tool detect?

The tool detects: API keys (OpenAI, Anthropic, Google, AWS, GitHub, etc.), email addresses, phone numbers, credit card numbers, IP addresses, URLs, SSN patterns, and custom patterns you define.

Is my text uploaded to any server?

No. All detection and replacement happens entirely in your browser using JavaScript. Your text is never sent to any server, stored, or transmitted. This makes the tool suitable for confidential prompts and sensitive data.

Can I add custom detection patterns?

Yes. You can add custom regex patterns to detect specific sensitive data formats unique to your organization. The tool supports regular expressions for flexible pattern matching.

What replacement options are available?

Default options include [REDACTED] and [MASKED]. You can also specify custom replacement text. The tool preserves the original text structure while replacing only the sensitive parts.

Does this work with non-English text?

Yes. The tool works with any text language. Detection patterns for API keys, credit cards, and email addresses are language-agnostic. Phone number detection supports international formats.

Can I use this for code files?

Yes. The tool can sanitize code files, configuration files, and any text content. It's useful for removing hardcoded credentials before sharing code or sending it to AI for review.

How accurate is the detection?

Detection is based on regex patterns and is highly accurate for common formats. However, it may miss obfuscated or non-standard formats. Always review detected items before sanitizing.

What happens to the original text?

The original text remains in the input area. The sanitized version is a separate output. You can switch between original and sanitized versions at any time.

Related Tools