How can I check that Git ignores my real env file but keeps the template?
Use Gitignore Rule Explainer to test the paths for your real .env and the generated .env.example against your repository rules separately.
Runs in your browser. No file uploads for processing.
Turn a local .env file into a names-only .env.example. Remove values and comments, deduplicate keys, and review the template before you share it.
Loading tool...
Try the synthetic file with export APP_PORT=3000, a quoted setting containing #, a multiline note and a duplicate APP_PORT assignment.
The example returns APP_PORT=, DATABASE_URL=, DISPLAY_NAME= and NOTE= in first-seen order. The key-shaped text inside the quoted note is not an assignment.
The new .env.example contains blank values only. Review variable names for confidential project details, and download the ZIP to preserve the leading dot in its .env.example filename. Use Clear workspace to remove the input from this tab.
The tool processes inputs in your browser. Account features and usage analytics are separate.
Use Gitignore Rule Explainer to test the paths for your real .env and the generated .env.example against your repository rules separately.
No. Each line contains an ASCII variable name followed by an equals sign. Names can still be confidential, so review them before you share the template.
Some browsers remove a leading dot from direct download names. The ZIP contains one file named .env.example, so the correct filename survives extraction.
No. The tool reads and processes the text in this browser tab and does not send the file or its contents to a server.
It records each variable name once in first-seen order. Lines within single- or double-quoted values are not treated as assignments.
The tool reports a line number without echoing the source text and does not offer a partial template.