Convert JSON to YAML and Back

Two-way conversion between JSON and YAML.

JSON → YAML
YAML → JSON
⇄ Swap
JSON
YAML
name: IConverter version: 2.0.0 tools: - password - case - ebook count: 21 active: true

The JSON ⇄ YAML converter translates data between two popular formats in either direction. JSON and YAML describe the same structures — objects, arrays, numbers, strings — but the syntax differs: JSON relies on curly and square brackets, while YAML uses indentation and dashes and reads more easily.

This kind of conversion comes up constantly in development and DevOps: APIs almost always return JSON, while config files (Docker Compose, Kubernetes, GitHub Actions, CI/CD pipelines) are written in YAML. Instead of rewriting the structure by hand, just paste one format and get the other.

Conversion happens right in your browser (via js-yaml), so nothing is sent anywhere. If the JSON or YAML you paste is invalid, the tool flags the syntax error. Need a spreadsheet instead? Try JSON to CSV.

Frequently asked questions

YAML is easier for humans to read — no extra brackets or quotes, and it supports comments. JSON is easier for machines to parse because it is stricter. YAML shows up more often in config files (Kubernetes, Docker Compose, GitHub Actions).
Yes — JSON is a subset of YAML 1.2, so any valid JSON is valid YAML. The reverse is not always true: YAML with anchors or tags can lose part of its structure.
The js-yaml parser could not read the input. The most common cause is indentation — YAML is strictly sensitive to it.