Convert PROPERTIES to YAML

Turn PROPERTIES files into YAML. Each key stays one flat key with its dots, after escapes, \uXXXX sequences and continued lines are decoded; numbers and booleans are typed.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop PROPERTIES files on the dialor turn it to pick what to do

Java properties as a YAML file.Each key becomes a YAML key, with numbers and booleans typed.

  1. What you get

    One YAML file with an entry for every key in the PROPERTIES file. Escapes, \uXXXX sequences and continued lines are decoded first, so the values read as the text they stand for.

    Numbers and booleans are typed, so a value such as 8080 or true is written as a number or a boolean, not as a string.

  2. Keys stay flat

    A key with dots keeps its dots. A key like server.port stays one flat key and is not split into nested levels. The YAML has no nesting built from the dots.

  3. What it leaves behind

    Comments are dropped, because they are not part of the key and value pairs. A key with no value becomes null.

    To go the other way, use YAML to PROPERTIES.

PROPERTIES and YAML.What each format is.

The formats

From · PROPERTIES

Java Properties

Key and value pairs in the Java properties format.

Extensions
.properties
MIME type
text/x-java-properties
Kind
Text and data
To · YAML

YAML

YAML configuration and data files.

Extensions
.yaml .yml
MIME type
application/yaml
Kind
Text and data

In your code.The same PROPERTIES to YAML conversion through the API, for your app or your agent.

terminal
$ cv convert report.properties report.yaml
$ cv convert report.properties report.yaml

Questions.What people ask about PROPERTIES to YAML.

01OF 04

No. Each key stays one flat key with its dots.

No. They are typed, so they come out as numbers and booleans in the YAML.

They are dropped. Only the keys and values are written.

It becomes null in the YAML.

More conversions.Other ways in and out of PROPERTIES and YAML.