YAML to TOML Converter
Convert YAML to TOML in your browser. Mappings become tables, arrays of objects become table arrays, and unquoted timestamps are refused with a fix.
What this yaml to toml converter does
Mappings become [table] headers and an array of objects becomes repeated [[table]] blocks, the same shape the TOML reader parses back. An unquoted YAML timestamp would load as a date the TOML writer cannot spell, so the page refuses it and names the fix: quote the timestamp. TOML has no null value, so a null is dropped by the writer rather than guessed at.
How to use it
YAML to TOML Converter: paste the YAML into the box above, and press Run to get the TOML below.
Worked example
Input:
title: TOML Example
owner:
name: Tom
role: engineer
Output:
title = "TOML Example"
[owner]
name = "Tom"
role = "engineer"
Why it runs in your browser
The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads YAML and returns TOML; reloading the page discards both.
Mappings become [table] headers and an array of objects becomes repeated [[table]] blocks, the same shape the TOML reader parses back. An unquoted YAML timestamp would load as a date the TOML writer cannot spell, so the page refuses it and names the fix: quote the timestamp. TOML has no null value, so a null is dropped by the writer rather than guessed at.
Convert YAML to TOML in your browser. Mappings become tables, arrays of objects become table arrays, and unquoted timestamps are refused with a fix.
How to use it
YAML to TOML Converter: paste the YAML into the box above, and press Run to get the TOML below.
Why it runs in your browser
The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads YAML and returns TOML; reloading the page discards both.
What to Expect
Best for
- Converting YAML to TOML when the data is already on screen.
What this tool keeps
- Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere.
Sample input
title: TOML Example owner: name: Tom role: engineer
Sample output
title = "TOML Example" [owner] name = "Tom" role = "engineer"
Frequently asked questions
How do I use the yaml to toml converter?
YAML to TOML Converter: paste the YAML into the box above, and press Run to get the TOML below.
Is my input uploaded?
No. The text is parsed on this page with JavaScript and is never posted to a server.
Is there a size limit?
Yes: 5 MB per run. Larger input is refused with a message rather than freezing the tab.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.