Skip to content

YAML to TOML Converter

Convert YAML to TOML online, for free, right in your browser. This YAML to TOML converter migrates configuration written in .yaml or .yml into TOML's table-based syntax, commonly used by Rust, Python, and modern CLI tools. Nested mappings become TOML tables, and arrays of mappings become array-of-tables.

Drop your YAML file here

or

Supports .yaml and .yml files, processed entirely on your device

Untitled.yaml0 B0 lines0 characters
YAML →JSON
Your converted output will appear here.
Waiting for YAML input.

What to expect

  • Nested objects are written as [section.subsection] tables.
  • Arrays of mappings become [[array-of-tables]] entries.
  • Null values are written as empty strings, since TOML has no native null.

Example

Input (YAML)
site:
  name: Aperture Docs
  version: 1.4.2
  active: true
tags:
  - web
  - cli
  - tools
author:
  name: Jane Doe
  email: jane@example.com
Output (toml)
tags = ["web", "cli", "tools"]

[site]
name = "Aperture Docs"
version = "1.4.2"
active = true

[author]
name = "Jane Doe"
email = "jane@example.com"

YAML to TOML Converter FAQ

Does TOML support null values?

No. TOML has no null type, so null fields are written as empty strings and flagged in the conversion notes.

How are nested YAML objects handled?

Nested mappings are converted into dotted TOML table headers, such as [server.database].

Is my configuration file uploaded anywhere?

No. Parsing and conversion both happen locally in your browser.

Is there a difference between .yml and .yaml?

No. ".yml" and ".yaml" are just two file extensions for the exact same format — this converter accepts either one, so a "yml to TOML" conversion and a "yaml to TOML" conversion produce identical results.