sapienkit
Files never leave your browser

Convert .env Files to JSON and Back

100% browser-basedFiles never leave your deviceFree & unlimited

Paste a .env file and get a JSON object, or paste JSON and get .env format. Handles comments, multiline values, and quoted strings.

Useful when migrating between configuration formats, loading environment variables into JavaScript objects, or sharing config with a team in a more structured format.

Direction
.env Input
JSON Output
Paste .env to convert

Frequently Asked Questions — Env to JSON

Yes. Comments (lines starting with #) and empty lines are ignored during conversion.

Yes. It works both directions — .env to JSON and JSON back to .env key=value format.

Yes. Single and double quotes around values are stripped properly, following standard .env parsing rules.