About the Properties to YAML Converter
A .properties file encodes hierarchy in its key names: spring.datasource.url is really a three-level path. This converter splits each key on dots, builds the nested mapping, and emits YAML with two-space indentation. Keys that share a prefix are grouped, so ten logging.level.* lines become one logging: block.
Both = and : separators are accepted, comments starting with # or ! are skipped, and blank lines are ignored. Values are kept as strings; if you want booleans and numbers typed, run the output through the YAML Formatter, which will still quote anything ambiguous.
Keys with indexed segments such as servers[0].host are treated as literal key names rather than expanded into lists, to avoid guessing wrong. Fix those few by hand after converting.
How to use
- Paste the properties file on the left.
- Copy the YAML on the right.
- Review any indexed keys and convert them to lists if your framework expects them.
Common questions
- Does it handle multi-line property values?
- Backslash line continuations are not joined; put the value on one line first.
- Why are all values quoted or unquoted inconsistently?
- Values are emitted as strings and quoted only when YAML would otherwise read them as another type. That keeps the data identical.
- Can I convert several profile files at once?
- Convert each one separately, then join them with --- separators.