Esta página aún no está traducida al español, así que la mostramos en inglés.

JSON to TOML Converter

Paste JSON and get clean TOML — nested objects become [tables], lists of objects become [[arrays of tables]] — ready for Cargo.toml, pyproject.toml or any TOML config.

Actualizado el
Convert

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

Cómo usar: JSON to TOML Converter

  1. Paste a JSON object — the top level must be an object.
  2. The TOML appears as you type; invalid JSON is reported with the position.
  3. Copy or download the TOML file.

How JSON maps to TOML

Simple values become key = value lines. Nested objects become tables — {"server": {"port": 8080}} turns into [server] followed by port = 8080. Arrays of objects become arrays of tables written with double brackets, [[servers]], one block per item. Arrays of plain values stay inline: tags = ["a", "b"].

What can’t be converted

TOML has no null, so null values are left out. A TOML document is always a table, so the JSON must be an object at the top level — wrap a top-level array in an object first. Dates in ISO 8601 strings stay strings; write them as TOML dates by hand if your tool expects a date type.

Private by design

The conversion runs in your browser; nothing is uploaded.

También se busca como: json to toml, convert json to toml, generate toml, json to cargo toml, json to pyproject toml.

Herramientas que combinan con: JSON to TOML Converter

  • TOML Converter — Convert TOML config files — Cargo.toml, pyproject.toml, Hugo or Netlify configs — to JSON or YAML, or turn JSON and YAML into TOML.
  • JSON to YAML — Paste JSON and get clean YAML for Kubernetes manifests, Docker Compose, GitHub Actions or any config file.
  • Formateador JSON — Pega el código JSON para formatearlo, minimizarlo o validarlo.
  • YAML to JSON — Paste YAML — a Compose file, Kubernetes manifest or CI config — and get formatted JSON.

Preguntas frecuentes

Why is my top-level JSON array rejected?
TOML documents are tables (objects). Wrap the array, for example {"items": [...]}, and it becomes an array of tables named items.
What happens to null values?
They are skipped, because TOML has no null type. Remove the key or give it a default value.
Can I convert TOML back to JSON?
Yes — choose TOML → JSON in the same tool.
¿Puedo instalar JSON to TOML Converter como aplicación web y utilizarla sin conexión?
Sí. JSON to 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