Formatters & Converters

TOML to JSON Converter

Convert TOML (Cargo.toml, pyproject.toml) to JSON and JSON back to TOML.

No upload, ever No account needed Works offline
Input (Paste TOML or JSON)
0 characters
Auto-updated
// how to use it

Three steps, no reading required.

Paste your input

Drop text, code, or data into the input pane — from an API response, a file, anywhere.

Pick a mode

Toggle the modes above the output. The result updates instantly as you type.

Copy the result

Grab the output with Copy or Download, or fix the error shown if the input is invalid.

// examples

Try it with a sample.

Config sample
title = "My App"

[owner]
name = "Ada"
dob = 1979-05-27T07:32:00Z

[database]
ports = [8000, 8001, 8002]
enabled = true
TYPICAL ONLINE TOOL

One direction only

  • Converts TOML to JSON but not back
  • Chokes on arrays of tables
  • Uploads your config
DEVUTILSNOW

Both ways, full TOML

  • TOML to JSON and JSON to TOML in one page
  • Tables, dotted keys, [[arrays of tables]], inline tables, multiline strings
  • Dates stay as strings, since JSON has no date type
// faq

Questions worth answering upfront.

No. Conversion runs entirely in your browser. Your TOML and JSON are never uploaded, stored, or logged.

Tables, dotted keys, arrays of tables ([[...]]), inline tables, arrays (including multiline), basic and literal strings (including triple-quoted), integers, floats, booleans, and comments.

TOML datetimes, dates, and times are kept as strings in the JSON output, since JSON has no native date type.

Yes. Switch to the JSON → TOML mode to turn a JSON object into TOML, with nested objects becoming tables and arrays of objects becoming arrays of tables.

Yes. Every tool on DevUtilsNow is free to use with no account required.

A [table] header becomes a nested JSON object, an [[array of tables]] becomes an array of objects, and dotted keys like server.port nest the same way. Comments are dropped, since JSON has no comment syntax.

// related guides

Guides that pair with this tool

All guides →

How to Convert TOML to JSON (and Back)

Convert TOML config to JSON and JSON to TOML — how tables, arrays of tables, inline tables, and TOML's typed values map across.

Read guide →

Need another tool?

36+ browser-based utilities — all free, all private, nothing to install.

Browse all tools →
Last updated: Oct 10, 2026