Free tools.env Sanitizer & Diff
Turn any .env into a safe .env.example.
Keep comments, structure and safe config defaults while wiping
every secret value — or output a commit-ready passhold:// template and diff key
names between environments offline under default-src 'none'.
1. Paste or drop .env
2. Safe output
# Paste a .env file on the left to generate a clean .env.example
Ready — paste a .env file or click “Load sample”.
1. Compare two environment files (names only — values never printed)
2. Key drift summary
Waiting for inputPaste two files above or click “Load sample diff” to spot missing or undocumented keys.
Move past plaintext .env files altogether
- Safe defaults list: when “Keep non-secret defaults” is checked, only benign
runtime variables (
NODE_ENV,PORT,TZ,LOG_LEVEL,PUBLIC_*,NEXT_PUBLIC_*,VITE_*, and keys ending in_PORT,_HOST,_TIMEOUTor_ENABLED) keep their values — everything else is stripped by default. - Ready for
passhold run: choose thepasshold://output style, commit the reference file cleanly to Git, bulk-import your real file once withpasshold import --env .env --agent-vault Dev, and delete the plaintext.envfrom disk. - Auditing logs or configs? Use .env & Secret Leak Scanner to flag 25+ provider key formats across arbitrary text.
Inject secrets in memory with passhold run & passhold mcp
Import your existing .env in one command
(passhold import --env .env --agent-vault Dev) and let scripts or AI agents
use secrets without keeping plaintext keys on disk.