Convert PROPERTIES to TOML

Turn PROPERTIES files into TOML. The same keys and values as TOML, with plain values written before tables, and a top-level list is written under the key items, as [[items]] tables when its entries are objects.

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 TOML.The same keys and values, written as a TOML file.

  1. What you get

    One TOML file with the same keys and values as the PROPERTIES file. Plain values are written before tables, as TOML expects.

    A top-level list is written under the key items. When its entries are objects, they come out as [[items]] tables.

  2. What it cannot hold

    TOML has no null. A null in an object is dropped, and the conversion gives a warning. A null inside a list fails, because a list cannot hold it.

    An integer beyond the signed 64-bit range also fails, since TOML cannot store it.

  3. Going the other way

    To turn a TOML file back into key and value pairs, use TOML to PROPERTIES.

PROPERTIES and TOML.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 · TOML

TOML

TOML configuration files, the format of Cargo and pyproject.

Extensions
.toml
MIME type
application/toml
Kind
Text and data

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

terminal
$ cv convert report.properties report.toml
$ cv convert report.properties report.toml

Questions.What people ask about PROPERTIES to TOML.

01OF 04

Yes. The TOML file has the same keys and values. Plain values come first, followed by tables.

In an object, the null is dropped and you get a warning. Inside a list, the conversion fails.

It is written under the key items. If its entries are objects, they become [[items]] tables.

No. The conversion has no options and gives one file.

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