Java Properties To Yaml
Java Properties to YAML Converter
Convert any .properties file into clean, indented YAML. Dotted property keys are reconstructed into nested YAML structure. Array indices in bracket notation (key[0]) are automatically detected and converted to YAML list items.
Use Cases
- Spring Boot Migration — Convert
application.propertiestoapplication.yml - Config Modernization — Move from legacy Java property files to YAML
- Cross-Platform Config — Bridge Java configuration into YAML-native toolchains
- Documentation — Generate readable YAML from flat property files
Example
Input (Java Properties):
app.name=MyApp
app.version=1.0.0
app.servers[0]=192.168.1.1
app.servers[1]=192.168.1.2
app.database.url=jdbc:postgresql://localhost:5432/mydb
app.database.pool.maxActive=10Output (YAML):
app:
name: MyApp
version: "1.0.0"
servers:
- 192.168.1.1
- 192.168.1.2
database:
url: jdbc:postgresql://localhost:5432/mydb
pool:
maxActive: "10"