Developer

TOML to JSON Converter

Convert TOML configuration to JSON and JSON back to TOML.

All tools

Input

Output

{
  "title": "TULAKITO",
  "version": 2,
  "server": {
    "host": "0.0.0.0",
    "port": 8080
  },
  "users": [
    {
      "name": "Ada",
      "admin": true
    },
    {
      "name": "Linus",
      "admin": false
    }
  ]
}

Frequently asked questions

What's the difference between TOML tables and inline tables?
A standard table uses [section] headers and can span many lines, while an inline table uses braces { key = value, ... } on a single line. Inline tables are immutable - you cannot add to them with later [section.sub] entries.
Why does Cargo or pyproject.toml use TOML instead of JSON?
TOML is designed for human-edited configuration with comments, multi-line strings, and unambiguous date types, none of which JSON supports cleanly. JSON remains better for machine-to-machine payloads.
How are TOML dates and times converted to JSON?
JSON has no native date type, so TOML datetimes are emitted as ISO 8601 strings during conversion. Type information is lost on the round trip - you need to know which strings to parse back into dates.