Converts a JSON object into TOML.
JSON to TOML converts a JSON object into TOML, the configuration format used by tools like Cargo, pip, and many Go and Rust projects. Paste your JSON, and the tool parses it and stringifies it as valid TOML in the browser. It is handy when you want to migrate API responses or generated JSON into a human-readable config file.
No. The conversion runs entirely in your browser using a client-side library, and nothing you paste is uploaded or stored on any server.
It expects valid JSON whose top level is an object. A top-level array, string, number, or null is rejected because TOML requires a top-level table.
TOML documents must start with key-value pairs, so the tool only accepts a JSON object at the root. Wrap your array or scalar value in an object before converting.
The input is parsed with JSON.parse, so malformed JSON throws a parse error and no TOML is produced until the input is valid.
Yes. Nested objects become TOML tables and arrays are emitted as TOML arrays, following the smol-toml serializer's output.