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
- Choose the direction.
- Paste JSON or YAML.
- 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.