Boneyard Tools

Java .properties to YAML Converter

Paste a Java or Spring .properties file to get clean nested YAML. Dotted keys like server.port turn into nested maps, numbers and booleans are typed, and comments are dropped. You can also convert YAML back to flat properties. Everything runs in your browser.

How to convert .properties to YAML

  1. Paste your .properties file, or pick the YAML to properties direction and paste YAML.
  2. Read the converted output. Dotted keys become nested YAML, numbers and booleans stay typed.
  3. Copy the result or download it as application.yml or application.properties.

Examples

Dotted keys become nested YAML

server.port=8080
server.host=localhost
app.name=Demo
server:
  port: 8080
  host: localhost
app:
  name: Demo

YAML back to flat properties

server:
  port: 8080
  host: localhost
server.port=8080
server.host=localhost

Frequently asked questions

Is my properties file uploaded anywhere?

No. The conversion runs entirely in your browser, so your configuration never leaves your device.

What is the difference between Spring .properties and YAML?

They hold the same configuration. A .properties file is flat, one key=value per line, with dotted keys like server.port. YAML uses indentation, so server.port and server.host collapse into a single nested server block. YAML also supports lists and typed values without extra syntax, which is why many Spring Boot projects move application.properties to application.yml.

How are dotted keys handled?

Each dot starts a new level of nesting. server.port and server.host both nest under one server map, so repeated prefixes are grouped instead of repeated.

Are numbers and booleans converted?

Yes. Values of true and false become real YAML booleans and clean numeric values become numbers, so 8080 is emitted as 8080, not as a quoted string. Anything else, like a version such as 1.2.3, stays a string.

What happens to comments and blank lines?

Lines starting with # or ! are treated as comments and dropped, and blank lines are ignored. YAML has no place to put them back, so they are not preserved.

Can I convert YAML back to a .properties file?

Yes. Switch the direction to YAML to properties and the nested maps are flattened back to dotted keys, with lists written using indexed keys like servers[0].

Related tools