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

For CSV output, choose the delimiter, how fields are quoted, the line endings and whether to write a header row. Auto uses a comma in English and a semicolon in French, German and Spanish, as Excel expects. For CSV input, the delimiter is detected on the first line (comma, semicolon, tab or pipe). You choose whether that line holds the column names. JSON output can use 2 or 4 spaces or a single line, with an optional recursive key sort. XML output can be pretty-printed with a chosen indent width. YAML output takes an indent width and a quoting mode for strings. XML comments are dropped, because the conversion goes through a 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.