.env ↔ JSON converter — offline
Move between environment files and JSON without your secrets ever leaving the browser.
100% private — files never leave your device
.env
JSON
How it works
- 1
Pick the direction (.env → JSON or JSON → .env).
- 2
Paste the content — conversion is live.
- 3
Copy the converted result.
Related tools
Frequently asked questions
Is it safe to paste a real .env file here?
Yes — that's the point. .env files are full of secrets, and this converter runs entirely in your browser: nothing is transmitted, logged, or stored. Verify in DevTools → Network.
What syntax is understood?
KEY=value lines, single/double quotes, escaped \n in double quotes, comments (# …), and optional export prefixes.
Why must the JSON be flat?
.env has no nesting — every entry is a single key and a string value, so nested JSON objects can't be represented.