TOML is the native config format for Rust (Cargo.toml), Python packaging (pyproject.toml), and many other tools. But plenty of downstream tooling — build scripts, APIs, linters, and CI systems — only accepts JSON. Converting by hand is error-prone because TOML's type system (inline tables, arrays of tables, four datetime variants) doesn't map directly to JSON syntax.
This converter handles the full TOML v1.0 spec and runs entirely in your browser. Config files that contain database credentials, API keys, or internal service addresses are never transmitted anywhere.
The input is parsed using a TOML v1.0-compliant parser that builds an intermediate JavaScript object. TOML tables become JSON objects, TOML arrays of tables ([[double brackets]]) become JSON arrays, and all four TOML datetime types (offset datetime, local datetime, local date, local time) are serialized as ISO 8601 strings since JSON has no native datetime type.
Dotted keys (a.b.c = 1), inline tables, and multi-line basic and literal strings are all handled. The output is formatted with 2-space indentation.