How to use TOML to JSON
- 1. Paste TOML. Tables, arrays of tables, and dotted keys are supported by smol-toml.
- 2. Keep TOML → JSON. Preselected here.
- 3. Copy JSON. Use it in Node or a test fixture.
About this tool
Rust and Python configs are TOML. JavaScript tooling wants JSON. This URL is the TOML → JSON pair on the shared converter so that search query has its own title and H1.
Types that JSON cannot keep
TOML offset datetimes and local dates have no JSON equivalent. Expect strings. Review before you feed the JSON to a typed parser.
Code examples
Node
import { parse } from "yaml";
parse("name: Ada");