TOML to JSON Converter

Paste TOML from Cargo.toml, pyproject.toml, or app config and convert it into readable JSON for scripts, audits, and migration work.

All data conversion happens locally in your browser. No JSON, CSV, YAML, XML, or TOML is sent to our servers.
TOMLJSON

Quick examples

Convert TOML config into formatted JSON

TOML to JSON helps when configuration from Rust projects, Python packaging, OpenAI Codex config.toml files, static site settings, or application config needs to be inspected by JSON-based scripts, API clients, validation tools, or migration checks. The converter parses TOML and writes indented JSON.

TOML is designed for configuration, while JSON is a general data format. Tables, arrays of tables, and scalar values can map well, but comments and formatting do not survive the conversion.

TOML examples worth checking as JSON

  • Cargo.toml metadata when a release script expects package data as JSON.
  • pyproject.toml dependency or tool settings before moving them into another pipeline.
  • OpenAI Codex config.toml snippets when you want to inspect model, provider, sandbox, or trusted-project tables.
  • Application config with nested tables and arrays that needs a quick JSON review.

What to review after conversion

  • Comments and spacing that explained the original TOML file.
  • Dotted keys and tables that become nested JSON objects.
  • Arrays of tables that become JSON arrays of objects.
  • Date, time, and datetime values, which may serialize as strings or Date-like values depending on the parser path.
Date note: review TOML dates before using the JSON output in production. Different parser and serializer combinations can preserve them as strings or Date values.

Related converter

Going the other direction? Use the JSON to TOML converter for config-style JSON objects that can be represented as TOML.

TOML to JSON FAQ

Are TOML comments preserved in JSON?

No. JSON has no comment syntax, so TOML comments are removed during conversion.

How are TOML tables represented in JSON?

TOML tables become nested JSON objects. Arrays of tables become JSON arrays containing objects.

What happens to TOML date and time values?

Date, time, and datetime values should be reviewed after conversion because parser behavior can affect whether they appear as strings or Date-like serialized values.