Convert INI to JSONC

Turn INI files into JSONC. 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 JSONC file.Sections become objects, and values are typed as numbers and booleans.

  1. What you get

    One JSONC file with the same settings as the INI file. Each section becomes an object, and keys before the first section stay at the top level.

    Unquoted numbers and booleans are typed, so they are written as numbers and booleans, not as text.

  2. How repeats are handled

    A repeated key becomes a list. A repeated section is merged into one object.

  3. About comments

    The file is written as plain JSON, which every JSONC reader accepts. No comments are added. To go the other way, use JSONC to INI.

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

JSON with Comments

JSON that allows comments, as in editor and TypeScript configuration files.

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

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

terminal
$ cv convert report.ini report.jsonc
$ cv convert report.ini report.jsonc

Questions.What people ask about INI to JSONC.

01OF 04

No. It is written as plain JSON, and no comments are added. Any JSONC reader accepts it.

They stay at the top level of the JSONC file, next to the objects made from the sections.

It becomes a list of its values.

Yes. Unquoted numbers and booleans are typed, so they are not written as text.

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