INI ↔ JSON Converter Online

Convert INI configuration files to JSON and JSON back to INI format in your browser.

INPUTINI
OUTPUTJSON

What Is INI ↔ JSON Converter?

INI ↔ JSON Converter transforms INI configuration files into JSON and converts JSON objects back to INI format — all in your browser with no server upload. INI files use a simple section and key-value structure widely found in Windows configuration files, Python's configparser, and many Unix tools. Converting to JSON makes the data easier to process programmatically; converting back to INI produces config files compatible with those tools.

How to Use INI ↔ JSON Converter

  1. Select the conversion direction: INI → JSON or JSON → INI.
  2. Paste your input or click Load Sample to use an example.
  3. Click Convert to run the conversion.
  4. Copy the output with the Copy button.

Features

  • Bidirectional — INI to JSON and JSON to INI
  • Section support — INI sections map to nested JSON objects
  • Comment stripping; and # comment lines are ignored
  • Pretty-printed JSON — output uses 2-space indentation
  • Browser-only — no data sent to any server

FAQ

What is an INI file?

An INI file is a plain-text configuration format used by many applications. It consists of sections (e.g. [database]) that group key-value pairs (e.g. host=localhost). Lines starting with ; or # are comments.

How are INI sections mapped to JSON?

Each INI section becomes a JSON object key, and its key-value pairs become nested properties. Keys outside any section are placed under a top-level "" (empty string) key or as direct top-level properties.

How are JSON objects converted back to INI?

Nested JSON objects become INI sections. Top-level scalar values (strings, numbers, booleans) are written before any section headers. Deeply nested objects beyond one level are serialized as JSON string values.

Are comments preserved?

No. INI comments (lines starting with ; or #) are stripped during parsing and are not included in the JSON output or the round-tripped INI output.