Esta página ainda não foi traduzida para o português, por isso aparece em inglês.

TOML to JSON & YAML Converter

Convert TOML config files — Cargo.toml, pyproject.toml, Hugo or Netlify configs — to JSON or YAML, or turn JSON and YAML into TOML. Invalid TOML is reported with the exact line.

Atualizado em
Convert

Seus dados nunca saem do seu computador. Todo o processamento acontece localmente no navegador.

Como usar: TOML Converter

  1. Choose the direction — for example TOML → JSON.
  2. Paste your file; it converts as you type and syntax errors show the line and column.
  3. Copy or download the result.

About TOML

TOML (Tom’s Obvious, Minimal Language) is a config format built to be easy to read: key = "value" pairs, [tables] for sections and [[arrays of tables]] for lists of objects. Rust’s Cargo.toml, Python’s pyproject.toml, Hugo, Netlify and many CLIs use it. This converter follows TOML 1.0.

How types convert

Strings, numbers, booleans, arrays and tables map directly to JSON and YAML. TOML has native dates and times; JSON has none, so they become ISO 8601 strings. Converting JSON or YAML to TOML needs an object at the top level — TOML documents are always tables — and null values are skipped, because TOML has no null.

Common TOML errors

  • Defining the same key or table twice.
  • Strings without quotes — name = devpack must be name = "devpack".
  • Mixing a table and a dotted key for the same name.

Private by design

Conversion runs entirely in your browser — your code is never uploaded, so it’s safe for proprietary projects.

Também pesquisado como: toml to json, json to toml, toml to yaml, yaml to toml, toml validator, toml parser online.

Ferramentas que combinam com: TOML Converter

  • JSON to YAML — Paste JSON and get clean YAML for Kubernetes manifests, Docker Compose, GitHub Actions or any config file.
  • YAML to JSON — Paste YAML — a Compose file, Kubernetes manifest or CI config — and get formatted JSON.
  • YAML Validator — Paste a Docker Compose file, Kubernetes manifest, GitHub Actions workflow or any YAML to pinpoint errors, catch common pitfalls and get a cleanly formatted version.
  • Formatação JSON — Cole o JSON aqui para formatá-lo, compactá-lo ou validá-lo.

Perguntas frequentes

How do I convert pyproject.toml or Cargo.toml to JSON?
Paste the file with TOML → JSON selected. Sections like [tool.poetry] or [dependencies] become nested JSON objects.
Why are my dates strings in the JSON?
JSON has no date type, so TOML dates and times are written as ISO 8601 strings, which every JSON library can parse.
Why can’t I convert a JSON array to TOML?
A TOML document is always a table (an object). Wrap the array in an object, for example {"items": [...]}, and it becomes an array of tables.
Posso instalar o TOML Converter como um aplicativo da web e usá-lo offline?
Sim. O TOML Converter é um aplicativo da web instalável (PWA) — instalado a partir do seu navegador, não baixado de uma loja de aplicativos. Clique em “Instalar aplicativo” na parte superior desta página no Chrome ou no Edge (Windows, macOS, Linux, ChromeOS) ou, no Android, use “Compartilhar” → “Adicionar à tela inicial” no iPhone e no iPad, ou “Arquivo” → “Adicionar ao Dock” no Safari 17+ em um Mac. Em seguida, ela se abre em uma janela própria com seu próprio ícone e, como é executada inteiramente no seu navegador, continua funcionando offline. O Firefox no desktop não permite a instalação de aplicativos da web. Como funciona a instalação.

Ferramentas relacionadas