JSON to TOML

Convert a JSON object to TOML. A root array or scalar is an error. Date-like strings stay strings.

Parsing and conversion on this page run in your browser.

TOML output uses table headers. The indent option applies to JSON and YAML only.

  • JSON has no date type. Strings are not converted back into TOML dates.
  • Comments are not kept after parsing.

FAQ

Why was my array rejected?

TOML’s root is a table. A JSON array or scalar cannot be the document root.

Does indent change the TOML?

The TOML writer uses table headers. Indent is stored for JSON and YAML output on the other convert pages.

Related tools