JSON to YAML Converter
Convert JSON data into readable, indentation-based YAML. Free, instant, and no signup required.
About JSON to YAML conversion
JSON is the format most HTTP APIs speak by default — compact, ubiquitous in JavaScript environments, and readable by virtually every language's standard library, though it has no comment syntax and no native date type. YAML is the format of choice for configuration — Kubernetes manifests, Docker Compose, GitHub Actions, Ansible playbooks — it supports comments and multi-document files that JSON doesn’t.
This is close to a lossless round-trip — YAML is a superset of JSON’s data model, so every JSON value maps directly onto a YAML value. The visible difference is indentation-based block style replacing JSON’s braces, brackets, and commas.
How to convert JSON to YAML
- Paste your JSON into the left editor, or click sample above it to try example data.
- Click Convert. The YAML result appears on the right instantly.
- Click copy to copy the result, or download to save it as a file.
Example
Input (JSON):
{
"name": "Ada Lovelace",
"role": "Mathematician",
"active": true,
"skills": ["math", "programming"]
}
Output (YAML):
name: Ada Lovelace
role: Mathematician
active: true
skills:
- math
- programming