Convert PROPERTIES to INI

Turn PROPERTIES files into INI. Top-level objects become [sections] and plain top-level values come first, and an object inside a section becomes its own section named with a dot, such as [server.tls].

Converted in an isolated sandbox on our serversDeleted after 24 hours

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

Settings from a properties file, as INI.Top-level values come first, and nested groups become sections.

  1. What you get

    One INI file. Plain top-level values are written first, before any section header. Each top-level object becomes its own [section] of key and value pairs.

    An object inside a section becomes its own section named with a dot. An object called tls inside server is written as [server.tls].

  2. How lists are written

    A list becomes a repeated key, one line for each entry. An empty list disappears, because there is no entry to write.

    Objects or lists inside a list are written as JSON text on the key's line.

  3. Top-level lists

    A top-level list becomes one section per entry. The sections are numbered from 0 under items, as [items.0], [items.1] and so on. An entry that is not an object goes under the key value.

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

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

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

Questions.What people ask about PROPERTIES to INI.

01OF 04

Each nested object becomes its own section, and the name joins the parents with a dot, such as [server.tls].

The key is repeated once for each entry in the list. An empty list is not written at all.

They come first in the file, before any section header.

Yes. Use INI to PROPERTIES for the reverse conversion.

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