JSON to YAML & YAML to JSON Converter

Convert JSON to YAML and YAML to JSON instantly. Multi-document YAML, key sorting and indentation options. Ideal for Kubernetes, OpenAPI and CI configs.

Runs 100% in your browser. Nothing you paste is uploaded.

JSON

YAML

About the JSON ↔ YAML

YAML is a superset of JSON that is easier for humans to edit, which is why Kubernetes, Docker Compose, OpenAPI and CI systems favour it. Convert a JSON payload into clean YAML for your manifests — or turn YAML into JSON for APIs and tools that only accept JSON.

Features

  • Two-way conversion
  • Multi-document YAML → JSON array
  • Accepts relaxed JSON (comments, trailing commas)
  • Key sorting
  • 2 or 4 space indentation

How to use it

  1. Choose the direction.
  2. Paste JSON or YAML.
  3. Copy or download the converted output.

Frequently asked questions

Are YAML comments kept?

No — JSON has no comments, so they cannot survive a round trip.

How are multiple YAML documents converted?

A file with several --- separated documents becomes a JSON array with one element per document.

Esc