Offline engine (processed locally)TOML v1.0.0 Spec

YAML to TOML

v1.0.0

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.

—ms
YAMLInput (YAML)
lines: 19chars: 307Size: 307 BUTF-8
spaces: 2
TOMLOutput (TOML)
Converted output will appear here
lines: 0chars: 0Size: 0 BUTF-8
Size change: -100.00%TOML compliant: v1.0.0

Tool guide

Tables and arrays

Nested structures are converted to TOML tables and arrays.

Local processing

Files are processed only in your browser.

Rust and Python

The output works with Cargo.toml and pyproject.toml.

Read the result in your project

import tomllib\nfrom pathlib import Path\n\nconfig = tomllib.loads(Path("config.toml").read_text())\nprint(config["server"]["host"])