Loona Automation logoLoona Developer Tools
Home › Data Converters

INI to JSON Converter

In short: paste an INI file — sections, key = value pairs, comments — and get structured JSON, with numbers and booleans typed.
🔒 Private by design: everything runs in your browser on this device. Your input is never uploaded to a server.

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.

Related Developer Tools

Embed this tool on your website — free

Add this tool to your own website or blog — it is completely free, needs no sign-up, and always shows the latest version. Copy the code below and paste it into your page where you want the tool to appear. Keeping the small “Powered by Loona Automation” credit line under the embed helps keep this tool free — but you are free to style or remove it; the tool works either way.