INI to JSON
Turn classic INI config into JSON without uploading the file. Paste a php.ini-style or desktop-app settings file: bracketed sections such as [database] become JSON objects, and each key = value line becomes a property inside that object. Choose 2- or 4-space indent, then copy or download the result. Values stay strings, the way most INI parsers treat unquoted text, so port = 5432 is the string "5432" rather than a number. Convert again in a typed pipeline if you need integers or booleans.
Comments that start with a semicolon or hash are omitted, and blank lines are skipped. A key repeated inside the same section keeps the last value, which matches typical INI readers and avoids silent arrays. Keys that appear before any [section] land at the top level of the JSON object. Dotted names such as db.host are not split into nested objects; the dot remains part of the key so you do not lose the original spelling.
Use this page when you are moving an old config into an API payload, a package manifest, or a JSON-only tool. If the destination is Kubernetes, GitHub Actions, or another YAML file, use INI to YAML instead and keep the same section structure in a format those tools already accept. After conversion, JSON Formatter can re-indent or sort keys. The whole step stays in your browser, so database passwords and internal hostnames in the INI never leave the device.