.env and JSON Converter
Convert environment-file assignments to a JSON object of strings, or prepare .env text from JSON values.
Runs in your browser.
Tool settings
Result
How to use this tool
Paste simple .env assignments or a flat JSON object. Variable values from .env are exported as strings.
Example input
APP_NAME="Demo App"
PORT=8080