JSON ↔ YAML converter
Convert JSON to clean, readable YAML for Kubernetes, Docker Compose, and CI configs — or turn a YAML file back into JSON. Paste, import, or drag & drop; conversion runs entirely in your browser.
Why use this JSON ↔ YAML converter
Built for the config files developers touch daily — Kubernetes, Docker Compose, GitHub Actions, and app settings.
Frequently asked questions
Why would I convert JSON to YAML?
YAML is the default format for Kubernetes manifests, Docker Compose, GitHub Actions, and many other CI/CD and infrastructure tools. Converting a JSON API response or config object to YAML lets you drop it straight into those files.
Does the converter support YAML anchors, aliases, or multi-document files?
YAML to JSON parses standard anchors (&) and aliases (*) since the underlying js-yaml library resolves them before conversion. Multi-document files (separated by ---) are not supported — paste one document at a time.
How are indentation and key order handled when converting JSON to YAML?
Output uses 2-space indentation and preserves the key order from your JSON object. Arrays are rendered as YAML block sequences (with a leading dash) rather than inline flow sequences.
Will number and boolean types be preserved?
Yes. Numbers, booleans, and null are written as native YAML scalars (not quoted strings), and converting back to JSON restores the original types.