.ini ↔ JSON Converter

Convert an INI config file to JSON or JSON back to INI. Handles sections, comments and quoted values. Runs in your browser.

Frequently asked questions

What does this convert?

It turns an INI configuration file (with [sections] and key = value lines) into a JSON object, and JSON back into INI format. Handy for moving config between tools that expect different formats.

Does it handle types?

Yes. Going to JSON, it recognises numbers, true/false and null so the output is properly typed rather than all strings. Going back to INI, values are written plainly and quoted only when they contain spaces or special characters.

What about comments?

Lines starting with a semicolon or hash are treated as comments and skipped when converting to JSON. JSON has no comments, so they are not regenerated when converting back.