Sections
[section] headers become objects; [server.production] can nest into server → production.
Parse .ini, .cfg and php.ini-style config files into JSON.
Convert INI files to JSON: sections become objects, dotted sections nest, key[] builds arrays, and numbers and booleans are detected. Free and private.
name = Shop
[database]
host = localhost
port = 5432
ssl = true{
"name": "Shop",
"database": {
"host": "localhost",
"port": 5432,
"ssl": true
}
}Tip: Keys before the first [section] are placed at the top level of the JSON.
[section] headers become objects; [server.production] can nest into server → production.
Repeated key[] = value lines become a JSON array.
Lines starting with ; or # and inline comments after values are ignored.
Numbers and true/false become JSON numbers and booleans, or keep everything as strings.
Common ones: Windows-style INI, php.ini, Git config style, Python configparser files and many app .cfg files.
Yes. Surrounding quotes are removed, and # or ; inside quotes are kept.
Yes, untick "Nest dotted sections" to keep names such as server.production as one key.
Yes, parsing happens in your browser.