How to use .env to JSON
- 1. Paste .env text. One KEY=value per line.
- 2. Copy JSON. Direction is .env → JSON on this URL.
- 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