What does this tool do?
The INI to JSON tool converts classic INI configuration files, with their [section] headers and key=value lines, into structured JSON right in your browser. It is ideal for developers and system administrators who need to read server, game, or application settings files in JavaScript, Python, or any other JSON-friendly environment.
How to use it
- Paste or type your data into the left field.
- The result is generated instantly on the right.
- Use the Copy button to grab the output.
How INI sections map to JSON
Each [section] header becomes an object key in the JSON output, and every key=value pair under that header is nested inside that object. Global keys that appear at the top of the file before any section are placed at the root level. Comment lines starting with a semicolon or hash, along with blank lines, are skipped, so the result contains only meaningful data in a clean, nested structure that is easy to read and parse.
How values are handled
The equals sign separates each key from its value, and surrounding whitespace is trimmed. By default all values are kept as strings, so anything that looks like a number or a boolean retains its raw form rather than being silently coerced. This matters for settings such as IP addresses, version numbers, or file paths, where the exact text is significant and unexpected type conversion could break your configuration.
Frequently asked questions
What happens with duplicate sections or keys?
JSON object keys must be unique, so if the same name repeats the last value generally overwrites the earlier one. Keep section and key names unique in your INI file to avoid losing data through collisions.
Are nested sections or sub-sections supported?
The standard INI format is flat and uses single-level sections. The tool follows that standard, so dotted names like [database.connection] are kept as a single key rather than being automatically split into nested objects.
Are comments included in the output?
No. Lines starting with ; or # and empty lines are ignored during conversion, so the JSON output contains only the actual configuration data.
Is INI to JSON free?
Yes. INI to JSON and all 300+ tools on MagmaNex are completely free with no signup or account required.
Is my data safe?
Yes. Everything runs locally in your browser. The data you enter is never sent to a server, stored, or shared.
Does it work on mobile?
Yes. INI to JSON works on phones, tablets and desktops — no app download needed.
🔒 Privacy: everything runs in your browser, your data is never sent to a server.
