JSON to env Converter
Flatten JSON config into .env files and back.
DATABASE_HOST=localhost DATABASE_PORT=5432 DATABASE_NAME=myapp REDIS_URL="redis://localhost:6379" DEBUG=true TAGS="[\"api\",\"v2\"]"
Convert nested JSON config to flat .env style and back. Useful when migrating between config formats. Nested keys flatten with underscores. Arrays serialize as JSON strings.
About
Paste a JSON config. The tool flattens nested keys with underscores and outputs .env style. Reverse direction parses .env files into nested JSON. Several key style options.
How to use
- Pick direction.
- Paste your config.
FAQ
What about arrays?+
Arrays serialize as JSON strings inside the .env value. Most apps expect to JSON.parse them back. For simple lists, comma-separated values are easier to read.