Convertitore TOML in JSON

Ti serve la conversione inversa?
JSON to TOML Converter

Input TOML

1

Output JSON

Inserisci dati in TOML per convertirli in JSON

I dati convertiti appariranno qui

Come convertire TOML in JSON

  1. Passo 1 – Incolla la config TOML

    • Incolla coppie chiave-valore TOML, [sezioni] o [[tabelle]] nell’editor.
    • I valori possono essere stringhe, interi, float, booleani, array o date.
    • Puoi anche importare file .toml dal tuo computer.
  2. Passo 2 – Ispeziona il JSON

    • Lo strumento converte la semantica TOML in oggetti JSON validi.
    • Le date (RFC 3339) vengono preservate come stringhe e il tipo viene mantenuto quando possibile.
    • Verifica che le tabelle siano rappresentate come proprietà JSON annidate.
  3. Passo 3 – Esporta l’output

    • Copia il JSON per usarlo in app JavaScript/TypeScript.
    • Scarica come file .json per migrazione dati o uso API.
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

Domande frequenti

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.

Convertitore TOML in JSON | JSONSwiss