.env Example Generator
Turn a .env file into a shareable .env.example with the secret values removed.
Secrets are detected by key name and redacted. Everything runs in your browser — nothing is uploaded.
Runs in your browser. Nothing you open or type here is uploaded.
How to use
- Paste your .env file into the input.
- Choose a value style: empty values or placeholder values.
- Decide whether to keep comments and blank lines, then click Generate.
- Review the output, then copy it or download it as .env.example.
Details
The tool reads a .env file and produces the shareable template version, with secret values removed. Secrets are detected by key name with a case-insensitive check: keys containing password, passwd, pwd, secret, token, apikey, api_key, private_key, client_secret or auth are treated as secrets and redacted. The stats line reports how many variables were found, how many were treated as secrets and how many comments were kept. The result is the .env.example file you commit to a repository, so new contributors see which variables the app needs without seeing real values.
- Detection is a heuristic based on key names only. Always review the output before sharing it.
- Only single-line KEY=VALUE assignments are parsed and stripped. Multiline values pass through unchanged, so check them by hand.
- Everything runs in your browser — your real values never leave your device.
Common questions
How are secrets detected?
With a simple case-insensitive key-name check: keys containing password, passwd, pwd, secret, token, apikey or api_key, private_key, client_secret, or auth are treated as secrets and redacted. It's a heuristic — always review the output before sharing it.
Is my .env uploaded anywhere?
No. Like every WieldKit tool, all processing happens locally in your browser — your values never leave your device.
What about multiline values?
Only single-line KEY=VALUE assignments are parsed and stripped. Multiline values and other formats pass through unchanged, so double-check the output before sharing it.
Why commit .env.example to a project?
It documents every variable your app needs without exposing real values — new contributors copy it to .env and fill in their own secrets.