Turn a JSON object into ENV variables

Developers and operations teams choose JSON to ENV when moving configuration or structured data between tools.

Turn a JSON object into ENV variables, then reuse a structured result that is easy to review. Use it for free in your browser, with no account required.

How to use

  1. Provide a JSON object in the input area, or import a .json, .toml, .ini, .env, .jsonl, .ndjson, .sql or .txt file.
  2. Start the conversion by clicking the Convert button.
  3. The result shows the corresponding environment variables, one per line.
  4. Check that names and values are correct, then copy the output.
  5. Use the Erase button to clear the fields and start over.

Example

You are preparing a .env file for an application. You start from a JSON configuration object, for example with keys like database_host and api_key. The conversion produces lines in KEY=value format, easy to paste into your environment file.

Limits and formats

Where processing happens

The conversion runs in your browser: no data is sent to an external service. Your configuration keys therefore stay local throughout the operation.

Frequently asked questions

How are nested keys in the JSON handled?

Nested objects are often flattened with a separator, such as an underscore, to form a unique variable name. The exact result depends on the structure. Check the output to make sure the names suit your needs.

Can I convert a JSON array into ENV variables?

An array can be turned into a list of values or indexed variables. The tool does not provide a universal convention. It is best to test with a small example and adjust manually if needed.

Are numeric or boolean values preserved?

Yes, numbers and booleans are converted to their text representation. For example, true becomes the string true, and 42 becomes 42. You may need to add quotes depending on your usage.

Tools in the same category