Convert INI to PROPERTIES

Turn INI 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 INI files on the dialor turn it to pick what to do

INI settings as Java properties.Every value becomes one key=value line in a single file.

  1. What you get

    One PROPERTIES file with a line for each value in the INI file. The key is the path to the value, with the names joined by dots, such as server.hosts[0]. Values are written with Java escapes.

  2. How keys are named

    Nested names are joined with dots. Positions in a list go in brackets, so the first item of a list called hosts under server is server.hosts[0].

    A list at the top level has no name to start from, so it is written under items, as in items[0].name.

  3. Empty objects and lists

    An empty object or list has no values to write as lines. It is written as JSON text instead.

  4. Going the other way

    To turn properties back into INI, use PROPERTIES to INI. More routes are listed under every INI conversion.

INI and PROPERTIES.What each format is.

The formats

From · INI

INI

Sections of key and value pairs, the settings format of Windows and many tools.

Extensions
.ini .cfg
MIME type
text/x-ini
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 INI to PROPERTIES conversion through the API, for your app or your agent.

terminal
$ cv convert report.ini report.properties
$ cv convert report.ini report.properties

Questions.What people ask about INI to PROPERTIES.

01OF 04

The names are joined with dots. A key called hosts inside server becomes server.hosts.

Each item gets its position in brackets, such as server.hosts[0].

It is written under items, such as items[0].name.

It is written as JSON text.

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