Skip to content

Tools/YAML / TOML

YAML / TOML

Convert YAML, JSON, and TOML in the browser.

Also: YAML to JSON · JSON to YAML · TOML to JSON · JSON to TOML

Loading tool…

How to use YAML / TOML

  1. 1. Paste or drop a file. YAML, JSON, or TOML is read locally.
  2. 2. Pick directions. Choose source and target formats.
  3. 3. Fix errors. Parse errors stay next to the input pane.
  4. 4. Copy the result. Nothing is uploaded.

About this tool

YAML, JSON, and TOML are the three config languages you meet in every repo. This tool parses and emits them in the browser so a Helm values file, a package manifest, and a Cargo config can share a payload without a server.

What changes and what does not

Numbers, strings, arrays, and maps round-trip. YAML anchors, custom tags, and TOML datetime types may not survive a trip through JSON. Review the output before you commit it.

When to pick each format

JSON is the interchange default. YAML is comments and multiline strings. TOML is explicit tables for tools like Cargo and pyproject.

Code examples

Node

import { parse } from "yaml";
parse("name: Ada");

Frequently asked questions

Related tools

All tools