Convert JSON to YAML

Convert JSON to YAML by type or pasting JSON text in the input below.


Why convert JSON to YAML?

YAML is gaining more and more polularity, so converting from JSON to YAML my be tempting. However, why convert JSON to YAML?

YAML is a language that is much reacher than JSON. It is rather a supertset of JSON meaning that you can also write JSON-style maps and sequences. YAML offers much more than JSON, including

  • Anchors: Anchors in the YAML language allow the re-use of data in the same document via. Using YAML anchors you Duplicate or inherit properties . This keep data changes in on place and allows YAML to keep the data size small. Dulication in JSON is not that elangant and requires copy data from part of the document to other parts of the same document.
  • Multiple-line strings
  • Sets
  • Tags and more