deftools.io Security

AI Log Sanitizer

Anonymize logs before pasting into AI — strip emails, IPs, API keys, secrets, and PII

0 chars
0 chars

About this tool

Pasting logs into ChatGPT, Claude, or any AI chat is a common debugging workflow — but logs often contain secrets, emails, IPs, API keys, and other sensitive data you should not share with third parties.

This tool scans your text for: email addresses, public IP addresses, API keys (AWS, GitHub, Stripe, Slack, OpenAI, Anthropic), JWTs, credit card numbers (validated via Luhn algorithm), passwords in key=value pairs, connection strings with credentials, Bearer tokens, and user paths like /home/username.

Each detected value gets a consistent placeholder like <EMAIL_1> or <STRIPE_SECRET_2>. The mapping table shows every replacement. After the AI responds, paste the answer into the restore field — the placeholders are swapped back to the original values.

Example: Error at 203.0.113.5 — user alice@example.com, token sk-live-abc123Error at <IP_1> — user <EMAIL_1>, token <STRIPE_SECRET_1>

FAQ

Are my logs sent to any server?

No — all detection and replacement runs in your browser. Your logs never leave your machine.

What if the same value appears multiple times?

The tool assigns the same placeholder to every occurrence, so you can safely restore them all in one pass later.

Does it keep local/private IPs?

Yes — 10.x.x.x, 172.16-31.x.x, 192.168.x.x, 127.0.0.1, and 0.0.0.0 are left unchanged since they are non-routable and carry no privacy risk.

How does the restore feature work?

After the AI responds, paste its text into the restore box and click Restore. Every placeholder in that text is swapped back to its original value using the mapping from the last sanitization.

Related security tools

Copied!