Convert INI to TOML

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

INI settings as a TOML file.The same keys and values, written as TOML in one file.

  1. What you get

    A TOML file with the same keys and values as the INI 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 become [[items]] tables.

  2. What does not carry over

    TOML cannot hold a null inside a list, so the conversion fails when it meets one. It also fails on an integer beyond the signed 64-bit range, since TOML cannot hold it.

    A null in an object is dropped, and a warning tells you so. The rest of the file is still written.

  3. Going the other way

    To turn TOML back into INI, use TOML to INI. The INI format covers files ending in ini or cfg.

INI and TOML.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 · 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 INI to TOML conversion through the API, for your app or your agent.

terminal
$ cv convert report.ini report.toml
$ cv convert report.ini report.toml

Questions.What people ask about INI to TOML.

01OF 04

Files with the extension ini or cfg. They hold sections of key and value pairs.

Plain values are written before tables. Tables follow them.

In an object, it is dropped with a warning. In a list, the conversion fails, because TOML cannot hold a null there.

No. This conversion has no options.

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