DevNet KitTHE EVERYDAY TOOLBENCH
Code & Data · Local-first

TOML ↔ JSON Online

Convert common TOML documents to JSON or JSON to TOML.

Open TOML ↔ JSON

Free · No sign-up · Browser-based processing

What TOML ↔ JSON does

Convert common TOML documents to JSON or JSON to TOML. The utility is designed for quick, focused work without requiring an account or installing another application.

Common uses

  • Debug API payloads and configuration files
  • Prepare data for reviews, tests and migrations
  • Convert between common development formats

How to use TOML ↔ JSON

  1. Enter or paste the value you want to process in TOML ↔ JSON.
  2. Run the tool and review the generated result for the expected format.
  3. Copy or download the result and verify it in the system where it will be used.

Privacy: Runs locally in your browser. Input is not uploaded to the DevNet Kit server.

TOML ↔ JSON example

Try the tool with this representative input:

[server]
host = "localhost"
port = 8080
enabled = true

TOML ↔ JSON FAQ

What can I use TOML ↔ JSON for?

Convert common TOML documents to JSON or JSON to TOML. It is intended for focused code & data work and produces a result you can review before using elsewhere.

How does TOML ↔ JSON handle my input?

TOML ↔ JSON processes the input in your browser and does not upload it to the DevNet Kit server.

What should I verify after using TOML ↔ JSON?

Check the TOML ↔ JSON result against the requirements of the destination system, especially syntax, limits and environment-specific behavior.

Convert a simple TOML section while keeping an identifier as text

Choose to-json for the example. The quoted ID "001" remains a string, port becomes a number, enabled becomes a boolean and the simple numeric array becomes a JSON array. Dotted section names create nested objects; dotted assignment keys are kept as literal keys in this implementation.

This is a line-based subset, not a complete TOML parser. Complex arrays, multiline strings, arrays of tables and quoted comment characters need a dedicated TOML implementation. Conversion does not retain comments or layout. The reverse to-toml direction also needs review rather than an assumption of a lossless round trip.

Worked example

Input and settings:

[server]
id = "001"
port = 8080
enabled = true
ports = [80, 443]

Options:

to-json

Expected result or interpretation:

{
  "server": {
    "id": "001",
    "port": 8080,
    "enabled": true,
    "ports": [
      80,
      443
    ]
  }
}

Questions about this workflow

How do I keep a leading-zero TOML identifier as a JSON string?

Quote it as "001". This converter infers numbers and booleans from unquoted values and handles simple scalar arrays. Dotted section names nest objects, but dotted assignment keys remain literal keys.

Does this converter support complete TOML syntax and lossless round trips?

No. It uses a line-based subset. Complex arrays, multiline strings, arrays of tables and quoted comment characters need a dedicated parser. Comments and layout are not retained; review reverse conversion separately.

Continue this workflow