Convert INI to JSON
Sections, key=value
and type inference.
Parse any INI config file to JSON.
Sections become nested objects.
Supports php.ini,
.gitconfig
and any standard INI format.
Runs entirely in your browser.
INI parsing rules
| INI syntax | JSON output | Notes |
|---|---|---|
[section] | {"section": {...}} | Section header → nested object |
key = value | "key": "value" | = separator |
key: value | "key": "value" | : separator also supported |
; comment | — | Semicolon comments ignored |
# comment | — | Hash comments ignored |
port = 3306 | "port": 3306 | Numbers inferred (basic mode) |
debug = true | "debug": true | Booleans inferred (full mode) |
key = | "key": null | Empty value → null |
Common INI file formats
php.ini
Parse PHP configuration files to inspect settings programmatically. Use the "Basic (numbers only)" type mode to preserve values like 2M, On and Off as strings — PHP treats these specially and they shouldn't become booleans.
.gitconfig
Parse Git configuration files to JSON for tooling and scripts. The [core], [user], [alias] sections become nested objects — easy to inspect and manipulate programmatically.
MySQL / MariaDB config
Parse my.cnf or my.ini database configuration to JSON for documentation, comparison or migration scripts. The [mysqld], [client] sections map naturally to nested JSON objects.
Windows Registry / app configs
Many legacy Windows applications use INI files for configuration. Convert them to JSON for processing in modern tooling, migration to newer config formats (YAML, TOML, JSON) or feeding into APIs that expect JSON.
All data & config formats tools
INI parsed in your
browser. No upload.
The parser handles all standard INI variants: both = and : as key separators, semicolon ; and hash # comments, quoted values, and inline comments stripped from values. Keys before the first section are placed at the root level or grouped under "global".
