Config Converter
Convert configuration files between .env, appsettings.json, secrets.yaml, and config.toml. Works as a standalone utility — no authentication or project required.
Supported Formats
| Format | Extension | Description |
|---|---|---|
| dotenv | .env | Standard key-value pairs. |
| ASP.NET Settings | appsettings.json | Nested JSON for .NET IConfiguration. |
| Kubernetes Secrets | secrets.yaml | YAML manifest with base64-encoded values. |
| TOML | config.toml | Tom’s Obvious Minimal Language. |
All format combinations are supported in any direction.
Web Converter
Available at /converter in the dashboard. Side-by-side layout: paste or upload source config on the left, choose target format on the right, and the converted output appears automatically. Copy to clipboard or download.
CLI Usage
depvault convert --file <path> --from <format> --to <format> [--output <path>]| Flag | Description | Required |
|---|---|---|
--file | Path to the input file. | Yes |
--from | Source format: env, appsettings.json, secrets.yaml, config.toml. | Yes |
--to | Target format (same options). | Yes |
--output | Output file path. Prints to stdout if omitted. | No |
Examples
# .env to appsettings.json
depvault convert --file .env --from env --to appsettings.json --output appsettings.json
# YAML to TOML
depvault convert --file secrets.yaml --from secrets.yaml --to config.toml --output config.toml
# Preview to stdout
depvault convert --file config.toml --from config.toml --to envThe convert command is fully offline — no API calls, no authentication.
Edge Case Handling
- Comments — Preserved when the target format supports them (TOML); stripped otherwise (JSON, YAML).
- Multiline values — Expanded into proper multiline syntax per target format.
- Special characters — Properly escaped or quoted in the output.
- Nested keys —
appsettings.jsonnested objects are flattened with__separators in flat formats (e.g.,CONNECTIONSTRINGS__DEFAULT). Keys with__in.envare expanded into nested objects when converting to JSON.
Conversion Matrix
| From \ To | .env | appsettings.json | secrets.yaml | config.toml |
|---|---|---|---|---|
.env | — | Flat to nested via __ | Base64 encode | Group by prefix |
appsettings.json | Flatten with __ | — | Base64 encode | Map to TOML tables |
secrets.yaml | Base64 decode | Decode and nest | — | Decode and group |
config.toml | Flatten with __ | Map tables to objects | Base64 encode | — |