dotenv-example-generator

Paste a real .env, get a committable .env.example. Secret values are stripped, comments and structure are kept, and nothing ever leaves this page, so pasting live credentials here is safe.

zero network requests no external dependencies runs 100% in your browser
Placeholder style
Non-secret values

Off by default. When on, keeps only booleans, plain numbers, and localhost URLs without credentials. Everything else is still stripped.

output / .env.example
Sanitized output appears here live as you type.
.gitignore reminder
.env
.env.*
!.env.example

Why: a committed .env hands every credential inside it to anyone who can read the repo, and git history keeps the file even after you delete it. Ignore the real files, allow only the sanitized example.

Privacy is the whole point: this page makes zero network requests. Your .env is parsed in memory, in this tab, and is never uploaded, stored, or sent anywhere.