tools/java/properties ↔ yaml
// javanew

properties ↔ yaml

convert spring boot application.properties ↔ application.yml

  // browser
.properties
.yaml
// probulk file conversionpro·history syncproupgrade →

// about this tool

Spring Boot accepts both application.properties and application.yml. Properties files use flat dotted keys (spring.datasource.url=…), while YAML uses indented nested maps. This converter handles both directions: dotted keys become nested YAML maps, indexed array keys (list[0]=x) become YAML sequences, and values that would confuse a YAML parser are automatically quoted.

// when to use

  • Migrate a legacy application.properties to the more readable YAML format
  • Convert a YAML snippet from documentation into properties format to merge with an existing file
  • Understand how a deeply nested YAML key maps to its properties equivalent
  • Quickly check that a properties key and its YAML counterpart are equivalent

// faq

Are comments preserved?
Comments in .properties files (lines starting with #) are stripped during conversion because YAML comment placement cannot be reliably inferred from flat key order. Add comments manually after converting.
Does it support multi-document YAML or anchors?
No — only single-document YAML without anchors, aliases, or complex scalars. This covers 99% of Spring Boot application.yml files. For advanced YAML features, use a full YAML library.
// history
Pro Cloud Sync — upgrade
no operations yet