YAML to Properties
Flatten a YAML mapping into a .properties file, ready for Spring or a Java deployment.
What YAML to .properties does
Nesting becomes dots — database.host = localhost — and arrays become indices, so a list of replicas survives as replicas.0, replicas.1. Values are written as the text they are: a YAML 5432 is the string 5432 here, because a properties file has no types. Separators and newlines inside a value are escaped rather than allowed to break the line, and a comment in the YAML is lost, since the output format has no comment syntax that would survive a JSON detour.
How to use it
YAML to Properties: paste the YAML into the box above, and press Run to get the .properties below.
Worked example
Input:
app:
name: billing
timeout: 30s
database:
host: localhost
port: 5432
Output:
app.name = billing
app.timeout = 30s
database.host = localhost
database.port = 5432
Why it runs in your browser
The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads YAML and returns .properties; reloading the page discards both.
Nesting becomes dots — `database.host = localhost` — and arrays become indices, so a list of replicas survives as `replicas.0`, `replicas.1`. Values are written as the text they are: a YAML `5432` is the string `5432` here, because a properties file has no types. Separators and newlines inside a value are escaped rather than allowed to break the line, and a comment in the YAML is lost, since the output format has no comment syntax that would survive a JSON detour.
Flatten a YAML mapping into a .properties file, ready for Spring or a Java deployment.
How to use it
YAML to Properties: paste the YAML into the box above, and press Run to get the .properties below.
Why it runs in your browser
The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads YAML and returns .properties; reloading the page discards both.
What to Expect
Best for
- Converting YAML to .properties when the data is already on screen.
What this tool keeps
- Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere.
Sample input
app: name: billing timeout: 30s database: host: localhost port: 5432
Sample output
app.name = billing app.timeout = 30s database.host = localhost database.port = 5432
Frequently asked questions
How do I use the yaml to properties?
YAML to Properties: paste the YAML into the box above, and press Run to get the .properties below.
Is my input uploaded?
No. The text is parsed on this page with JavaScript and is never posted to a server.
Is there a size limit?
Yes: 5 MB per run. Larger input is refused with a message rather than freezing the tab.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.