Esta página aún no está traducida al español, así que la mostramos en 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.

Actualizado el
Convert

Tus datos nunca salen de tu ordenador. Todo se procesa localmente en tu navegador.

Cómo 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.

También se busca como: toml to json, json to toml, toml to yaml, yaml to toml, toml validator, toml parser online.

Herramientas que combinan con: 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.
  • Formateador JSON — Pega el código JSON para formatearlo, minimizarlo o validarlo.

Preguntas frecuentes

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.
¿Puedo instalar TOML Converter como aplicación web y utilizarla sin conexión?
Sí. TOML Converter es una aplicación web instalable (PWA): se instala desde el navegador, no se descarga desde una tienda de aplicaciones. Haz clic en «Instalar aplicación» en la parte superior de esta página en Chrome o Edge (Windows, macOS, Linux, ChromeOS) o, en Android, utiliza «Compartir» → «Añadir a la pantalla de inicio» en iPhone y iPad, o «Archivo» → «Añadir al Dock» en Safari 17+ en un Mac. A continuación, se abrirá en su propia ventana con su propio icono y, como se ejecuta íntegramente en tu navegador, seguirá funcionando sin conexión. Firefox en el ordenador de sobremesa no permite instalar aplicaciones web. Cómo funciona la instalación.

Herramientas relacionadas