Convert INI to JSON

Turn INI files into JSON. 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

Settings as JSON data.Sections become objects, and values keep their types where they can.

  1. What you get

    One JSON file. Each section in the INI file becomes an object, and the keys inside it become the keys of that object. Keys that come before the first section stay at the top level.

    Numbers and booleans that are not in quotes are typed as numbers and booleans, not left as text.

  2. 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 one object.

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

JSON

JSON, the data format of every API.

Extensions
.json
MIME type
application/json
Kind
Text and data

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

terminal
$ cv convert report.ini report.json
$ cv convert report.ini report.json

Questions.What people ask about INI to JSON.

01OF 04

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

Yes. Files with the extension ini or cfg are both read as INI.

Not when they are unquoted. They become JSON numbers and booleans.

Yes. JSON to INI goes the other way.

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