📝 .env.example Generator
Paste your real .env and the tool replaces values with safe placeholders while preserving comments and structure, producing a .env.example you can safely commit to Git.
✅ 100% free, no signup, runs entirely in your browser
🔒 Privacy is our top priority
- ・Your .env contents are NEVER uploaded to any server
- ・All processing runs entirely in your browser via JavaScript
- ・No storage logs, no history, no database
- ・For extra peace of mind, you can disconnect from the network and it still works
📥 Input (.env)
📤 .env.example
➕ Add from form
Pick a key name and category to append to the .env.example.
📖 How to Use
-
1
Paste your real .envPaste your real .env into the left textarea. You can also start from a preset.
-
2
Auto-sanitizeKeys with PASSWORD/SECRET/TOKEN/KEY become random placeholders; URLs become example.com; ports become typical values like 3000.
-
3
Get a commit-safe fileCopy the right output, or download as .env.example, then git add and commit.
❓ FAQ
Are you absolutely sure my .env is not uploaded?
Yes. Everything is processed in your browser by JavaScript. You can verify zero network requests in the Network tab. If still concerned, you can run it offline.
Which keys are detected as secrets?
Keys whose name contains PASSWORD, SECRET, TOKEN, KEY, API_KEY, PRIVATE, or CREDENTIAL are auto-treated as secrets and replaced with random placeholders.
Are comments and blank lines preserved?
Yes. Section comments and blank lines used for grouping are preserved. Toggle off Keep comments to strip them.
🔗 Related Tools
🐛 Found a bug or issue with this tool?
Free to use, no signup. Even just the steps to reproduce are helpful. Reports go directly to the operator and help us fix issues.
✅
Thanks for your report!
Your report has been delivered to the operator and will be used to improve the tool.