Skip to content
FR – lire en français

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

  1. Choose the direction.
  2. Paste JSON or YAML, or open a file.
  3. Copy or download the result.

Details

JSON to YAML Converter details
YAMLVersion 1.2, with anchors and multiple types
ErrorsLine and column of the first problem
CommentsYAML 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.