Conversor de TOML para JSON

Precisa da conversão inversa?
JSON to TOML Converter

Entrada TOML

1

Saída JSON

Insira dados em TOML para convertê-los em JSON

Os dados convertidos aparecerão aqui

Como converter TOML para JSON

  1. Etapa 1 – Cole a configuração TOML

    • Cole pares chave-valor, [seções] ou [[tabelas]] TOML no editor.
    • Os valores podem ser strings, inteiros, floats, booleanos, arrays ou datas.
    • Você também pode importar arquivos .toml do seu computador.
  2. Etapa 2 – Inspecione o JSON

    • A ferramenta converte a semântica do TOML em objetos JSON válidos.
    • Datas (RFC 3339) são preservadas como strings e a tipagem é mantida quando possível.
    • Verifique se as tabelas são representadas como propriedades JSON aninhadas.
  3. Etapa 3 – Exporte a saída

    • Copie o JSON para usar em apps JavaScript/TypeScript.
    • Baixe como arquivo .json para migração de dados ou uso em 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

Perguntas Frequentes

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 para JSON | JSONSwiss