ToolBuddy
In Browser

JSON ↔ TOML

Convert JSON objects to TOML and TOML documents back to JSON in the browser. Handy for Cargo.toml, pyproject, and app config fragments. Parsing stays on-device.

Runs in your browser. Nothing is uploaded.

Loading tool…

About this tool

Convert a JSON object to TOML and TOML back to JSON with smol-toml in the browser. Typical use is Cargo.toml-style config, pyproject fragments, and app settings that you would rather not paste into a hosted converter.

How to use: paste JSON, pick JSON to TOML, copy. Reverse for a .toml file you want as JSON. A JSON array or scalar at the root fails because TOML needs a table. Dates and inline tables follow smol-toml defaults.

Example: {"package":{"name":"api"}} becomes a [package] table with name = "api". Nested objects become dotted or header tables.

Documents never leave the tab. Related: JSON to YAML for a different config dialect, JSON formatter to tidy the JSON side first. After load, converting works offline.

Related Convert tools