Skip to content

YAML ⇄ JSON Converter

Developer utilities · Done in 3 steps

Stays on your deviceFree · No sign-up
  1. 1Pick a direction
  2. 2
  3. 3
Loading tool…

About

Convert YAML to JSON or JSON to YAML instantly, with multi-document support, sorted keys and errors shown by line and column.

How to use it

  1. 1Pick a direction: YAML → JSON or JSON → YAML.
  2. 2Paste your data or open a .yaml/.json file.
  3. 3Adjust the indent and key sorting.
  4. 4Copy or download the result, or swap direction to convert back.
You give
YAML (including multi-document files separated by ---) or JSON
You get
The equivalent JSON or YAML
Good to know
Comments and anchors in YAML are not carried over to JSON (JSON has neither). YAML is parsed with the core schema, so values like 2026-10-28 stay strings rather than becoming dates. Multiple YAML documents become a JSON array.
Privacy
Processed on your device. Nothing is uploaded, stored or logged.
Last tested
2026-10-28

FAQ

Why did my YAML comments disappear?

JSON has no comment syntax, so comments can't survive the conversion. Converting back to YAML won't restore them.

Why is “yes” or “on” still a string?

This converter uses YAML 1.2's core schema, where only true/false are booleans. That avoids the classic “Norway problem” where the country code NO turns into false.

Go further with AI