Tool guide
About this tool.
INI to JSON turns each [section] into an object and each key=value line into a string. A dotted section name such as [db.replica] nests inside [db]. Keys before the first section sit at the top level. Lines starting with ; or # are comments; a ; inside a value is part of the value.
JSON to INI accepts a root object with plain values at the top and one level of sections. Deeper objects, arrays and null are rejected with the key named. Values with leading or trailing spaces, or starting with a quote, are written in double quotes so they read back unchanged. A value or key containing a newline cannot be written and is an error.
Choose a direction with INI → JSON or JSON → INI.
Paste INI or JSON, or pick a sample.
Turn on Typed values to get JSON numbers and booleans from INI.
Copy the result or save it as a .json or .ini file.
- top=1 [db] host = x → {"db": {"host": "x"}, "top": "1"}.
- [db.replica] port=5432 → {"db": {"replica": {"port": "5432"}}}.
- With Typed values: port=5432 and debug=true → {"port": 5432, "debug": true}.
- {"a": 1, "s": {"k": "v"}} → a=1, a blank line, [s], k=v.
- Processing is local; nothing is uploaded.
- Limits: 5,000,000 characters, 100,000 lines and 100 levels of section nesting.
- INI has no standard: this converter reads key=value pairs, [sections], dotted section nesting and double-quoted keys and values. : separators and line continuations are not supported.
- JSON to INI keeps number spelling and big integers exact, writes top-level keys before sections and does not keep key order across that split.
- A UTF-8 byte order mark at the start is ignored, and CRLF line endings are accepted.