milotic

.env ↔ JSON converter

Paste a .env file to get a flat JSON object, or paste a JSON object to get canonical KEY=value lines. Every dotenv value is a string — $VAR refs are preserved verbatim, not expanded. Runs locally in your browser — no server round-trip.

Direction
Paste a .env file — get a flat JSON object. Every value is a string (dotenv spec); $VAR refs are kept verbatim, not expanded.
.env input
dotenv format — comments, double + single quotes, `export` prefix, `\n` escapes inside doubles.
Output
Paste a .env file above to see the converted output here.