TOML to YAML Converter
Turn TOML configuration into YAML with clean indentation. Tables become nested mappings, arrays of tables become lists, and every value keeps its type.
How to Convert TOML to YAML
Quick answer: paste your TOML or open the file; the YAML appears below. Copy it or download the .yaml file.
-
1
Add your TOML
Paste it or open a file.
-
2
Choose options
Adjust the output on the right.
-
3
Check the YAML
Errors are explained clearly.
-
4
Copy or download
Save it as .yaml.
What You Get
What Is TOML?
TOML is a configuration format designed to be easy to read. Settings are written as key = value lines, grouped under [table] headings, with clear types for text, numbers, true/false, dates and lists. Many build tools, package managers and applications use TOML for their settings files.
What Is YAML?
YAML is a readable data format that uses indentation instead of brackets. Lists start with dashes, keys and values are separated by a colon, and comments start with #. It is widely used for configuration, automation and deployment files and for document front matter.
Why Convert TOML to YAML?
Deployment, automation and many developer tools use YAML. When settings exist in TOML, converting lets you reuse them in YAML-based tools without retyping or reformatting.
How the Conversion Works
Tables become indented mappings, arrays become dash lists, dates become standard date text and quotes are added only where YAML could misread a value. Comments are removed.
Example
The sample TOML becomes title: Shop settings, debug: false, port: 8080, then owner and database blocks, with the ports listed under database.
Who Uses It?
Developers and operations teams moving settings between tools, and writers converting front matter. Because everything happens in the browser, it is also safe for internal and confidential files.
Using Your YAML File
Save the result as .yaml or .yml. When editing it later, always indent with spaces, never tabs, and keep items at the same level aligned. Add comments with # to explain settings; they are allowed anywhere in YAML.
Common Problems in TOML Input
Common TOML mistakes are text values without quotes, the same key written twice, a table heading repeated, and dates in an unusual layout. Keys with spaces or dots must be quoted. Arrays may span several lines, but every item needs a comma between it and the next. When something is wrong, the message names the line, so fix that line and the output refreshes as you type.
Checking Your YAML Output
Check the indentation and lists: each level is indented by the same number of spaces and list items start with a dash. Text that could be mistaken for a number, date or true/false is quoted automatically so it keeps its meaning. Long text stays on one line. If your tool is fussy about quotes or indentation, switch between two and four spaces to match its own files.
Step by Step
Start by pasting your TOML into the input box, or press Open File to load it from your device. The converter reads it straight away and shows the YAML in the output box. If the input has a problem, a short message explains what is wrong and where, so you can fix it in place. Next, adjust the options on the right; the output refreshes immediately so you can compare. When you are happy, press Copy to put the result on your clipboard, or Download to save it as a .yaml file ready to use.
Private, Free and Instant
The converter is free, with no sign-up, no limit beyond the 5 MB file size and no watermark. It runs in your browser, so settings files with passwords, server addresses or customer data are never uploaded or stored. Paste the content, drop a file on the input box or press Open File, then copy the result or download it with the right file extension. It works on Windows, Mac, Linux, Chromebooks, iPhone and Android.
TOML to YAML: Moving Configuration Between Formats
TOML and YAML are both used for configuration. TOML has explicit tables and typed values, while YAML relies on indentation and is popular in container and automation tools.
Mapping
[section] tables become nested mappings, arrays of tables become lists, and strings, numbers, booleans and dates keep their types. Comments are usually lost.
Caution
YAML interprets some words, such as yes, no and on, as booleans in older versions. Quote values where needed. For the reverse, use YAML to TOML.
Frequently Asked Questions
Questions about TOML to YAML