The Same Config in All Three Formats
All three formats express the same nested key-value structure - only the syntax differs. Here is a generic application config shown in each format:
.properties
app.name=my-service
app.port=8080
app.debug=false
database.host=localhost
database.port=5432
database.name=mydb
YAML
app:
name: my-service
port: 8080
debug: false
database:
host: localhost
port: 5432
name: mydb
JSON
{
"app": {
"name": "my-service",
"port": 8080,
"debug": false
},
"database": {
"host": "localhost",
"port": 5432,
"name": "mydb"
}
}
The dot notation in .properties (database.host) maps
directly to nested keys in YAML and JSON. The converter handles this
nesting automatically in both directions.
Key Features
1. All Six Conversion Directions
Properties → YAML, Properties → JSON, YAML → Properties, YAML → JSON, JSON → Properties, JSON → YAML - every combination in one tool.
2. Auto-Detect Source Format
Not sure what format you have? Click Auto-Detect and the tool identifies JSON, YAML, or .properties automatically based on the content.
3. Validate Before Converting
Click Validate to check your input for syntax errors before running the conversion - saves time on large config files.
4. Swap Source and Target
Click Swap to move the output back to input and reverse the conversion direction instantly.
5. Beautify JSON and YAML
Use Beautify to pretty-print and re-indent messy or minified input before converting.
6. Type Coercion for .properties
When parsing .properties, numeric values and booleans
(true/false) are automatically typed correctly -
so port=8080 becomes integer 8080 in JSON/YAML,
not the string "8080".
When Do You Need This?
- Converting a Docker Compose YAML snippet to JSON for a config API
- Transforming a flat .properties file into a Kubernetes ConfigMap YAML
- Copying a config example from docs that uses a different format than your project
- Migrating between formats when switching tools - e.g. from a Java build tool to a Node.js or Python project
- Sharing config between a backend service (JSON API) and an infrastructure team (YAML)
- Verifying that two config files in different formats are semantically equivalent
application.properties and application.yml - paste
one format in, select the other as the target, and copy the result.
❤️ Liked this tool?
If it saved you time, consider buying me a coffee to support future improvements.