Converts YAML into TOML.
YAML to TOML converts a YAML document into equivalent TOML, turning nested mappings into tables, lists of objects into arrays of tables, and scalars into typed TOML values. It is useful when you have configuration written in YAML but need the TOML format expected by tools like Cargo, Hugo, or other apps that read .toml config. The conversion runs entirely in your browser, so it is a quick way to migrate config files without changing your data structure.
No. The conversion happens entirely in your browser using JavaScript. Your YAML is never sent to a server or any external service.
TOML documents must start with key/value pairs, so the input must be a YAML mapping (object) at the top level. A bare scalar, a top-level list, an empty document, or a null value will be rejected with that message.
TOML has no null type, so keys with a null value are dropped from the output. The rest of the mapping is converted normally.
Nested mappings become TOML tables (for example [owner]), a list of scalars becomes an inline array, and a list of mappings becomes an array of tables (for example [[items]]).
Yes. Numbers, booleans, and floats are emitted as unquoted TOML values, while strings are quoted, matching the types parsed from your YAML.