YAML to TOML Converter
Convert config files from YAML to TOML right in your browser, preserving strings, numbers and booleans. Handy for migrating configs between formats.
—
Moving a configuration from YAML to TOML
YAML and TOML solve the same problem from opposite directions. YAML uses indentation and is economical to write, at the cost of typing rules that surprise people — the famous case of Norway's "no" turning into false. TOML is more verbose, one key equals value per line with explicit types, and in exchange it rarely leaves doubt about what was written.
Paste the YAML and the page returns the TOML equivalent line by line. Each key: value pair becomes key = value. Strings gain quotes, with inner quotes escaped; numbers and the booleans true and false pass through unquoted; inline lists in square brackets are kept as they are. Anything the page cannot read as a pair becomes a comment in the output, so you never lose sight of the original content.
This is a surface conversion, and the limit is worth knowing before you paste a large file: only the root level is translated. Maps nested by indentation, lists written with hyphens across several lines, block scalars with | or >, anchors and references do not turn into TOML tables — they appear commented out. For a flat configuration file, the kind with a couple of dozen direct keys, the output is ready to use.
Frequently asked questions
Why did my nested block become a comment?
Does the conversion preserve types?
Is there a way back?
Related Tools
TOML to YAML Converter
Convert config files from TOML to YAML right in your browser, preserving strings, numbers and booleans. Handy for migrating configs between formats.
CSV to YAML List Converter
Convert a CSV with a header into a YAML list of objects, preserving numbers and booleans. Useful for building config files and fixtures from spreadsheets.
INI to TOML Converter
Converts an INI file (with [section] headers and key=value) to TOML — close formats with minor adjustments.
YAML to JSON Converter
Convert YAML to JSON right in your browser, with no data sent to any server. Paste the YAML and copy ready-to-use JSON for APIs, configs and scripts.
TOML to INI Converter
Converts simple TOML (with [section] and key = value) to INI — strips quotes from strings.
YAML to JSON
Convert YAML data to JSON format.