YAML to Properties Converter

Flatten a nested YAML file such as application.yml into dotted key=value lines for a Java .properties file.

YAML
.properties
Runs locally in your browser

About the YAML to Properties Converter

Spring Boot, Quarkus and many Java tools accept both YAML and .properties, and teams sometimes need to move between them, for example because a deployment platform only injects flat properties. This converter walks the YAML tree and emits one line per leaf value with the path joined by dots, so spring.datasource.url=jdbc:.... Lists are written with numeric indexes in square brackets, servers[0].host, which is the form Spring Boot binds.

Values are written verbatim; newlines inside a value are escaped as \n so each property stays on one line. Booleans and numbers are written as their text form, which is how properties files store everything anyway. Null values become an empty right-hand side.

Comments are not carried across. The Properties to YAML tool goes the other way and rebuilds the nesting from the dots.

How to use

  1. Paste the YAML on the left.
  2. Copy the properties on the right.
  3. Save as application.properties or paste into your environment configuration.

Common questions

How are lists represented?
With indexed keys such as list[0], list[1], which Spring Boot and Quarkus both bind to lists.
Are special characters escaped?
Newlines become \n. Other characters are left as-is; = and : inside values are legal in the value position of a properties file.
What about profile-specific documents separated by ---?
Only the first document is converted. Split multi-profile files first.