Learn

JSON to YAML Guide

About this tool

Convert JSON to YAML, preserving the structure rather than reformatting the text. It is the usual way to move a config between a tool that speaks one and a file that is written in the other.

Questions

Are comments kept?
JSON has no comments, so converting JSON to YAML cannot invent any. Going the other way, YAML comments are dropped because JSON has nowhere to put them.
Why does my document fail to convert?
This tool parses JSON input, not YAML. A missing quote or comma in JSON can cause an error. YAML-only features such as anchors are not valid input here; start with valid JSON instead.