Converts a flat JSON object into .env format.
JSON to .env converts a flat JSON object into dotenv-formatted environment variables, turning each key/value pair into a KEY=value line. It's handy when you have a config object and need a quick .env file for a project, container, or CI pipeline. Everything runs in your browser, so your config never leaves your machine.
No. The conversion runs entirely in your browser using client-side JavaScript, and nothing you paste is uploaded or stored anywhere. The site is open source so you can verify this yourself.
It expects a single flat JSON object, such as {"PORT": 3000, "DEBUG": true}. Top-level arrays or non-object values (like a bare string or number) are rejected with an error.
If a value is itself an object or array, it is serialized back to a JSON string and used as the value. Only the top level is flattened into KEY=value lines; nested keys are not expanded into separate variables.
A value is wrapped in double quotes when it contains whitespace, a hash (#), a quote, or an equals sign. Any inner double quotes are escaped with a backslash so the resulting .env line stays valid.
A null value becomes an empty assignment, so the key is written as KEY= with nothing after the equals sign. Booleans and numbers are written as their plain string form, like DEBUG=true or PORT=3000.