Paste YAML to get JSON, or JSON to get YAML. If the YAML is broken, you get the line and column and the reason, which makes this a quick YAML validator too.
A file with --- between parts holds several YAML documents (common in Kubernetes). They come out as a JSON list, one entry per document.
Almost: valid JSON is valid YAML 1.2, so JSON → YAML always works, and YAML that only uses JSON’s types converts back cleanly.
They’re dropped: JSON has no comments, so YAML → JSON can’t keep them.
No. It’s converted in your browser with the open-source js-yaml library.
Open all 35 Dev Tools. Everything runs in your browser; nothing you paste is uploaded.