INI to JSON screenshot

INI to JSON

Turn an INI file into JSON: [sections] become objects, keys outside a section stay at the top level.

Privacy First
0 Runs
Updated 2026-11-06
No upload
Instant
No signup

What INI to JSON does

A [section] header opens an object and every key = value under it goes inside; keys before the first header stay at the top level, which is where a scanner that treated every key=value alike would lose them. Both comment markers (; and #) are skipped, and key = value and key=value read the same. A repeated key keeps the last value, which is what every INI reader does, and the page says so rather than guessing that the first one wins.

How to use it

INI to JSON: paste the INI into the box above, and press Run to get the JSON below.

Worked example

Input:

; Photosynthesis configuration
debug = false

[database]
host = 127.0.0.1
port = 5432

[cache]
ttl = 60

Output:

{
  "debug": "false",
  "database": {
    "host": "127.0.0.1",
    "port": "5432"
  },
  "cache": {
    "ttl": "60"
  }
}

Why it runs in your browser

The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads INI and returns JSON; reloading the page discards both.

A `[section]` header opens an object and every `key = value` under it goes inside; keys before the first header stay at the top level, which is where a scanner that treated every `key=value` alike would lose them. Both comment markers (`;` and `#`) are skipped, and `key = value` and `key=value` read the same. A repeated key keeps the last value, which is what every INI reader does, and the page says so rather than guessing that the first one wins.

Turn an INI file into JSON: [sections] become objects, keys outside a section stay at the top level.

How to use it

INI to JSON: paste the INI into the box above, and press Run to get the JSON below.

Why it runs in your browser

The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads INI and returns JSON; reloading the page discards both.

What to Expect

Best for

  • Converting INI to JSON when the data is already on screen.

What this tool keeps

  • Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere.

Sample input

; Photosynthesis configuration debug = false [database] host = 127.0.0.1 port = 5432 [cache] ttl = 60

Sample output

{ "debug": "false", "database": { "host": "127.0.0.1", "port": "5432" }, "cache": { "ttl": "60" } }

Frequently asked questions

How do I use the ini to json?

INI to JSON: paste the INI into the box above, and press Run to get the JSON below.

Is my input uploaded?

No. The text is parsed on this page with JavaScript and is never posted to a server.

Is there a size limit?

Yes: 5 MB per run. Larger input is refused with a message rather than freezing the tab.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.