Convert INI to YAML

Turn INI files into YAML. Sections become objects and keys before the first section stay at the top level; a repeated key becomes a list, a repeated section is merged, and unquoted numbers and booleans are typed.

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 YAML file.Sections become objects, and values get their types.

  1. What you get

    One YAML file built from your INI file. Each section becomes an object, and the keys inside it become its fields. Keys that appear before the first section stay at the top level.

  2. How values are read

    Unquoted numbers and booleans are typed, so a number comes out as a number and a boolean as a boolean. A quoted value is not typed this way.

  3. Repeated keys and sections

    A key that appears more than once becomes a list of its values. A section that appears more than once is merged into a single object.

  4. Going back

    To turn YAML into INI again, use YAML to INI. For other options, see every YAML conversion.

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

YAML

YAML configuration and data files.

Extensions
.yaml .yml
MIME type
application/yaml
Kind
Text and data

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

terminal
$ cv convert report.ini report.yaml
$ cv convert report.ini report.yaml

Questions.What people ask about INI to YAML.

01OF 04

They stay at the top level of the YAML file, next to the section objects.

It becomes a list of its values.

The two sections are merged into one object.

No. Unquoted numbers and booleans are typed. Quoted values are not.

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