Skip to content
yutils
Example

Input (INI)

[database]
host = localhost
port = 5432

[user]
name = yutils
admin = true

Output (JSON)

{
  "database": {
    "host": "localhost",
    "port": "5432"
  },
  "user": {
    "name": "yutils",
    "admin": "true"
  }
}

Note

`[section]` headers plus `key = value` lines. Values stay as strings — INI has no type system in the spec.

Usage / FAQ

When to use

  • Inspect legacy configs like git config, php.ini, or my.cnf
  • Convert Windows .ini to JSON for use in code
  • Debug AWS credentials-style ini files
  • Tidy Raspberry Pi / embedded conf files
  • Learn INI syntax by viewing it next to its JSON form

FAQ

Q.How are quoted values handled?
A.INI is loosely standardized, but this tool strips surrounding quotes and keeps the inner string — `name = "yutils"` becomes `"yutils"`.
Q.Are comments preserved?
A.Lines starting with `#` or `;` are treated as comments and dropped. They do not appear in the JSON output.
Q.What about nested sections?
A.INI itself has no nesting; some tools expand dotted keys like `[a.b]` into `{"a": {"b": ...}}`. This tool supports only flat (single-level) sections.