.env Converter help
.env Converter moves a set of key and value pairs between three formats: the dotenv format, a flat JSON object, and a one-level YAML mapping.
Steps
- Paste your file and pick the format it is in.
- Pick the format you want out.
- Copy the result. For JSON you can also re-type numbers and booleans.
Common questions
Are values typed?
By default every value is a string, which matches how environment variables work. JSON output has an option to turn 3000 into a number and true into a boolean.
Does it support nested keys?
No. Environment files are flat, so nested JSON objects are rejected rather than flattened.
What about multi-line values?
A value quoted with double quotes may contain \n for a newline. Raw line breaks inside a value are not supported.
Does anything leave my browser?
No. The tool runs entirely on this page.
Everything runs in your browser. Nothing you enter or drop is uploaded.
Back to .env Converter