Free tools.env & Secret Leak Scanner
Catch leaked API keys before they hit Git or an AI prompt.
Paste a .env file, config, CI script or error log —
or drop a file — to flag exposed API keys, cloud tokens, database URLs, JWTs and private keys
locally in your browser, and copy a redacted version in one click.
1. Paste config, .env or logs — or drop a file
Paste a .env file or click “Load sample .env” to scan locally.
2. Findings
0 found3. Safe redacted copy
Safe to share in bug reports, tickets, CI configs or AI chats.
What this scanner catches — and what to do if a key leaked
- 25+ provider patterns + entropy checks: OpenAI, Anthropic, AWS Access/Secret keys, GitHub, GitLab, Stripe, Google Cloud / Firebase, Slack, Discord, Telegram, Twilio, SendGrid, Cloudflare, npm, PyPI, Supabase, database URLs with passwords, PEM private keys and JWTs.
- Already committed or pasted a real secret? Redacting a copy prevents new leaks, but any key already pushed to Git or sent to a third party should be rotated immediately at the provider.
- Static checks are not exhaustive: custom internal tokens without a recognisable prefix or variable name can still slip past regex rules — always review before sharing.
Stop storing API keys in plaintext .env files
With Passhold Agents and passhold mcp, AI
coding tools and scripts use granted API keys in a separate encrypted vault with human
approval — and every secret is scrubbed before output returns to the model.