Skip to main content
File & Data Conversion Tools

INI to JSON Converter

Convert INI configuration files to JSON - sections become nested objects, key-value pairs are preserved.

Paste your INI content below - this tool converts sections into nested JSON objects and preserves key-value pairs.

INI has no single universal specification - this tool supports the common conventions (sections, key=value, # and ; comments) most INI files use.

How the Conversion Works

A [section] header becomes a nested object under that name; key=value pairs within it become that object's properties; anything before the first section header goes at the root of the JSON output.

How to Use It

  1. Paste your INI content.
  2. Click Convert.
  3. Copy or download the resulting JSON.

Handling Duplicate Keys

If the same key appears twice within one section, the later value overwrites the earlier one in the JSON output (matching how most INI parsers behave) - this tool doesn't silently merge or lose the section itself, just follows last-value-wins for the specific duplicated key.

Share this tool: