YAML ↔ JSON Converter

Supports common YAML: nested maps, lists, strings, numbers, booleans and null. Advanced features like anchors, tags, or multi-document files are not supported.

How to use this YAML/JSON converter

  1. Choose the direction: "YAML → JSON" or "JSON → YAML".
  2. Paste your source data into the left box.
  3. The converted result appears on the right instantly.

Why convert between YAML and JSON?

YAML is popular for human-edited config files (Docker Compose, Kubernetes, CI pipelines) because it's easy to read, while JSON is the universal format for APIs and data interchange. This converter helps move data between the two without manual rewriting.

Does this support YAML anchors and references?

No, this covers the common subset of YAML (nested maps, lists, scalars) used in most config files, not advanced features like anchors (&) and aliases (*) or custom tags.

What indentation does YAML require?

YAML uses spaces only (never tabs) for indentation, and consistent indentation within a block is required — mixing space counts at the same level will cause a parsing error.