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.
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.
How repeats are handled
A repeated key becomes a list. A repeated section is merged into one object.
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
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
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.
$ cv convert report.ini report.jsonc$ cv convert report.ini report.jsoncQuestions.What people ask about INI to JSONC.
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.