Something wrong with this tool?
About TOML JSON Converter Online
This tool converts between TOML and JSON. TOML is a configuration format designed for human readability — used in Rust's Cargo.toml, Python's pyproject.toml, and many other modern tools. JSON is universal but harder to read for humans.
Conversions in both directions are lossless for typical use cases: TOML's tables map to JSON objects, arrays of tables to arrays of objects, and scalar types translate one-to-one. The converter handles TOML's date/datetime types correctly by encoding them as ISO 8601 strings in JSON.
Useful when porting configurations between projects with different format preferences, generating TOML samples from JSON schemas, or programmatically generating TOML files from JSON-producing code.
How to use this tool
How to convert TOML to JSON
Paste your TOML
Drop a TOML document into the "TOML" field. The parser handles tables, inline tables, arrays of tables, multi-line strings, and dotted keys per the TOML 1.0 spec.
One-way conversion
This tool only goes TOML → JSON. There's no JSON → TOML direction here — if you need that, hand-edit or use a different converter.
Press Run
Result is a single `json` field — a pretty-printed JSON string (2-space indent) of the parsed TOML. Comments are not preserved (JSON has no comments).
Use the JSON downstream
Pipe the output into config schemas, JSON Schema validation, or jq. For typical use (Cargo.toml, pyproject.toml, prometheus configs) the result mirrors what TOML parsers in your language would produce.