Properties↔YAML Converter

Convert application.properties to application.yml and back — indexed keys become lists, and types are handled the way Spring binds them.

In-browser & private
Advertisement

Comments are not carried across: a properties comment has no unambiguous home in the nested YAML it becomes, and inventing one would move it somewhere wrong.

application.properties
application.yml
Properties Depth Size 0 B Ready

How the two shapes line up

  • Dots become nesting. spring.datasource.url is three levels of YAML, which is the whole reason the file is easier to read.
  • Indexed keys become lists. app.origins[0] and [1] turn into a YAML sequence — the form Spring binds a List<String> from.
  • Types are inferred the way Spring binds them. 8080 becomes a number and true a boolean, but 1.0.0 stays a string, and anything ambiguous is quoted on the way out.
  • A colon in a value is safe. jdbc:mysql://… is one value, not a nested key, in both directions.

More free tools