Tables and arrays
Nested structures are converted to TOML tables and arrays.
Effortlessly convert your YAML files into clean, readable TOML. This free converter handles nested tables, arrays of tables, and preserves comments where possible. Perfect for teams moving configuration from YAML to TOML for better readability in Python or Rust projects. Works online, no download needed.
Converted output will appear hereNested structures are converted to TOML tables and arrays.
Files are processed only in your browser.
The output works with Cargo.toml and pyproject.toml.
import tomllib\nfrom pathlib import Path\n\nconfig = tomllib.loads(Path("config.toml").read_text())\nprint(config["server"]["host"])