JSON ↔ YAML Converter
Convert JSON to YAML and YAML to JSON, with clear error messages.
About this tool
YAML is popular for configuration files such as Docker Compose, Kubernetes and GitHub Actions, while APIs speak JSON. Paste either format to convert it to the other, choose a 2 or 4 space indent, and copy the result. If the input is invalid, you get the parser's message with the line to check.
How to use it
- Paste JSON or YAML into the input box.
- Click JSON to YAML or YAML to JSON.
- Copy the result, or use it as the next input.
Frequently asked questions
Why does YAML to JSON fail?
YAML is strict about indentation. Use spaces, not tabs, and keep sibling items aligned.
Are comments kept?
No. JSON has no comments, so YAML comments are dropped when converting.
Is my data uploaded?
No. Conversion runs in your browser.