| key | value |
|---|---|
| DB_PORT | 5432 |
| API_KEY | secret_key_123 |
| DEBUG | true |
| APP_NAME | Patchworkr |
{
"DB_PORT": "5432",
"API_KEY": "secret_key_123",
"DEBUG": "true",
"APP_NAME": "Patchworkr"
}.env values are parsed as strings, preserving quotes, while duplicate or invalid keys are flagged in the output.
JSON objects flatten into ENV keys using underscore paths when nested data appears, so you can see where reversibility becomes lossy.
Use ENV to JSON for config snapshots, or JSON to ENV when you need a flat deployment-friendly variable set.
Related Tools
Convert between CSV tables and JSON arrays.
Convert between INI files and JSON objects.
Convert between JPG images and WebP files.
Convert between PNG images and WebP files.
Convert between JPG images and PNG files.
Convert between JSON objects and XML documents.