Skip to content

📝 .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

📥 Input (.env)

📤 .env.example

➕ Add from form

Pick a key name and category to append to the .env.example.

📖 How to Use

  1. 1
    Paste your real .env
    Paste your real .env into the left textarea. You can also start from a preset.
  2. 2
    Auto-sanitize
    Keys with PASSWORD/SECRET/TOKEN/KEY become random placeholders; URLs become example.com; ports become typical values like 3000.
  3. 3
    Get a commit-safe file
    Copy 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.
🐛 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.

* Browser info (UA / screen / language / URL) is sent automatically to help reproduce the issue