TOML to JSON Converter

Parse TOML config files into structured JSON for APIs and tooling.

  • 100% client-side · your data never leaves your browser
  • Instant, no rate limits
  • Free, no sign-up
Input
JSON

Your result appears here

Paste your data into the panel on the left — everything runs privately in your browser.

Overview

TOML to JSON Converter — Parse TOML Config Online

Convert TOML configuration files to JSON for APIs, JavaScript tooling, and JSON-native pipelines. Paste pyproject.toml snippets, Cargo.toml sections, or any TOML document and get structured JSON instantly. Parsing runs in your browser — configs stay on your machine.

No uploadsNo sign-upOpen source
  1. TOML in modern stacks

    Python (pyproject.toml), Rust (Cargo.toml), and many CLI tools use TOML for human-edited config. JSON remains the default for web APIs and browser tooling. This converter bridges both worlds when you need to inspect TOML as nested JSON or feed it to JSON-only tools.

  2. How TOML maps to JSON

    Tables ([section]) become JSON objects, and dotted keys build nested objects. Arrays of tables ([[items]]) become arrays of objects. Inline tables map to objects, and TOML's typed scalars — strings, integers, floats, booleans, and dates — become their JSON equivalents (dates as ISO-8601 strings, since JSON has no date type).

    • [table] and dotted keys → nested objects
    • [[array of tables]] → array of objects
    • Integers, floats, booleans → JSON numbers and booleans
    • Dates and times → ISO-8601 strings
  3. TOML in modern stacks

    TOML is the config format of choice for Python packaging (pyproject.toml), Rust (Cargo.toml), and many CLI tools because it's easy to hand-edit. Converting it to JSON lets you feed those configs into JavaScript tooling, JSON-only APIs, tree viewers, or a JSON Schema validator without writing a parser.

FAQ

Frequently asked questions

How do I convert TOML to JSON?

Paste your TOML — a pyproject.toml or Cargo.toml section works — and JsonDrift returns the equivalent structured JSON to copy or download.

How are TOML dates handled?

JSON has no date type, so TOML dates and times are converted to ISO-8601 strings that preserve the original value.

Are comments preserved?

No. JSON has no comment syntax, so TOML comments are dropped. The data is fully preserved.

Can I convert invalid TOML?

Parse errors surface with a message pointing at the problem so you can fix the source TOML.

Continue with a related tool

All tools

Learn more in our guides

All guides