code
lock Free · Private · In-Browser
JSON to .env Converter
Flatten a JSON object into .env variable lines.
JSON config into .env
Moving configuration from a JSON object into a .env file means flattening nested keys and uppercasing them. This converter does that transformation in one step.
A nested database object becomes DATABASE_HOST and DATABASE_PORT lines. Booleans and numbers come through as-is, giving you a ready-to-use .env from a JSON config.
Useful and private
The conversion runs in your browser, so your config is never uploaded.
Frequently Asked Questions
What does it produce?
KEY=value lines suitable for a .env file, with nested keys joined by underscores and uppercased.
How are nested objects handled?
They are flattened, so a nested key becomes PARENT_CHILD in uppercase.
Can I copy the output?
Yes. The .env lines are shown and one click copies them.
Take it further
All Free Tools
Browse the full set of free, private, in-browser tools.