JSON to TOML

    Convert a JSON document into TOML.

    Loading tool…

    About the json to toml

    Turns JSON into TOML, grouping nested objects into bracketed tables. Useful when moving a configuration file to a Rust or modern Python project, both of which expect TOML rather than JSON.

    Frequently asked questions

    Can TOML represent null?

    No. TOML has no null type. Remove null-valued keys before converting, or the conversion will fail — omitting the key entirely is the idiomatic TOML equivalent.

    Why are my tables in a different order?

    TOML requires that all bare key-value pairs for a table appear before any sub-table headers. Reordering is not cosmetic, it is what makes the output parse.