Convert JSON to YAML

Convert JSON (JavaScript object notation) to YAML (yet-another-markup-language).

Face with waiting expression Nothing to see yet!

Loading takeymakey...
TakeyMakey code
Want this tool to do something else? Edit the code below and make it do whatever you want.
({
  take: [
    { type: "json", label: "JSON" },
    {
      type: "import",
      value: "https://cdn.jsdelivr.net/npm/js-yaml@4.1.0/dist/js-yaml.min.js",
    },
  ],
  make: (json) => {
    const value = jsyaml.dump(json)

    return [{ type: "code", label: "YAML", value }]
  },
})