About this tool
YAML is a human-friendly config format used by tools like Docker Compose, Kubernetes, and GitHub Actions, while JSON is the universal format for APIs and JavaScript. This tool converts between the two so you don't have to hand-translate indentation into braces.
How it works
- Choose the direction: YAML → JSON or JSON → YAML.
- Paste your input — parsing errors are shown immediately.
- The converted result appears on the right, ready to copy.
Frequently asked questions
Does it support YAML anchors and references?
Yes, the underlying parser (js-yaml) supports standard YAML 1.2 features including anchors, aliases, and multi-document handling for typical config files.
Why did my JSON to YAML conversion reorder my keys?
It shouldn't — object key order is preserved from the source JSON. If something looks reordered, check whether your JSON parser or editor already changed the order before pasting.