YAML to TOML Converter

Convert YAML to TOML directly in your browser. Move configs between ecosystems without hand-rewriting. Free, client-side, no upload.

YAML inputpaste, type, or drop a file
TOML output
Runs 100% in your browser. Nothing is uploaded, logged, or stored, and there are no ads. Verify it yourself: open your browser's Network tab while you convert and watch that no requests leave this page.

About this tool

Convert YAML config directly to TOML without a manual rewrite, handy when porting settings from YAML-first ecosystems (Kubernetes, CI pipelines) into TOML-first ones (Rust, Python packaging, Hugo).

The conversion goes through a typed intermediate representation, so booleans stay booleans and numbers stay numbers. YAML comments cannot be carried over, because the data model has no place for them.

Common uses

  • Port application config from a YAML file to pyproject.toml tool sections.
  • Convert Hugo/Netlify configs between their supported formats.
  • Standardize a mixed-format repo on TOML.

Automate via API

The same conversion is available as a REST endpoint for scripts, pipelines, and backends:

curl -X POST https://payloadly.com/api/v1/tools/yaml-to-toml \
  -H "Content-Type: text/plain" \
  -H "X-Api-Key: YOUR_API_KEY" \
  --data-binary @input.yaml

API documentation · Get an API key

YAML notes

YAML is a human-friendly superset of JSON used heavily in Kubernetes manifests, GitHub Actions workflows, Docker Compose files, and CI/CD pipelines. Indentation is structural, and unquoted scalars are type-coerced.

  • Indentation defines structure; tabs are not allowed for indentation.
  • Unquoted values like `no`, `on`, or `1.0` may be coerced to booleans or numbers.
  • Comments (`# ...`) cannot survive a round-trip through JSON.

TOML notes

TOML (Tom's Obvious, Minimal Language) is the config format of choice for Rust (Cargo.toml), Python (pyproject.toml), and many modern CLIs. It maps cleanly to a hash table and supports first-class dates and comments.

  • TOML documents must have a table (object) at the top level, never an array.
  • TOML has first-class date/time types that JSON must represent as strings.
  • TOML values cannot be null; null fields are omitted when converting into TOML.

Frequently asked questions

Is my data uploaded to a server?

No. This tool runs entirely in your browser using JavaScript, and there are no ads on the page. Nothing you paste or drop here is uploaded, logged, or stored, and you can verify that yourself: open your browser's developer tools and watch the Network tab while you convert (no requests leave the page), or disconnect from the internet after the page loads and keep working.

What should I watch out for when converting YAML to TOML?

Indentation defines structure; tabs are not allowed for indentation. Unquoted values like `no`, `on`, or `1.0` may be coerced to booleans or numbers. TOML documents must have a table (object) at the top level, never an array. TOML has first-class date/time types that JSON must represent as strings.

Is there a size limit or a fee?

The browser tool is free with no signup and comfortably handles files up to tens of megabytes (limited by your device's memory). For automated or bulk processing inside your own scripts and pipelines, use the paid REST API.

Related tools