Conversor de TOML a JSON

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

Entrada TOML

1

Salida JSON

Ingresa datos en TOML para convertirlos a JSON

Tus datos convertidos aparecerán aquí

Cómo convertir TOML a JSON

  1. Paso 1 – Pega la configuración TOML

    • Pega pares clave-valor, [secciones] o [[tablas]] en el editor.
    • Los valores pueden ser cadenas, enteros, floats, booleanos, arrays o fechas.
    • También puedes importar archivos .toml desde tu ordenador.
  2. Paso 2 – Inspecciona el JSON

    • La herramienta convierte la semántica de TOML en objetos JSON válidos.
    • Las fechas (RFC 3339) se conservan como cadenas y se mantiene el tipado cuando es posible.
    • Verifica que las tablas se representen como propiedades JSON anidadas.
  3. Paso 3 – Exporta la salida

    • Copia el JSON para usarlo en aplicaciones JavaScript/TypeScript.
    • Descarga como archivo .json para migración de datos o uso en APIs.
Example: TOML to JSON
# Input TOML
title = "TOML Example"

[owner]
name = "Tom Preston-Werner"

// Output JSON
{
  "title": "TOML Example",
  "owner": {
    "name": "Tom Preston-Werner"
  }
}

Related tools

Preguntas frecuentes

What is TOML format?

TOML (Tom's Obvious Minimal Language) is a configuration file format that's easy to read due to obvious semantics. It's designed to map unambiguously to a hash table.

How are TOML sections converted?

TOML sections [section] become nested JSON objects. Dotted keys like 'database.host' create nested structures automatically.

What TOML features are supported?

The converter supports strings, numbers, booleans, arrays, inline tables, nested sections, and basic date/time parsing. Complex multiline strings and advanced TOML features may have limited support.

Are array tables supported?

Yes. Array tables [[products]] are converted to JSON arrays containing objects, which is useful for representing repeated configuration blocks.

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 TOML a JSON | JSONSwiss