Title here
Summary here
Paste a Java or Spring Boot application.properties file on the left to automatically group dot-separated prefixes (like spring.datasource.url) into clean, nested application.yml hierarchy on the right. Conversion happens 100% locally in your browser — credentials and JDBC strings never leave your device. Need the reverse? Use the YAML to Property Converter.
.properties to YAML mapping rules .properties Input |
Generated application.yml |
|---|---|
server.port=8080 |
server: → port: 8080 (numeric) |
spring.jpa.show-sql=true |
spring: → jpa: → show-sql: true (boolean) |
app.servers[0]=alpha / app.servers[1]=beta |
app: → servers: → - alpha / - beta |
logging.level.root=INFO |
logging: → level: → root: INFO |
# comment line |
Ignored during conversion |
application.properties to application.yml .properties, you might accidentally have both app.cache=true and app.cache.ttl=60. YAML cannot represent cache as both a boolean and a nested map at the same time — rename the boolean key (e.g., app.cache.enabled=true) before converting.0042 or numeric ZIP codes may be inferred as numbers; wrap them in quotes in YAML ("0042") if your application expects a string.@PropertySource limitation: Spring Boot loads application.yml natively, but the older @PropertySource("classpath:custom.yml") annotation only reads .properties files by default unless you configure a custom PropertySourceFactory.logging.level.org.springframework.web=DEBUG nests as logging: → level: → org: → springframework: → web: DEBUG, which Spring Boot reads back as the same property. It doesn’t understand Spring’s bracket notation (logging.level.[org.springframework.web] comes out split at the dots inside the brackets), so leave brackets out of the input and, if you want the package as one YAML key, write it by hand afterwards as "[org.springframework.web]": DEBUG.spring.datasource.* become nested application.yml maps, and keys ending in an index (list[0], list[1]) become YAML lists. An index inside a key stays part of its name (routes[0].id=a becomes a key routes[0] holding id: a), so lists of objects need tidying by hand.${DB_PASSWORD} in config files..properties stores everything as text, the converter inspects each value and emits native YAML booleans (true/false), null, and numbers (8080) where appropriate while keeping everything else as strings.