JSON to YAML

Convert JSON to YAML format

About JSON to YAML

JSON to YAML recursively converts JSON objects into indented YAML, entirely in your browser — nothing is uploaded to a server. Nested objects convert cleanly at any depth, but two gaps are worth knowing: JSON arrays are converted into numbered keys (0, 1, 2...) rather than proper YAML list items, and string values are inserted without quoting, so a value containing a colon-plus-space can produce invalid YAML.

How to use JSON to YAML

  1. 1Paste your JSON into the input box.
  2. 2Click 'Convert' to generate indented YAML.
  3. 3Review the output, especially for arrays or values containing a colon.
  4. 4Click 'Copy' to copy the result to your clipboard.

Frequently Asked Questions

Is JSON to YAML free to use?

Yes, it's completely free with no signup required.

Does it handle nested JSON objects?

Yes — nested objects convert into properly indented YAML at any depth.

Does it convert JSON arrays correctly?

No — array items are converted into numbered keys like 0: a and 1: b, which a YAML parser reads back as an object with keys "0" and "1", not as a list.

Does it handle values containing special YAML characters, like a colon?

Not reliably — values are inserted without quoting, so a string containing a colon followed by a space (e.g. "Note: important") can produce YAML that fails to parse.

Tips & Tricks

  • Rewrite array values as YAML list syntax by hand afterward, since numbered keys parse back as an object, not a list.
  • If a value contains a colon followed by a space, wrap it in quotes manually in the output to keep it valid YAML.
  • Nested objects are this tool's strength — nesting converts correctly at any depth.
  • Validate the output with a YAML parser or linter before using it in a real configuration file, especially for free-form text values.