How to use JSON to TOML
- 1. Paste a JSON object. A top-level array cannot become a TOML document.
- 2. Confirm JSON → TOML. Preselected on this page.
- 3. Copy TOML. Check dotted keys vs [tables] for readability.
About this tool
Generating a Cargo.toml from JSON is a real fixture job. This page is not YAML and not a generic “converter” title — it is JSON to TOML so the query matches the H1.
Root shape
TOML wants a table at the root. If you paste `[1, 2]`, conversion fails. Wrap the array in an object if you must.
Code examples
Node
import { parse } from "yaml";
parse("name: Ada");