Spring Properties ↔ YAML
Convert Spring Boot application.properties to application.yml and back.
Runs locally in your browser. Your input is not uploaded.Free, no sign-up
application.properties
application.yml
How to use the converter
- Choose Properties → YAML or YAML → Properties.
- Paste your
application.propertiesorapplication.yml, or click Sample. - Copy the result, or download it with the right file name. Swap converts it back.
Follows Spring Boot's rules
- Lists and maps.
include[0]=healthbecomes a YAML list, andlogging.level[org.hibernate.SQL]=DEBUGkeeps the dotted package name as a single key ("[org.hibernate.SQL]"), exactly as Spring's relaxed binding expects. - Profiles in one file.
---in YAML and#---in properties (Spring Boot 2.4+) separate documents, for example one per profile withspring.config.activate.on-profile. - No silent type changes. Spring reads YAML with SnakeYAML, which follows YAML 1.1:
on,yesandoffare booleans and007is a number. Values like these are quoted in the YAML output so Spring still sees the original text. - Placeholders stay intact.
${DB_URL:jdbc:h2:mem:test}is copied unchanged. - Correct escaping. Continuation lines,
\uXXXXescapes and special characters in keys are handled. Non-ASCII characters are escaped by default, because Spring Boot reads.propertiesfiles as ISO-8859-1.
Frequently asked questions
Is my configuration uploaded?
No. Conversion happens in your browser. Connection strings and credentials never leave your machine.
Why do I get "has a value, but it's also a parent"?
Properties like server=1 and server.port=8080 can't both exist in YAML, where server is either a value or a section. Rename one of them.
Are comments kept?
No. Comments don't survive the conversion; you'll see a note when the input had some.
Related tools
All tools- JSON ↔ YAML ConverterConvert JSON to YAML and YAML to JSON without losing large numbers, with anchors, merge keys and safe quoting.
- Spring Cron GeneratorBuild and explain Spring @Scheduled cron expressions and preview the next executions.
- Java Stack Trace FormatterClean up Java stack traces, highlight application frames and find the root cause.