Why .env parsing is a thing
Every modern project uses environment variables — dotenv in Node, python-dotenv in Python, docker-compose env_file. But env files have quirks: quotes, escapes, comments, and no official cross-language standard. A quick parse-and-validate catches the classic mistakes before they cost you a debugging afternoon.
What the parser checks
- Syntax: lines must be
KEY=value— spaces around=are trimmed/tolerated (some parsers reject them), no stray quotes, no tabs. - Quotes: double quotes allow escapes (
"a\nb"), single quotes are literal; the parser handles both. - Comments:
#lines and inline# comment(outside quotes) are stripped. - Secret spotting: keys like
API_KEY,PASSWORD,SECRET,TOKENwith long values get flagged — if those are in a committed file, that's a leak.
Good habits
- Never commit
.env— commit.env.examplewith placeholder values instead. - Rotate any key that was ever committed, even briefly — assume exposure.
- Use
.env.localfor personal overrides and keep it gitignored too. - This tool runs fully in-browser — your keys never leave the tab, which is more than most "env editors" can say.
How the conversion runs
parse() scans the file line by line: blank lines and comments are skipped, export prefixes are recognised, each line is split at the first equals sign, surrounding quotes are stripped, and anything that fails the shape is collected as an error with its line number instead of being silently dropped. Entries that look like credentials — long random strings, known key prefixes — are flagged separately so you notice them before copying the output somewhere.
Edge cases and hard limits
Text parsing only. The variables are not loaded, not executed, and nothing is connected to a service. Multi-line values, variable interpolation such as ${VAR}, and full escape semantics are not implemented, because the loader's behaviour differs between tools and guessing would be worse than declining. The secret detection is heuristic: it misses unusual formats and occasionally flags long identifiers.
Privacy: processed in your browser
The file is parsed in memory and nothing is stored or sent. Config files often contain real credentials, which is exactly why the page flags them and why you should not paste production secrets anywhere online.
Frequently asked questions
Are these variables actually loaded?
No. The file is parsed into key/value pairs for display only — nothing is injected into an environment and no request is made.
Does it support ${VAR} interpolation?
No. Interpolation depends on the loader, and a browser cannot reproduce it faithfully.
Why are some values highlighted?
They look like credentials — long random strings or known prefixes. It is a warning not to paste real secrets into any online tool, including this one.