INI to JSON Converter
Example
Input:
[database] host = localhost port = 5432
Output:
{
"database": {
"host": "localhost",
"port": 5432
}
}About this converter
INI is the configuration format that refuses to die: Windows settings, PHP (php.ini), Python configparser files, Git config's close relative, game settings. Its grammar is folklore rather than standard, so this converter follows the common dialect — [section] headers, key = value (or key: value) pairs, ; and # comments, quoted values unquoted, and unambiguous numbers/booleans typed. Keys before any section land at the top level. Duplicate keys keep the last value, matching most parsers. Knowing the dialect matters: if your INI uses % interpolation or multi-line continuations (Python configparser features), those are application-level conventions this page does not invent.
Frequently Asked Questions
Why did my value stay a string?
Values are typed only when unambiguous (clean integers, decimals, true/false). Something like 012 or 1.2.3 stays a string — usually what you want for versions and codes.
Does it support nested sections?
INI has no true nesting; dotted section names like [a.b] are kept as a literal section name "a.b", matching most parsers.