Skip to content

INI to JSON

Embed

Paste this where you want INI to JSON on your site. Adjust the height to fit.

<iframe src="https://www.browserutils.dev/embed/ini-to-json/" width="100%" height="500" frameborder="0" loading="lazy" title="INI to JSON"></iframe>
<p style="font-size:12px;margin:4px 0 0"><a href="https://www.browserutils.dev/tools/ini-to-json/">INI to JSON</a> by BrowserUtils</p>

Convert INI files to JSON.Runs in this tab.

Next step

About INI to JSON

Free online INI to JSON converter. Parse INI configuration files and convert them to structured JSON format. It runs in your browser. Nothing is sent to a server.

Questions

What is an INI file?
An INI file is a simple configuration format with section headers in [brackets] and key=value pairs. It has been used since early Windows and DOS systems and is still common in many applications.
How are INI sections represented in JSON?
Each INI section becomes a nested JSON object. For example, [database] with host=localhost becomes { "database": { "host": "localhost" } }. Keys outside any section go into the root object.
Does the INI parser handle comments?
Yes, lines starting with ; or # are treated as comments and are skipped during parsing. Comments are not included in the JSON output since JSON does not support comments.
Can I convert PHP ini files with this tool?
Yes, the parser handles standard INI syntax used by PHP (php.ini), MySQL (my.cnf), and other applications. Section headers and key=value pairs are parsed the same way regardless of the source application.

More in Number & Data Converters

All 20 number & data converters