Two sides of the same conversion. TOML → JSON parses a TOML config into a JSON object; JSON → TOML does the reverse, serializing JSON into clean TOML. Together they let you move data between the human-friendly config format and the API-native one — both run 100% locally.

Use TOML → JSON when

  • You have a TOML config (Cargo.toml, pyproject.toml) and need it as JSON.
  • An API or tool expects JSON but your source is TOML.
  • You're migrating or bridging a TOML-based project into a JSON pipeline.

Use JSON → TOML when

  • You have JSON data that needs to become a readable TOML config.
  • You're generating a config file for a TOML-based toolchain.
  • You want hand-editable output — TOML is friendlier for humans to tweak.

Side by side

TOML → JSONJSON → TOML
DirectionTOML → JSONJSON → TOML
InputTOMLJSON
OutputJSONTOML
Handles nested tables?YesYes
Preserves types?Yes — dates, numbers, booleansYes — within TOML's types
Runs 100% locallyYesYes
under the hood

Powered by the same TOML engine (smol-toml) in both directions, so a round trip preserves the core data. TOML's richer date/time types map to strings in JSON, so a round trip may normalize those.