Convert a .env file to JSON and JSON back to .env, in both directions, entirely in your browser.
How to use the ENV / JSON
Choose a direction: .env to JSON or JSON to .env.
Paste your .env contents or a JSON object.
Copy the result, or swap to convert back.
Frequently asked questions
Comment lines starting with # and blank lines are ignored, an optional export prefix is removed, and surrounding quotes are stripped from values.
When writing .env, values containing spaces or special characters are wrapped in double quotes so they parse correctly.
No. The conversion runs entirely in your browser, so your environment variables never leave your device.
A two-way converter between .env files and JSON, handling comments, the export prefix and quoted values.
It runs locally in your browser, so your configuration and secrets stay private.
Related tools
Generate SHA-1, SHA-256, SHA-384 and SHA-512 hashes of any text, right in your browser.
Convert colors between HEX, RGB and HSL with a live preview.
Convert Unix timestamps to human dates and back — UTC, local, ISO 8601 and relative time. Seconds and milliseconds are auto-detected.
Percent-encode and decode URLs and URL components, UTF-8 safe.
We use essential cookies to run the site. With your consent we also load Google AdSense, which sets advertising cookies. See our privacy policy.