Convert ini to json

Free online INI to JSON converter

INI configuration files can be converted to structured JSON for apps and data exchange.

Convert INI to JSON online - free

Uploading…
Selected files exceed the 75 MB total limit. Please select fewer or smaller files.

Your file is processed instantly and never stored on our servers.

How to convert ini to json file

101convert.com Assistant Avatar

101convert.com assistant bot
1mo

Source format: INI

INI is a simple plain-text configuration format used to store settings in a human-readable way. It is commonly used by Windows applications, older desktop software, games, and utilities that need lightweight configuration files. An INI file usually contains sections, key-value pairs, and comments, making it easy to edit manually in a text editor.

Typical uses include application preferences, connection settings, feature flags, and small structured configuration data. Because it is plain text, INI is easy to inspect, but it has limited structure compared with modern data formats.

Target format: JSON

JSON (JavaScript Object Notation) is a widely used structured data format for applications, APIs, and configuration files. It supports nested objects, arrays, strings, numbers, booleans, and null values. JSON is popular because it is machine-friendly, broadly supported across programming languages, and well suited for exchanging data between systems.

Compared with INI, JSON offers richer structure and better interoperability. It is commonly used in web applications, software configuration, data exchange, and automation workflows.

How to convert INI to JSON

The best method depends on how complex the INI file is. For a simple file, you can convert it manually or with a script. For repeated conversions, a small parser script is usually the most reliable approach.

  1. Inspect the INI structure. Check whether the file uses only flat key-value pairs or includes multiple sections. This matters because JSON can represent both flat and nested structures.
  2. Decide on the JSON layout. A common approach is to convert each INI section into a JSON object. For example, [database] becomes a database object containing its keys.
  3. Use a conversion tool or script. If you need a quick local conversion, a scripting language such as Python is often the easiest choice. For example, a Python script can read the INI file and write JSON output using built-in libraries or a small parser package.
  4. Save the output as .json. Make sure the resulting file is valid JSON with proper quotes, commas, and braces.
  5. Validate the result. Open the JSON in a code editor or validator to confirm that the structure matches your needs.

If you prefer a no-install option, you can convert the file on 101convert.com for free without installing any software.

Example workflow with Python:

  1. Install Python if needed.
  2. Create a script that reads the INI file.
  3. Map sections and keys into a dictionary or object structure.
  4. Write the result to output.json.

In many cases, the conversion is straightforward enough that a short custom script is better than a general-purpose desktop app. If you already use configuration tools or editors, you can also open the INI file in a text editor, transform the structure manually, and save it as JSON.

Notes on quality, compatibility, and limitations

INI and JSON are not directly equivalent, so some information may need interpretation during conversion. INI supports repeated keys, comments, and loosely defined syntax, while JSON requires strict structure and does not support comments in standard form. If your INI file contains duplicate keys, unusual formatting, or application-specific conventions, you may need to decide how to represent them in JSON.

Another limitation is that INI files often store everything as text, while JSON can represent numbers, booleans, arrays, and nested objects. During conversion, you may want to preserve values as strings or convert them to native JSON types depending on how the target application will use the file.

For best compatibility, keep the JSON structure consistent and avoid relying on features that the original INI format handled implicitly. If the INI file is used by a specific application, verify that the application can actually read JSON before replacing the original configuration file.


Note: This ini to json conversion record is incomplete, must be verified, and may contain inaccuracies. Please vote below whether you found this information helpful or not.

Was this information helpful?

INI vs JSON: format comparison

How the INI and JSON formats compare on the properties that matter most for this conversion.

Comparison of the INI and JSON file formats
Property .INI INI file .JSON JavaScript Object Notation
Open standard Yes
Compression Uncompressed Uncompressed
Typical file size Very small Small
Opens in a web browser No Yes, natively
Further editing Easy Easy
Metadata support Basic None
Plain-text readable Yes Yes
Best used for Data exchange Data exchange
Introduced 2001
Developer Douglas Crockford / ECMA International
MIME type application/json

Frequently asked questions

Is the INI to JSON converter free?

Yes, converting INI to JSON on 101convert.com is completely free. No registration, email address or installation is required.

How large can my INI file be?

You can upload INI files up to 300 MB and convert up to 100 files at once in a single batch.

What happens to my uploaded files?

Files are processed automatically and deleted from our servers within a few minutes after conversion. We never view or share your files.

Do I need to install any software to convert INI to JSON?

No. The INI to JSON conversion runs entirely online in your browser and works on Windows, Mac, Linux, Android and iPhone.

Did the conversion fail?

In most cases, the cause is an incorrect file format. Please upload a valid INI file for this INI to JSON conversion. Occasionally, the issue may be on our side. We analyze recurring conversion failures and disable or fix the converter if we detect a defect.

Additional formats for
ini file conversion

Reverse conversion

Convert to json from
other formats

Share on social media: