.env to JSON Converter

Everything runs locally in your browser — your .env values, keys, and secrets never leave your browser.
0 keys

.env Input

JSON Output

What the parser supports

  • • KEY=value pairs, blank lines
  • • Optional export prefix
  • • Full-line and inline # comments
  • • Duplicate-key warning (last value wins)
  • • Double-quoted values with \n \t \" \\ escapes
  • • Single-quoted (literal) and multiline quoted values
  • • JSON → .env flattens nested keys with _ or . join
  • • Optional type parsing for numbers, booleans, and null