ENV ⇄ JSON
Input
Paste or drop your data here, or open a file.
New to Bracely?
Everything stays in your browser.
Compare with
Output
ENV to JSON Converter
A .env file holds an app's settings as KEY=value lines. Paste one to read it as JSON, the way dotenv reads it, or write JSON settings as a .env file for Docker, Node, Python or your CI.
How do I use the ENV ⇄ JSON?
- Paste a .env file, or drop one.
- Pick how keys nest (DB__HOST → {"DB": {"HOST": …}}) and whether numbers and true/false become JSON values.
- Switch to JSON → .env to write one, then Save to download it.
What does the ENV ⇄ JSON do?
- Comments, blank lines and export KEY=value
- 'single quotes' as written, "double quotes" with \n escapes and line breaks
- Nested keys on __, . or _, as ASP.NET and many config libraries use
- The same key twice: the last one wins, and it says so
- JSON → .env joins nested keys into names like DB_HOST
- Quotes a value only when it needs it
Frequently asked questions
- Are my secrets uploaded?
- No. The conversion runs in your browser, so the values in your .env file never leave your device.
- Is my data uploaded?
- No. Bracely runs entirely in your browser, so nothing you paste or open leaves your device.
More JSON tools
Bracely has more than 65 JSON tools in one page. Related ones:
- cURL to code
- GraphQL request
- MessagePack ⇄ JSON
- Parquet viewer
- Avro viewer
- JSON to YAML
- JSON to CSV
- JSON to XML
- JSON to Excel
- YAML to JSON
- CSV to JSON
- XML to JSON
- JSON to TOML
- TOML to JSON
- JSON Schema to TypeScript
- OpenAPI to TypeScript
- Convert JSON key case
- Remove nulls from JSON
- JSON Formatter
- JSON Validator
- JSON Viewer
- JSON Repair
- JSON Diff
- jq Playground
Runs entirely in your browser. Nothing you paste is uploaded. Made by Saurabh Pagrut. About · Privacy policy
Last updated · Version 4.8 · Changelog
Saurabh Pagrut on GitHub · LinkedIn · X · YouTube · Instagram