広告が嫌いですか? 行く 広告なし 今日

INIからJSONへのコンバーター

データ開発者
広告 ・ 取り除く?

オプション

広告 ・ 取り除く?

ガイド

INI to JSON Converter

INIからJSONへのコンバーター

Convert INI configuration files to structured JSON instantly. Paste INI data with sections, key-value pairs, and comments — get clean JSON output with sections as nested objects. Supports type coercion, comment stripping, duplicate key handling, and dot-notation subsections.

使い方

Paste your INI configuration data into the input area. Sections like [database] become nested JSON objects, and key-value pairs become properties within those objects. Enable type coercion to automatically convert numeric strings, booleans, and null values. The JSON output updates instantly — copy it with one click or download the file.

特徴

  • Section Nesting – INI sections like [database] become nested JSON objects. Dot-notation sections like [database.primary] create deeply nested structures automatically.
  • Type Coercion – Automatically converts “true”/”false” to booleans, numeric strings to numbers, and “null” to null values instead of keeping everything as strings.
  • Comment Stripping – Removes lines starting with ; or # (standard INI comment styles) for clean output.
  • Duplicate Key Handling – Choose between “last wins” (standard INI behavior) or collecting duplicate keys into arrays.
  • Quoted Value Support – Strips surrounding single or double quotes from values automatically.
  • 設定可能なインデント – 2 spaces, 4 spaces, tabs, or minified output.
  • リアルタイム変換 – Output updates instantly as you paste data or change any option.

このツールを使用するタイミング

Use this tool when migrating application configurations from INI format to JSON, converting php.ini or my.cnf settings for documentation, transforming git config files for processing in JavaScript or Python applications, or when you need to quickly inspect and restructure INI data. It’s especially useful for DevOps engineers, system administrators, and developers working with legacy configuration formats.

広告 ・ 取り除く?

よくある質問

  1. What is an INI file?

    An INI file (initialization file) is a simple text-based configuration format used by many applications and operating systems. It consists of sections (marked with [brackets]), key-value pairs (key = value), and comments (lines starting with ; or #). INI files have been used since the earliest versions of Windows and remain common in PHP (php.ini), MySQL (my.cnf), Git (.gitconfig), and many other tools.

  2. How are INI sections converted to JSON?

    Each INI section becomes a nested JSON object. For example, [database] with host = localhost and port = 3306 becomes {"database": {"host": "localhost", "port": 3306}}. Dot-notation sections like [database.primary] create deeper nesting: {"database": {"primary": {...}}}. Keys defined before any section appear at the root level of the JSON object.

  3. What is type coercion in INI to JSON conversion?

    INI files store all values as strings, but JSON supports multiple data types. Type coercion automatically detects and converts values to appropriate JSON types: numeric strings become numbers (42 instead of "42"), "true" and "false" become booleans, and "null" becomes a JSON null value. This produces cleaner, more usable JSON output. You can disable type coercion if you want all values preserved as strings.

  4. How does the tool handle duplicate keys?

    INI files sometimes contain duplicate keys within the same section. The tool offers two strategies: 'Last wins' (the default INI behavior, where the last value for a duplicate key overwrites earlier ones) and 'Collect as array' (where duplicate keys are gathered into a JSON array, preserving all values). Choose the strategy that matches how your application interprets the INI file.

広告なしで楽しみたいですか? 今すぐ広告なしで

拡張機能をインストールする

お気に入りのブラウザにIOツールを追加して、すぐにアクセスし、検索を高速化します。

に追加 Chrome拡張機能 に追加 エッジ拡張 に追加 Firefox 拡張機能 に追加 Opera 拡張機能

スコアボードが到着しました!

スコアボード ゲームを追跡する楽しい方法です。すべてのデータはブラウザに保存されます。さらに多くの機能がまもなく登場します!

広告 ・ 取り除く?
広告 ・ 取り除く?
広告 ・ 取り除く?

ニュースコーナー 技術ハイライト付き

参加する

価値ある無料ツールの提供を継続するためにご協力ください

コーヒーを買って
広告 ・ 取り除く?