Konverter INI ke JSON

Butuh konversi sebaliknya?
JSON to INI Converter

Input INI

1

Output JSON

Masukkan data INI untuk dikonversi menjadi JSON

Data hasil konversi akan muncul di sini

Cara mengonversi INI ke JSON

  1. Langkah 1 – Tempel konten INI

    • Tempel konfigurasi INI standar (key global dan [sections]).
    • Komentar yang diawali ; atau # akan diabaikan di output JSON.
    • Impor file .ini atau .txt langsung dari komputer Anda.
  2. Langkah 2 – Verifikasi konversi

    • Key global tetap berada di root object JSON.
    • Section seperti [database] menjadi object bersarang di JSON.
    • Nilai numerik dideteksi dan diberi tipe secara otomatis bila memungkinkan.
  3. Langkah 3 – Ambil JSON

    • Gunakan JSON untuk migrasi konfigurasi lama ke aplikasi modern.
    • Salin ke clipboard atau unduh sebagai file .json.
Example: INI to JSON
# Input INI
driver = postgres

[connection]
host = localhost
port = 5432

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

Related tools

Pertanyaan yang Sering Diajukan

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.