Config Converter
Convert between flat .env, properties, INI and JSON config formats in your browser.
- Runs locally in your browser
- No upload required
Try it
Supported formats
Privacy
Runs entirely in your browser. Your input is never uploaded, stored, or sent to a third party.
Converted 2 key(s) from dotenv to json.
How it works
- Parsed the dotenv document into an ordered key/value list.
- Validated each key against the flat config key grammar.
- Serialized the mapping as json, preserving key order.
- Comments are not preserved across formats that cannot express them.
- Only flat key/value documents are supported; nested JSON objects beyond one level are rejected.
Methodology
- Parse the source document into an ordered list of key/value pairs, tracking INI sections.
- Validate every key against the flat config key grammar and reject nested structures.
- Serialize the pairs for the target format, preserving order and section membership.
Usage
- Choose the source and target formats.
- Paste the flat key/value document.
- Copy the converted output.
Examples
These are examples, not current values: they use fixed inputs, while the interactive tool computes live results in your browser.
.env to JSON
{
"source": "dotenv",
"target": "json",
"text": "NODE_ENV=production\nPORT=3000"
}INI to properties
{
"source": "ini",
"target": "properties",
"text": "[server]\nhost=db.internal\nport=8080"
}Limitations
Flat by design
Flat configs are a sequence of key=value pairs, optionally grouped into INI sections. Keeping the converter flat lets it round-trip keys without inventing a schema, and it stays honest about what it cannot represent.
Frequently asked questions
- Can I convert nested YAML or TOML?
- No. Use the dedicated JSON/YAML converters for nested documents; this tool is intentionally limited to flat key/value configs.
- Are comments preserved?
- No. Parsing keeps keys and values; comments are dropped because the target format may not support the same comment syntax.
Sources
- Java Properties file format — Oracle
- INI file format — Wikipedia
Send feedback
Tell us if this tool helped, report a problem, or suggest a tool. Only the message you type is sent — never the input you used in the tool.
Was this tool useful?
Prefer to write to us directly? See the contact page.