Skip to main content
${format:vault}

YAML → TOML Converter

YAML Input
Tab inserts an indent. Press Escape, then Tab, to move focus out of the editor.
TOML Output

Why use a private YAML to TOML converter?

Moving YAML configs to TOML for Rust, Python, or Hugo is a common migration task. This converter handles it entirely in your browser — no data is uploaded or transmitted.

How it works

js-yaml parses the YAML input. The root must be a YAML mapping (object) since TOML requires a root table. The converter maps YAML sequences of mappings to TOML arrays of tables and serializes the result to TOML format.

Common use cases

  • Migrating GitHub Actions or Kubernetes YAML configs to TOML for Rust tooling
  • Converting YAML front matter in Markdown files to TOML for Hugo
  • Translating YAML config files to TOML for pyproject.toml or Cargo.toml

Frequently asked questions

Is my data safe to convert here?
Yes. All conversion happens in your browser. No data is transmitted to any server.
Why must the YAML root be a mapping?
TOML requires a root table (object). A YAML sequence at the root has no direct TOML equivalent.

Related tools