Toolstia / INI to JSON converter

INI to JSON converter

Paste the contents of an INI or config file and get clean JSON. Sections become objects, keys become properties, and numbers and true or false values can be converted for you.

Lines starting with a semicolon or hash are comments. Keys and values are split at the first equals sign or colon. Keys before any section go to the top level, and each [section] becomes an object. Values in quotes stay text, and a repeated key keeps the last value.

How it works

  1. Paste the INI text.
  2. Choose whether to convert numbers and booleans.
  3. Copy the JSON.

Supported syntax

Lines in [section] headers, key = value or key: value pairs, and comments that start with a semicolon or hash.

Types

With conversion on, 42 becomes a number, 0.75 a decimal and true or false a boolean. Quoted values always stay text.

Top level keys

Keys that appear before any section header go to the top level of the JSON.

Repeated keys

If a key is repeated in the same section the last value wins, as in most INI readers.

Questions

Is my config uploaded?

Everything happens in your browser, and nothing you enter is sent anywhere.

Does it handle nested sections?

No. A section name such as [a.b] is kept as one key, because INI has no standard way to nest sections.

What happens to lines it cannot read?

They are skipped, and the tool tells you how many and shows the first few.