What are .properties and YAML?
A .properties file is the Java configuration format: key=value lines whose dotted keys (spring.datasource.url) imply a hierarchy, with \uXXXX escapes for non-ASCII text. YAML describes the same data as JSON with indentation instead of brackets, allows comments and is the language of most configuration files.
The classic case is a Spring Boot project moving from application.properties to application.yml: the dotted keys become an indented tree with each prefix written once.
This page opens the data converter already set to .properties → YAML. Paste the text, read the result as you type, then copy it or download it as a file. Errors show the line and the column. Nothing is sent anywhere: the conversion runs in your browser.
.properties vs YAML
| .properties | YAML | |
|---|---|---|
| Extension | .properties | .yaml, .yml |
| Media type | text/x-java-properties | application/yaml |
| Comments | yes (# or !) | yes (#) |
| Data types | text only | JSON types plus dates, anchors and aliases |
| Nesting | implied by dotted keys and [0] | any depth, by indentation |
| Typical use | Spring Boot, Java apps, i18n bundles | Kubernetes, Docker Compose, CI pipelines |
| Specification | java.util.Properties | YAML 1.2.2 |
When to convert .properties to YAML
- Convert to YAML when people will read and edit the file by hand.
- Keep .properties when a Spring Boot or Java app reads its settings from it.
What changes in the conversion
- Comments of the .properties file are not carried over: the converter reads the data, and comments are not data.
- Dotted keys become nested objects and
[0]becomes a list; every value is text, because.propertieshas no types.
How to convert .properties to YAML
- Paste your .properties in the input box (the page opens with an example you can replace).
- Read the YAML on the right; it updates as you type. If something is wrong, the message says the line and column.
- Adjust the options if you need: indentation, sorted keys or type detection.
- Copy the result or download it as a
.yamlfile.
Example
This .properties input:
# orders service
spring.application.name=orders
server.port=8080
spring.datasource.url=jdbc:postgresql://db:5432/orders
spring.datasource.hikari.maximum-pool-size=10
app.features[0]=pix
app.features[1]=boletobecomes this YAML, exactly as the converter writes it:
spring:
application:
name: orders
datasource:
url: jdbc:postgresql://db:5432/orders
hikari:
maximum-pool-size: "10"
server:
port: "8080"
app:
features:
- pix
- boleto
Frequently asked questions
Is my .properties sent to a server?
No. Conversion happens in your browser, so secrets in a config never leave your computer.
Does .properties to YAML keep comments?
No. Comments are dropped because the converter works on the data itself. Copy important comments by hand.
What happens to nested data?
.properties nesting: implied by dotted keys and [0]. YAML nesting: any depth, by indentation. The structure is kept as it is.