Conversor de INI para JSON

Precisa da conversão inversa?
JSON to INI Converter

Entrada INI

1

Saída JSON

Insira dados em INI para convertê-los em JSON

Os dados convertidos aparecerão aqui

Como converter INI para JSON

  1. Etapa 1 – Cole o conteúdo INI

    • Cole uma configuração INI padrão (chaves globais e [seções]).
    • Comentários que começam com ; ou # são ignorados na saída JSON.
    • Importe arquivos .ini ou .txt diretamente do seu computador.
  2. Etapa 2 – Verifique a conversão

    • As chaves globais permanecem na raiz do objeto JSON.
    • Seções como [database] viram objetos aninhados no JSON.
    • Valores numéricos são detectados e tipados automaticamente quando possível.
  3. Etapa 3 – Baixe o JSON

    • Use o JSON para migrar configurações legadas para apps modernas.
    • Copie para a área de transferência ou baixe como arquivo .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

Perguntas Frequentes

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.