Convert TOML to YAML
Turn a TOML config file into YAML.
About this converter
Generally to move a configuration into a toolchain that reads YAML — CI pipelines, container definitions and Kubernetes all want it, and none of them read TOML.
TOML is the stricter of the two, so this direction is the easier one: everything it can express, YAML can hold. Sections become nested mappings and array-of-table blocks become lists.
TOML's date and time values become ISO 8601 strings, since YAML's own timestamp handling varies between parsers and a string is read identically by all of them. Very large integers become strings too, to keep every digit.
Frequently asked questions
Why are dates strings rather than YAML timestamps?
Because YAML parsers disagree about them. YAML 1.1 has an implicit timestamp type, YAML 1.2 core does not, and which you get depends on the library reading the file. An ISO 8601 string is read the same way by every one of them.
Do comments survive?
No. Both formats have comments, but the conversion goes through the data rather than the text, so nothing carries them across. Nothing else is lost.
Does what I paste get sent anywhere?
No. The conversion runs in your browser, on your own machine — which is why the result appears as you type. Nothing is uploaded and nothing is logged. That matters for this kind of tool in particular: config files and API responses are exactly the things that carry keys, hostnames and customer data.