YAML to TOML
Paste YAML, get TOML. Runs entirely in your browser — no upload, no signup. Preserves structure and primitive types where possible. Use the action bar below to copy or download the result.
What you'll use this for
YAML to TOML conversion fits a wide range of integration, migration, and tooling tasks.
Rust & Cargo
Move YAML configs into Cargo.toml-style TOML for Rust projects.
pyproject.toml
Reshape YAML lint or build configs into the pyproject.toml format.
App configs
Migrate app YAML configs to TOML for tools that prefer the TOML format.
Format migration
Round-trip between YAML and TOML for incremental migrations.
How to convert YAML to TOML
Paste your YAML
Drop it into the left editor. CodeMirror highlights syntax and reports errors inline.
Pick options
Defaults work for most inputs. Toggle auto-convert if you prefer manual runs.
Click Convert
Or leave auto-convert on for live updates as you type. Everything runs locally — no server.
Copy or download
Grab the TOML to clipboard or download as a .toml file.
Frequently asked questions
Yes. Completely free, no signup, no limits.
No. Conversion runs entirely in your browser. Your data never leaves your device.
Yes. After the first load, the page works without an internet connection.
@iarna/toml, a TOML 1.0 compliant serializer that runs entirely in your browser.
Yes. They become TOML tables and inline tables. Arrays of objects become array-of-tables.
About this converter
YAML and TOML solve overlapping problems with different syntax. This tool converts between them in your browser using battle-tested parsers and serializers — no server round-trip, no rate limits.
How it works
- Parse the YAML into an intermediate JavaScript object.
- Normalize primitive types (numbers, booleans) where the target format supports them.
- Emit TOML using a deterministic serializer.
Privacy
- Everything runs client-side — your data never leaves the browser.
- No accounts, no tracking of input, no rate limits.
- Works offline after the first load.