Convert TOML to PROPERTIES

Turn TOML files into PROPERTIES. Each value becomes one key=value line with Java escapes, under its path of keys joined with dots and list positions in brackets, such as server.hosts[0], and a top-level list is written under items, such as items[0].name.

Converted in an isolated sandbox on our serversDeleted after 24 hours

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

Your TOML as flat key=value lines.Every value gets its own line, named by its path of keys.

  1. What you get

    One PROPERTIES file in the Java properties format. Each value in the TOML becomes one key=value line, with Java escapes applied to the text.

    The key is the path of keys joined with dots, so a value in a server table can appear as server.port. Positions in a list go in brackets, such as server.hosts[0].

  2. How structure is written

    A top-level list is written under items, such as items[0].name.

    An empty object or list is written as JSON text, since it has no values to give lines of their own.

  3. What changes or is dropped

    Dates and times become ISO 8601 text. Comments are dropped, so notes you wrote in the TOML are not in the PROPERTIES file.

  4. Failures

    If the file cannot be parsed, the conversion stops with input_corrupted. Fix the TOML syntax, then convert it again. To go the other way, use PROPERTIES to TOML.

TOML and PROPERTIES.What each format is.

The formats

From · TOML

TOML

TOML configuration files, the format of Cargo and pyproject.

Extensions
.toml
MIME type
application/toml
Kind
Text and data
To · PROPERTIES

Java Properties

Key and value pairs in the Java properties format.

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

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

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

Questions.What people ask about TOML to PROPERTIES.

01OF 04

Keys are joined with dots. A list position goes in brackets, so a host list inside a server table gives server.hosts[0].

Its entries are written under items, such as items[0].name.

No. Comments in the TOML are dropped.

The TOML file could not be parsed. The conversion stops with input_corrupted when that happens.

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