.properties to YAML

Paste .properties and get YAML at once, with errors pointed by line and column, then copy or download the result.

loading .properties to YAML
About this tool

What are .properties and YAML?

A .properties file is the Java configuration format: key=value lines whose dotted keys (spring.datasource.url) imply a hierarchy, with \uXXXX escapes for non-ASCII text. YAML describes the same data as JSON with indentation instead of brackets, allows comments and is the language of most configuration files.

The classic case is a Spring Boot project moving from application.properties to application.yml: the dotted keys become an indented tree with each prefix written once.

This page opens the data converter already set to .properties → YAML. Paste the text, read the result as you type, then copy it or download it as a file. Errors show the line and the column. Nothing is sent anywhere: the conversion runs in your browser.

.properties vs YAML

.propertiesYAML
Extension.properties.yaml, .yml
Media typetext/x-java-propertiesapplication/yaml
Commentsyes (# or !)yes (#)
Data typestext onlyJSON types plus dates, anchors and aliases
Nestingimplied by dotted keys and [0]any depth, by indentation
Typical useSpring Boot, Java apps, i18n bundlesKubernetes, Docker Compose, CI pipelines
Specificationjava.util.PropertiesYAML 1.2.2

When to convert .properties to YAML

  • Convert to YAML when people will read and edit the file by hand.
  • Keep .properties when a Spring Boot or Java app reads its settings from it.

What changes in the conversion

  • Comments of the .properties file are not carried over: the converter reads the data, and comments are not data.
  • Dotted keys become nested objects and [0] becomes a list; every value is text, because .properties has no types.

How to convert .properties to YAML

  1. Paste your .properties in the input box (the page opens with an example you can replace).
  2. Read the YAML on the right; it updates as you type. If something is wrong, the message says the line and column.
  3. Adjust the options if you need: indentation, sorted keys or type detection.
  4. Copy the result or download it as a .yaml file.

Example

This .properties input:

# orders service
spring.application.name=orders
server.port=8080
spring.datasource.url=jdbc:postgresql://db:5432/orders
spring.datasource.hikari.maximum-pool-size=10
app.features[0]=pix
app.features[1]=boleto

becomes this YAML, exactly as the converter writes it:

spring:
  application:
    name: orders
  datasource:
    url: jdbc:postgresql://db:5432/orders
    hikari:
      maximum-pool-size: "10"
server:
  port: "8080"
app:
  features:
    - pix
    - boleto

Frequently asked questions

Is my .properties sent to a server?

No. Conversion happens in your browser, so secrets in a config never leave your computer.

Does .properties to YAML keep comments?

No. Comments are dropped because the converter works on the data itself. Copy important comments by hand.

What happens to nested data?

.properties nesting: implied by dotted keys and [0]. YAML nesting: any depth, by indentation. The structure is kept as it is.

Report a problem