JSON to YAML

Clean conversion to YAML 1.2 syntax. Strings are quoted only when they have to be.

Runs in your browser. Nothing is uploaded.
JSON in
YAML out

JSONYard's online JSON to YAML converter outputs clean YAML 1.2 with smart string quoting — strings are only quoted when YAML requires it. It preserves key order and runs entirely in your browser.

Trying to decide between formats? Read JSON vs YAML vs XML: when to use which.

Why YAML?

YAML is JSON's quieter cousin — easier on the eyes (especially for configuration), supports comments, and is the default for tools like Kubernetes, Docker Compose, GitHub Actions, and Ansible.

Convert a JSON config to YAML for Kubernetes, Docker, or GitHub Actions

If you've prototyped a config in JSON and need to land it in a system that prefers YAML — Kubernetes manifests, docker-compose.yml, GitHub Actions workflows, Ansible playbooks — this converter gives you idiomatic YAML 1.2 in one click. Strings are only quoted when they have to be, which keeps the result close to what a human would write by hand. For the broader format tradeoffs, see JSON vs YAML vs XML.

FAQ

Will my YAML pass yamllint?
For typical data it should. We use a clean YAML 1.2 subset. Edge cases (very deeply nested arrays of mixed types, unusual Unicode) may require hand-tuning.
Does this preserve key order?
Yes — JSONYard walks keys in their original order. YAML doesn't formally guarantee order, but every common parser preserves it.
How do I convert JSON to YAML online without uploading?
This converter parses and emits everything locally in your browser. No JSON or YAML is sent to a server.

Related conversion tools