YAML to properties converter
Paste YAML settings to get key=value lines ready for a properties file. Handy for moving Spring settings between the two formats.
Loading the tool…
Processing and privacy: The result is calculated inside your browser and your data is not sent to any server.
How to use it
- Enter yaml text, list item style and escape non-ascii as \uxxxx.
- The result appears straight away and updates as you edit.
- Copy the result, or copy a link that keeps the same values to share it.
How it is calculated
YAML is read with the YAML 1.2 core schema, then each value's path is joined with dots such as spring.datasource.url, and list items use [0] brackets or dots. Spaces, = and : are escaped in keys, line breaks as \n in values, and non-ASCII letters can become \uXXXX.
Example
Inputs: List item style = Brackets list[0] (Spring), Escape non-ASCII as \uXXXX = no. Result: .properties: server.port=8080 spring.application.name=demo spring.datasource.url=jdbc:mysql://localhost:3306/shop spring.datasource.username=root app.languages[0]=ar app.languages[1]=en ; Keys: 6.
server:
port: 8080
spring:
application:
name: demo
datasource:
url: jdbc:mysql://localhost:3306/shop
username: root
app:
languages:
- ar
- en
server.port=8080 spring.application.name=demo spring.datasource.url=jdbc:mysql://localhost:3306/shop spring.datasource.username=root app.languages[0]=ar app.languages[1]=en
Limits and caveats
- The tool supports a clear YAML subset: maps, lists, scalars, quoted strings, | and > block scalars and [ ] and { } flow collections. Anchors &, aliases *, tags ! and multiple documents are rejected with a clear message.
- Empty maps and lists are not written, and comments are dropped.
Questions about this tool
Does Spring Boot read the output directly?
Yes. a.b.c and list[0] are the forms Spring Boot binds to configuration properties.
What about multi-document YAML with ---?
The tool reads one document. Split each profile out and convert it on its own.
How are multi-line values written?
On one line with \n for every line break, which is what Java reads back.
