Skip to main content

TOML to JSON

Convert between TOML and JSON live, in either direction.

Free & unlimited
Direction
TOML
JSON
{ "title": "Toolchamp", "owner": { "name": "Arni", "role": "admin" }, "server": { "port": 8080, "host": "localhost" } }
All processing happens in your browser. No data is sent to any server.

About this tool

  1. 1

    Paste your input

    Paste TOML or JSON content into the left editor panel.

  2. 2

    Choose direction

    Select whether to convert from TOML to JSON or from JSON to TOML.

  3. 3

    Review the output

    The converted result appears instantly in the right panel with proper formatting.

  4. 4

    Copy or download

    Copy the result to your clipboard or download it as a file.

  • TOML is often used for config files like Cargo.toml, pyproject.toml, and Hugo configs.
  • Nested TOML tables map directly to nested JSON objects - check indentation after converting.
  • TOML datetime values are converted to ISO 8601 strings in JSON.
  • Use this to migrate configuration files between tools that expect different formats.
  • Bidirectional TOML-to-JSON and JSON-to-TOML conversion
  • Syntax highlighting for both formats
  • Preserves comments as best-effort annotations
  • Handles nested tables, arrays of tables, and inline tables
  • Real-time conversion as you type
  • Convert a Cargo.toml to JSON for use with a CI pipeline that reads JSON configs
  • Migrate Hugo site configuration from TOML to JSON or vice versa
  • Debug TOML config files by viewing the equivalent JSON structure
  • Generate TOML from a JSON API response for a Python pyproject.toml
Yes. TOML [[array]] sections are converted to JSON arrays of objects, and vice versa.
JSON does not support comments natively, so comments are stripped during TOML-to-JSON conversion.
Yes. Multi-line basic strings and literal strings are fully supported and convert to standard JSON strings.

Related tools

View all

We use anonymous analytics to improve ToolChamp. No personal data is stored or sold. Privacy Policy