ConversionNested objects flatten into single-level keys by the chosen delimiter (db.host → DB_HOST) and arrays expand by index. Values with spaces or special characters are quoted; null becomes an empty value with a notice.
JSON sourceJSON
Load some data
.env text.env
Load data and the result will appear here
JSON config → environment variables

JSON to .env

Nested object → KEY=VALUE · auto-flatten and quote · uppercase option · runs locally

🔒Processed locally in your browser — never uploaded or stored

No upload, no storage

JSON is processed in memory and never sent to a server.

Share via URL fragment

Share links encode data in the # anchor — never sent to a server.

Remember last edit

Optionally keep your last input locally; clear it with one click.

Why use JSON to .env

Nesting flattened for you

db.host becomes DB_HOST and arrays expand by index; pick underscore or dot as the level delimiter.

Quoting and escaping done right

Values with spaces, hashes, quotes or newlines are quoted and escaped so dotenv reads back exactly what you meant.

Uppercase in one switch

Follow the env-var convention with uppercased keys, or keep the original casing.

Losses are reported

null written as empty and skipped empty containers are counted — config entries never just disappear.

Local · no upload

Config and secrets stay in your browser; nothing is uploaded or stored.