Convert TOML to YAML
Turn a TOML config into readable YAML. Tables become maps, arrays of tables become lists, and syntax errors show the line. Everything happens in your browser.
- Free forever
- Handled in this tab
- 2 or 4 space indent
- Dates kept as written
- Runs on your device. Files are never uploaded.
- Free and unlimited. No sign-up, no watermark.
TOML to YAML in three steps
No account, no email, no waiting for an upload.
- STEP 01
Add your TOML
Use a .toml or .txt file.
- STEP 02
Pick an indent
Choose 2 or 4 spaces. Tabs are not valid in YAML, so choosing Tabs writes 2 spaces.
- STEP 03
Copy or download the YAML
If the TOML has an error, you get its line and column instead.
What TOML to YAML does, and what it doesn't
We'd rather tell you up front than surprise you after the download.
What you get
- Tables to maps[section] headers and dotted keys become nested YAML maps.
- Arrays of tables to listsEach [[section]] block becomes an item in a YAML list.
- Dates preservedTOML date and time values are written in their original form.
- No wrappingLong strings stay on one line.
- Helpful errorsDuplicate keys, missing quotes and similar mistakes are reported with a position.
Good to know
- Comments are lostThey are not part of the parsed data.
- Dates are strings in YAML outputThey are written as plain text values. How a YAML parser reads them depends on the tool.
- Big integersIntegers beyond 2^53 may be rounded in the browser.
Your data never leave your device
The tool runs inside your browser instead of on our servers, so there is nothing to upload, store or delete afterwards.
Typical online tool upload
Your file travels over the internet, sits on someone else's computer for a while, and you wait for the upload and the download.
Mediaextractr no upload
The tool loads into your browser once, then works on your file locally. Nothing is sent, so nothing can leak.
When people use TOML to YAML
Move a config to a YAML-based tool
Convert settings once instead of retyping.
Read a TOML file in another style
Compare layouts side by side.
Prepare CI settings
Reuse values from a TOML project file.
Learn the formats
See how tables map to YAML.
Mediaextractr vs typical upload tools
| MediaextractrPrivate | Typical upload tools | |
|---|---|---|
| Your file is uploaded | Never | Yes |
| Sign-up needed | No | Often, after a few files |
| Daily file limit | None | Often 1–2 free files |
| Watermark | Never | Sometimes |
| Wait for upload & download | No | Yes |
| Speed on very large files | Depends on your device | Depends on their servers |
How tables map
A table header like [server.http] becomes a nested map: server contains http. A repeated header like [[users]] adds an item to a users list, each item being a map. Simple key = value lines become key: value lines.
The structure is identical in both formats, only the syntax differs.
Review the result
Before using the YAML:
- Check indentation matches your project's style, then confirm it with the YAML validator.
- Re-add comments by hand if they were important.
- Use TOML to JSON to see the data as JSON.
- Convert the other way with YAML to TOML.
A small example: TOML to YAML
A TOML file with a [server] table holding host and port, and two [[users]] blocks, becomes a YAML map with a server key and a users list of two maps. Dotted keys such as database.pool.size become three levels of nesting, indented as you chose.
Questions, answered
How do I convert TOML to YAML?
Paste the TOML, choose an indent and copy the YAML.
Does my TOML get uploaded when converted?
No. It is parsed in your browser tab and nothing is sent anywhere.
Do comments survive?
No. Only the data is converted.
How are arrays of tables written?
As YAML lists of maps.
What if my TOML has an error?
The message gives the line and column and a short reason.
Will conversion work on a mobile device?
Yes. It runs the same way in current mobile browsers as on a desktop.