TOML to YAML Converter Online — Free & Private

Turn TOML into YAML through the same JSON intermediate as the other FastMinify converters, with indentation controls included.

Loading…
TOML → YAML for reviews and GitOps diffs
Turns TOML configuration into readable YAML, for reviews and GitOps diffs.

Developer notes

Comments are dropped. Add YAML comments by hand after the conversion. Strings that look like numbers, such as the TOML string "1.0", are written without quotes, so a YAML reader sees a number. Double-quote all strings keeps them as text. Dates and times become ISO 8601 text. Indent width switches between 2 and 4 spaces.

Use cases

Share TOML configuration with teammates who prefer YAML. Preview the YAML equivalent before a migration. Compare a TOML file with a YAML file in a diff.

About these options

CSV exports: choose a delimiter (Auto follows locale — semicolon on /fr), RFC-minimal vs always-quoted fields, line endings, and whether to emit a header row. CSV imports: delimiter is auto-detected from the first line (comma, semicolon, tab, or pipe) — toggle whether row 1 holds column names. JSON output (XML, YAML, or CSV sources): indentation (including compact one-line) and optional recursive key sort. JSON → XML: toggle pretty-printing and indent width. YAML output: indent width, readable vs tighter layout, and deterministic string quoting (there is no source YAML file to “preserve”). XML comments are not represented in the intermediate JSON tree.

Examples

Package section

Input

# FastMinify library manifest [package] name = "fastminify" version = "2.1.0" edition = "2021" authors = ["FastMinify Team"] [dependencies] serde = { version = "1.0", features = ["derive"] } tokio = "1.35" [features] default = ["cli"] cli = []

Output

package: name: fastminify version: 2.1.0 edition: 2021 authors: - FastMinify Team dependencies: serde: version: 1.0 features: - derive tokio: 1.35 features: default: - cli cli: []

Dependencies

Input

[project] name = "fastminify-cli" version = "2.1.0" requires-python = ">=3.11" [project.dependencies] click = ">=8.1" rich = ">=13.0"

Output

project: name: fastminify-cli version: 2.1.0 requires-python: >=3.11 dependencies: click: >=8.1 rich: >=13.0

Related tools

See TOML → JSON, go back with YAML → TOML, or tidy YAML with the YAML beautifier.

TOML → YAML FAQ

Writer options

How are strings quoted?

Strings are written without quotes unless they contain a colon, a quote or a line break. Choose Double-quote all strings to quote every text value.

Does a round trip keep everything?

No. Comments are lost, and a TOML string such as "1.0" becomes 1.0 in the YAML. Compare the files for critical configuration.

Is the key order kept?

Yes. Keys keep the order of the TOML file.

Is my data sent to a server?

No. The conversion runs in your browser, and FastMinify never receives what you paste.

Convert TOML to JSON, YAML, XML, CSV, Properties and INI.