Home › Converters › JSON to YAML Converter

JSON to YAML Converter

Convert JSON into YAML with two-space indentation. Strings that YAML would misread — like "yes", "123" or anything containing a colon — are quoted automatically.

JSON to YAML Converter

How to use the JSON to YAML Converter

  1. Paste your JSON into the input box.
  2. Press Convert.
  3. Copy or download the YAML.

About this tool

YAML is stricter than it looks: an unquoted 123 is a number, "true" is a boolean, and a colon inside a plain string ends the value early. This converter quotes any string that would change meaning on the way back, nests objects and arrays with standard two-space indentation, and keeps empty objects and arrays in their compact {} and [] forms.