Skip to main content
>_devtools

.env and JSON Converter

Convert .env files to JSON or JSON objects to .env, with options for value types, key names, and quoting.

Converts .env text to JSON or JSON objects to .env lines. Choose a direction, adjust its options, and copy or download the converted text.

Example

Input (.env)
PORT=8080
DEBUG=false

Output (default string values)
{
  "PORT": "8080",
  "DEBUG": "false"
}

Limits and behavior

  • Input is limited to 2 MB.
  • The reverse direction requires a top-level JSON object; interpolation remains text.