Nested keys
{"database": {"host": "db"}} becomes DATABASE__HOST=db.
{"database": {"host": "db"}}Paste a JSON object. Each value becomes a NAME=value line.
Check the output before committing it. A .env file often holds secrets, and it belongs in .gitignore.
Ctrl+Enter or ⌘+Enter runs this tool immediately.
Waiting for input.
Parsing stays in this browser. Input is not uploaded or saved.
{"database": {"host": "db"}} becomes DATABASE__HOST=db.
{"database": {"host": "db"}}p@ss word is written as DATABASE__PASSWORD='p@ss word'.
{"database": {"password": "p@ss word"}}Convert a .env file to JSON in the browser. Every value stays a string, duplicate keys are errors, and $ references are not expanded.
Check a .env file without converting it. Duplicate keys, missing equals signs, and $ references are errors, and the editor text is not rewritten.
Validate JSON, then pretty-print it with 2 or 4 spaces or minify it. Invalid JSON produces an error and leaves the output empty.