TOML to JSON

    Convert a TOML document into formatted JSON.

    Loading tool…

    About the toml to json

    Parses TOML and outputs indented JSON, which is often the quickest way to feed a Cargo or pyproject file into a script, a jq pipeline or an API that only speaks JSON.

    Frequently asked questions

    How are TOML dates represented in JSON?

    As ISO 8601 strings, since JSON has no date type. Anything consuming the output has to parse them back if it needs real date objects.

    Are the two formats equivalent?

    Close, but not identical. TOML has typed dates and forbids null; JSON has null and no dates. Round-tripping through both loses type information in one direction.