Convert YAML to JSON

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

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: "code", label: "YAML" },
    {
      type: "import",
      value: "https://cdn.jsdelivr.net/npm/js-yaml@4.1.0/dist/js-yaml.min.js",
    },
  ],
  make: (yaml) => {
    const value = jsyaml.load(yaml)

    return [{ type: "json", label: "JSON", value }]
  },
})