Convert .env files to JSON and back
.env to JSON parses KEY=VALUE lines into a JSON object, and can also convert a flat JSON object back into .env lines, entirely in your browser — nothing is uploaded to a server. It skips blank lines and lines starting with #, and strips a single matching pair of surrounding quotes from each value; it doesn't expand variable references like ${OTHER_VAR} or support multi-line values.
Is .env to JSON free to use?
Yes, it's completely free with no signup required.
What .env syntax does it understand?
KEY=VALUE lines, blank lines, and # comments (both ignored). A single pair of surrounding single or double quotes is stripped from each value.
Does it expand variable references like ${OTHER_VAR}?
No, values are taken literally as plain text — variable interpolation isn't resolved.
Is my data uploaded to a server?
No, parsing and conversion happen entirely in your browser.