Property to YAML Converter

Property Input

YAML Output

How this Properties to YAML converter works

Paste a Java or Spring Boot application.properties file on the left to automatically group dot-separated prefixes (like spring.datasource.url) into clean, nested application.yml hierarchy on the right. Conversion happens 100% locally in your browser — credentials and JDBC strings never leave your device. Need the reverse? Use the YAML to Property Converter.

Spring Boot .properties to YAML mapping rules

.properties Input Generated application.yml
server.port=8080 server: → port: 8080 (numeric)
spring.jpa.show-sql=true spring: → jpa: → show-sql: true (boolean)
app.servers[0]=alpha / app.servers[1]=beta app: → servers: → - alpha / - beta
logging.level.root=INFO logging: → level: → root: INFO
# comment line Ignored during conversion

Common pitfalls when migrating application.properties to application.yml

  • Key prefix collision (scalar vs. object): In .properties, you might accidentally have both app.cache=true and app.cache.ttl=60. YAML cannot represent cache as both a boolean and a nested map at the same time — rename the boolean key (e.g., app.cache.enabled=true) before converting.
  • Leading-zero strings and numeric passwords: Values like 0042 or numeric ZIP codes may be inferred as numbers; wrap them in quotes in YAML ("0042") if your application expects a string.
  • Spring @PropertySource limitation: Spring Boot loads application.yml natively, but the older @PropertySource("classpath:custom.yml") annotation only reads .properties files by default unless you configure a custom PropertySourceFactory.
  • Dots in package names (e.g., Spring logging levels): The converter splits keys at every dot, so logging.level.org.springframework.web=DEBUG nests as logging: → level: → org: → springframework: → web: DEBUG, which Spring Boot reads back as the same property. It doesn’t understand Spring’s bracket notation (logging.level.[org.springframework.web] comes out split at the dots inside the brackets), so leave brackets out of the input and, if you want the package as one YAML key, write it by hand afterwards as "[org.springframework.web]": DEBUG.

FAQs

Does this converter work for Spring Boot application.properties? Yes. It is designed for dot-separated Java and Spring Boot property files: shared prefixes like spring.datasource.* become nested application.yml maps, and keys ending in an index (list[0], list[1]) become YAML lists. An index inside a key stays part of its name (routes[0].id=a becomes a key routes[0] holding id: a), so lists of objects need tidying by hand.
Is it safe to paste database URLs or credentials here? Yes — conversion runs completely client-side in JavaScript, so what you paste never leaves your browser; the page only records anonymous usage events (such as a conversion or a copy click), never the content. Even so, it’s always good practice to replace production passwords with environment variable placeholders like ${DB_PASSWORD} in config files.
How are booleans and numbers detected from .properties? Since .properties stores everything as text, the converter inspects each value and emits native YAML booleans (true/false), null, and numbers (8080) where appropriate while keeping everything else as strings.
Can I convert .properties to JSON instead of YAML? Yes — switch to the Property to JSON Converter to get nested JSON output directly.

More Free Developer Tools