TOML to YAML Converter

Convert TOML to YAML format

Input TOML

Converted YAML

Paste your TOML on the left and the YAML shows up here.

Or drop a file on this box, , or .

What is TOML to YAML Converter?

Settings that started life in TOML often have to move somewhere that only reads YAML: a Docker Compose file, a ConfigMap for Kubernetes, a pipeline definition. Retyping them by hand is where indentation mistakes creep in. Paste the TOML here and each [table] becomes a nested mapping, each [[array]] of tables becomes a list of mappings, and the values keep their types.

The input is read by a parser that implements the TOML v1.0.0 specification; a file Cargo or Poetry accepts will convert. On the YAML side the dumper quotes strings that a YAML reader would otherwise misread: name = "yes" comes out as name: 'yes' and ver = "1.20" as ver: '1.20', so neither turns into a boolean or the number 1.2 on the way back in.

Dates survive the trip too. In the TOML sample, dob is an offset datetime; in the YAML it keeps its -08:00 offset and only gains a .000 milliseconds part, and a local date such as 2026-11-23 stays a bare date. The conversion runs in the page itself, with nothing sent to a server.

What Makes This Tool Different

Automatic Conversion

Paste TOML and get YAML. We handle all the syntax differences – tables become YAML objects, arrays stay as arrays, everything gets converted correctly.

Structure Preservation

Your data structure stays intact. TOML tables, arrays, and all values are preserved exactly as they were in TOML.

Validation Built-In

Broken input never produces half a YAML file. The whole TOML document has to parse before anything is written, and the parser message (for example a duplicate key or an unclosed string) tells you what to fix.

File Upload Support

Got a big file? Just upload it. Works great for converting those massive TOML configs without copy-pasting.

Download YAML

One click to download your YAML file. Drop it into your project, use it in Docker Compose, Kubernetes, or any YAML-based system.

Syntax Highlighting

The left pane highlights TOML and the right pane highlights YAML, so a string that ended up quoted or a list that nested one level too deep stands out at a glance.

How It Works

Follow these steps to convert TOML to YAML.

1

Paste or Upload TOML

Start with TOML in the left pane, pasted, typed, or opened from disk with Upload. Sample fills in the small TOML Example document with an [owner] table, a [database] table and a ports array, which is a quick way to see the mapping before trying your own file.

2

View YAML Output

The YAML on the right is regenerated on every edit. Tables are indented two spaces under their key, arrays are written as dash lists, and the order of keys follows your TOML. If the TOML does not parse, a red message appears at the top right with the parser error and the YAML pane is cleared.

3

Copy or Download

"Copy" sends the YAML to the clipboard, while "Download" writes it out as a YAML file. The converted YAML is ready to use in your project.

When You'd Actually Use This

Docker Compose

An app reads its settings from config.toml, and now the same values need to go into the environment section of a compose.yaml. Convert the relevant tables, copy the mapping across and you avoid retyping port numbers and hostnames.

Format Migration

Your team is standardising on YAML for every service config. Run each TOML file through here, commit the YAML next to it, and diff the parsed values in review before the TOML copy is deleted.

Kubernetes

A service that used to run on a VM kept its settings in TOML. Moving it to a cluster, you want those keys in a ConfigMap. The converted mapping can be pasted under data: or mounted as a file, and nested tables come through as nested keys.

CI/CD Pipelines

A build matrix lives in a TOML file that a script reads, and you want the same list in a GitHub Actions or GitLab CI file. An array of [[targets]] tables becomes a YAML list of mappings that drops straight into a matrix include.

Common Questions

Is my TOML data stored?

No. The TOML is parsed and the YAML written by JavaScript on this page; nothing is uploaded or kept after you close the tab.

What TOML formats work?

The converter works with any valid TOML structure – tables, arrays, nested tables, and mixed types. It analyzes the structure and converts it to equivalent YAML.

How are TOML tables handled?

A [database] table becomes a database: mapping with its keys indented under it, and a dotted header like [servers.alpha] becomes servers: with alpha: nested inside. Arrays of tables, [[replicas]], turn into a list where each item is a mapping, for example - host: db-1.

Can I convert YAML back to TOML?

Yep. Use our YAML to TOML converter to convert YAML files back to TOML format.

What if my TOML has special characters?

Strings are quoted whenever YAML would read them as something else. Values like yes, on, null, 1.20 or anything starting with * or & get single quotes, and multi-line strings are written in a form that keeps the line breaks. Plain words and hostnames stay unquoted.

Does it work with large TOML files?

Yes, within what your machine can parse comfortably. There is no debounce here, so each keystroke reparses the whole document; for a very large file, paste it in one go and use Download rather than editing it in place.

Other TOML Tools You Might Need

Check the TOML first, or send the same settings to JSON, XML or CSV instead; and when the YAML needs to come back, there is a page for the return trip.