YAML to TOML Converter
YAML → TOML v1.0.0 via js-yaml + @iarna/toml. Anchors and aliases are expanded; block and flow styles both parse.
YAML to TOML Converter — Free Online Tool
Converts YAML 1.2 documents into TOML v1.0.0 by parsing with js-yaml and emitting with @iarna/toml, expanding anchors and aliases, preserving timestamps as TOML offset date-times, and dropping nulls that TOML cannot express, useful for moving CI pipelines and application settings from YAML to TOML-based tooling.
How to use the YAML to TOML Converter
- Open the tool above — it runs entirely in your browser, so your input never leaves this page.
- Paste or type your input into the field, then press the relevant button (e.g. Encode / Decode, Generate, or Convert).
- Copy the result from the output area with the copy button orCtrl/Cmd + C.
- No signup, no upload, and no tracking — repeat as often as you need.
Frequently asked questions
Are YAML anchors and aliases preserved?
They are expanded, not preserved. js-yaml resolves each alias to the value it points at, so the TOML output repeats the content inline — TOML has no anchor mechanism.
What happens to YAML timestamps?
js-yaml resolves unquoted YAML 1.2 timestamps to Date objects, which @iarna/toml emits as TOML offset date-times. Quote the value in YAML if you want it to stay a plain string.
Can I convert a GitHub Actions workflow to TOML?
Structurally yes — the mapping converts cleanly — but GitHub Actions only reads YAML. The conversion is useful when you are moving the same data into a TOML-configured tool, not for the workflow file itself.
Free & private — why use this YAML to TOML Converter
The YAML to TOML Converter runs 100% client-side in your browser. Your data is never uploaded to a server, no account is required, and the tool is completely free. It works offline once the page has loaded and is part of a growing collection of privacy-first developer utilities.