JSON to YAML Converter
Convert JSON to YAML and YAML to JSON, with errors shown by line.
Loading the tool on your device…
YAML is the format of most config files (Docker Compose, Kubernetes, CI pipelines); JSON is what programs and APIs exchange. Convert one into the other and see exactly which line is wrong when the input isn't valid.
Updated 7 December 2026 · runs in your browser
How to use it
- Choose the direction.
- Paste JSON or YAML, or open a file.
- Copy or download the result.
Details
| YAML | Version 1.2, with anchors and multiple types |
|---|---|
| Errors | Line and column of the first problem |
| Comments | YAML comments are dropped, since JSON has none |
Questions
Do my files leave my computer?
No. This tool runs inside your browser tab. The page makes no network request with your data, and you can check that yourself in your browser's developer tools.
Why did my YAML comments disappear?
JSON has no comments, so they can't be carried over. Keep your original YAML file if you need them.
Related tools
- JSON Formatter
Tidy, check or minify JSON as you paste it.
- CSV to JSON
Convert CSV to JSON and back, quotes and all.