Skip to content

Tools/.env ↔ JSON/.env to JSON

.env to JSON

Paste KEY=value lines. This page opens as .env → JSON. Do not paste production secrets on a shared computer — the conversion is local, the screen is not private from shoulder surfers.

Same converter: all directions · JSON to .env

Loading tool…

How to use .env to JSON

  1. 1. Paste .env text. One KEY=value per line.
  2. 2. Copy JSON. Direction is .env → JSON on this URL.
  3. 3. Redact before sharing. Use the secret redactor if you need to screenshot.

About this tool

Dotenv files are not JSON. Some deploy UIs want a JSON blob of the same keys. This page is that conversion, not the reverse, and not a secrets manager.

export and quotes

export FOO=bar and quoted values are stripped in the usual dotenv way. Multiline values are easy to get wrong — keep them simple.

Code examples

env

API_URL=https://api.example.com
DEBUG=true

This is one direction of the shared converter. The editor is the same; the title and default direction match this search.

Frequently asked questions

Related tools

All tools