Skip to content

YAML to TOML Converter

YAML config into TOML tables — the format Cargo, Hugo and pyproject.toml want.

Drop a YAML file here, or click to choose one

Converted on your device — the file is never uploaded

TOML

Quick Tool Overview

The YAML to TOML Converter produces TOML from YAML configuration: nested mappings become [tables], lists of mappings become [[array tables]], and nulls — which TOML cannot express — are dropped and counted.

What it does
Converts YAML config to TOML
You give it
A YAML mapping
You get back
TOML with tables and array tables
Best for
Cargo.toml, pyproject.toml and Hugo config
Converters Free, unlimited use No sign-up Runs in your browser

About the YAML to TOML Converter

Rust’s Cargo, Hugo, Netlify, Poetry and every modern Python project with a pyproject.toml read TOML, while the same settings often already exist as YAML from an older setup or another tool. The two formats look similar and are not: TOML has real tables, explicit types, and no concept of null at all.

Paste YAML and get TOML. Nested mappings become [tables], deeper ones become dotted [table.names], and a list of mappings becomes the [[array of tables]] form that Cargo and Hugo use for dependencies and menu entries. Strings, numbers, booleans and dates are written in their TOML forms with proper quoting and escaping. Because TOML cannot express null, those keys are dropped — and counted, so you know exactly how many and can give them real values.

Key features of the YAML to TOML Converter

Proper tables

Nested mappings become [tables] and deeper ones dotted [table.names].

Array tables

A list of mappings becomes the [[entry]] form Cargo and Hugo use.

Nulls accounted for

TOML has no null, so those keys are dropped — and the number is reported.

Correct quoting

Strings are escaped and quoted to TOML’s rules, including multi-line values.

Structure at a glance

The stats show how many keys, tables and array tables were written.

How to use the YAML to TOML Converter

  1. 1

    Paste your YAML

    It must start with keys: TOML documents are tables, not lists.

  2. 2

    Decide about nulls

    Drop them, which TOML requires, and read the count in the stats.

  3. 3

    Check the tables

    The stats show how many [tables] and [[array tables]] were produced.

  4. 4

    Copy or download the TOML

    Paste it into Cargo.toml, config.toml or pyproject.toml.

Frequently asked questions

TOML has no null. A key with no value cannot be represented, so those keys are dropped and the number removed is shown. Give them a real value in the YAML if they matter.

Reviews of the YAML to TOML Converter

What people who use the YAML to TOML Converter think of it. Reviews come from visitors and are posted as written.

No ratings yet

Yours would be the first.

  • 5 0 reviews rated 5 stars
  • 4 0 reviews rated 4 stars
  • 3 0 reviews rated 3 stars
  • 2 0 reviews rated 2 stars
  • 1 0 reviews rated 1 star

Write a review

Used this tool? Your rating helps the next person decide.

Your rating

Plain text only — links, email addresses and HTML are not accepted. Your name and review are shown publicly; nothing else is collected. See the privacy policy.

0 reviews

Newest first

No reviews yet

Be the first to rate the YAML to TOML Converter. It takes half a minute and no account.

Write the first review

More converters