🗂️ INI to JSON Converter
Paste an INI file and get JSON: each [section] becomes a nested object and every key=value becomes a string property.
INI sections → nested objects
How the ini to json converter works
INI is the classic key=value config format used by php.ini, Windows desktop.ini, many Python and PHP apps, and Git-style configs. The converter reads it line by line: keys written before any [section] header become top-level JSON properties, and each [section] becomes a nested object holding its keys. Comment lines starting with ; or # are ignored, surrounding quotes are removed, and an unquoted inline comment after a value is trimmed. Because INI is untyped, every value is emitted as a JSON string — 8080 becomes "8080" — which keeps the round-trip exact.
This is handy when a program or script wants JSON but your configuration lives in an INI file. The one-level [section] model matches how INI is used in practice; deeply nested trees aren't part of the INI format. Everything is parsed locally in your browser, so a config file — which may hold hostnames, paths or tokens — never leaves your device and the tool works offline.
Frequently asked questions
How do I convert an INI file to JSON?
Paste the INI text or load a .ini/.cfg/.conf file and the tool outputs JSON. Keys above the first [section] become top-level properties and each [section] becomes a nested object you can copy or download.
Why are numbers shown as strings?
INI has no types — everything is text — so the converter keeps every value as a JSON string to stay faithful to the file. If you need real numbers or booleans, cast them in your code after parsing; that way the conversion is lossless and predictable.
Are comments and quotes handled?
Yes. Lines starting with ; or # are treated as comments and skipped, surrounding single or double quotes are stripped from values, and an inline comment after an unquoted value is removed.
What about nested sections?
Standard INI supports a single level of [section] grouping, and that is what the tool produces — a flat set of sections, each an object. There is no universal syntax for deeper nesting in INI.
Is my config uploaded?
No — parsing runs entirely in your browser, so the config contents stay on your device and it works offline.