Conversor de INI a JSON

¿Necesitas la conversión inversa?
JSON to INI Converter

Entrada INI

1

Salida JSON

Ingresa datos en INI para convertirlos a JSON

Tus datos convertidos aparecerán aquí

Cómo convertir INI a JSON

  1. Paso 1 – Pega el contenido INI

    • Pega una configuración INI estándar (claves globales y [secciones]).
    • Los comentarios que empiezan con ; o # se ignoran en la salida JSON.
    • Importa archivos .ini o .txt directamente desde tu ordenador.
  2. Paso 2 – Verifica la conversión

    • Las claves globales permanecen en la raíz del objeto JSON.
    • Secciones como [database] se convierten en objetos anidados en el JSON.
    • Los valores numéricos se detectan y tipan automáticamente cuando es posible.
  3. Paso 3 – Descarga el JSON

    • Usa el JSON para migrar configuraciones antiguas a aplicaciones modernas.
    • Cópialo al portapapeles o descárgalo como archivo .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

Preguntas frecuentes

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.

Conversor de INI a JSON | JSONSwiss