application.properties ⇄ YAML Converter
Two-way converter between Spring Boot application.properties and application.yml configuration formats with nested list and index support.
- Comments in .properties cannot be mapped to YAML AST and were omitted.
server:
port: 8080
servlet:
context-path: /api/v1
spring:
datasource:
url: jdbc:postgresql://localhost:5432/orders_db
username: postgres
password: secret_password
hikari:
maximum-pool-size: 20
management:
endpoints:
web:
exposure:
include:
- health
- info
- prometheus
endpoint:
health:
show-details: always
How to use this tool
Paste your Spring Boot configuration into the active input panel.
Choose Properties → YAML or YAML → Properties with automatic formatting.
Click 'Copy' to paste the converted file directly into src/main/resources.
Frequently Asked Questions
How are indexed array properties converted?
Properties like `server.ports[0]=8080` and `server.ports[1]=8081` convert into YAML lists under `server.ports: - 8080 - 8081`.
Are comments preserved during conversion?
Because YAML and properties have distinct comment and indentation models, comments are stripped during AST transformation to ensure clean syntax without parse errors.
Which format does Spring Boot prefer?
Spring Boot supports both equally. YAML is preferred for hierarchical readability, while properties files are common in legacy setups and microservice profile overrides.
How are relaxed binding and dashes handled?
Spring Boot relaxed binding treats `my-app.database-url` and `myApp.databaseUrl` equivalently. This tool preserves exact property naming.
Deepen your architecture knowledge with practical, production-tested guides:
Client-Side Privacy Guarantee
This tool never transmits your payloads to any server. Open DevTools (F12) → Network tab to verify that zero HTTP requests are sent while using this page.