.env Parser
Parse and validate .env files — view all variables, detect issues, export as JSON, and convert between formats.
About .env Parser
This tool parses .env files following the dotenv specification: it handles comments (lines starting with #), quoted values (single and double quotes), inline comments, multi-line values, and variable interpolation. The parsed output is exported as clean JSON for use in code generation, migration scripts, and documentation.
FAQ
What .env syntax is supported?
Standard dotenv syntax: KEY=value, KEY="quoted value", KEY='single quoted', # comments, blank lines (ignored), inline comments (KEY=value # comment). Leading/trailing whitespace is trimmed from unquoted values. Export prefix (export KEY=value) is also handled.