Skip to content

Tools/YAML / TOML/TOML to JSON

TOML to JSON

This landing page sets source TOML and target JSON. Datetimes may stringify. Nested tables become JSON objects.

Same converter: all directions · YAML to JSON · JSON to YAML · JSON to TOML

Loading tool…

How to use TOML to JSON

  1. 1. Paste TOML. Tables, arrays of tables, and dotted keys are supported by smol-toml.
  2. 2. Keep TOML → JSON. Preselected here.
  3. 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");

This is one direction of the shared converter. The editor is the same; the title and default direction match this search.

Frequently asked questions

Related tools

All tools