YAML to TOML Converter

Move configuration from YAML to TOML with tables and arrays of tables.

100% Client-Side Processing — your data never leaves this browser. Works offline. How it works

0 lines • 0 bytes Ready
Tip: drop a file anywhere on the editor
Input
Paste, type or drop a file
1
Result
Updates as you type
// Output will appear here…
About this tool

How the YAML to TOML works

Convert YAML to TOML: mappings become [tables], lists of mappings become [[arrays of tables]]. Useful when moving configs between tools. Free and private.

How to use the YAML to TOML

  1. Paste YAML or upload a .yaml file.
  2. Check the generated TOML tables.
  3. Copy or download the .toml file.

YAML to TOML example

Input
app:
  name: shop
  port: 8080
features:
  - export
  - beta
Result
features = ["export", "beta"]

[app]
name = "shop"
port = 8080

When to use it

  • Migrating a Hugo or Jekyll config.
  • Switching a tool's settings file from YAML to TOML.
  • Comparing the same config in both formats.

Tip: The top level must be a mapping, because a TOML document is always a table.

Structure preserved

Nested mappings become [tables]; lists of mappings become [[arrays of tables]].

Types kept

Numbers, booleans and lists keep their types in TOML.

Null handling

TOML has no null; such keys are left out and counted in a comment.

Readable keys

Keys are quoted only when they contain spaces or symbols.

FAQ

Common questions

Why convert YAML to TOML?

Tools such as Hugo, Cargo and pyproject-based Python projects use TOML, which has no indentation pitfalls.

Are YAML comments kept?

No, comments are not part of the data and are dropped.

Which YAML is supported?

Common config YAML: mappings, lists, quoted strings, numbers and booleans. Anchors and multi-document files are not supported.

Is it private?

Yes, the conversion runs in your browser.