INI to JSON Converter

Need the reverse conversion?
JSON to INI Converter

INI Input

1

JSON Output

Enter INI data to convert to JSON

Your converted data will appear here

How to convert INI to JSON

  1. Step 1 – Paste INI content

    • Paste standard INI configuration (global keys and [sections]).
    • Comments starting with ; or # are ignored in JSON output.
    • Import .ini or .txt files directly from your computer.
  2. Step 2 – Verify conversion

    • Global keys remain at the root of the JSON object.
    • Sections like [database] become nested objects in JSON.
    • Numeric values are automatically detected and typed where possible.
  3. Step 3 – Download JSON

    • Use the JSON output for migrating legacy configurations to modern apps.
    • Copy to clipboard or download as a .json file.
Example: INI to JSON
# Input INI
driver = postgres

[connection]
host = localhost
port = 5432

// Output JSON
{
  "driver": "postgres",
  "connection": {
    "host": "localhost",
    "port": 5432
  }
}

Related tools

Frequently Asked Questions

What is INI format?

INI files are configuration files that store data in sections with key-value pairs. They're commonly used in Windows applications and system configurations.

How are INI sections converted to JSON?

INI sections become JSON objects. Global key-value pairs (outside sections) are placed at the root level, while sectioned data creates nested objects.

What data types are supported?

The converter automatically detects numbers, booleans (true/false), and null values. Arrays can be represented as comma-separated values in INI.

Can I convert nested JSON back to INI?

Yes. Use the JSON to INI converter. Nested objects become INI sections, and arrays are converted to comma-separated values.

Is my data secure?

Yes, all data processing happens entirely in your browser. Your data is never sent to any server, ensuring complete privacy and security.