JSON to YAML Converter
Converts JSON into equivalent YAML with the quoting rules YAML actually requires.
Loading the tool…
How to use this tool
- Paste the JSON document.
- Choose the indentation width.
- Select Convert to YAML and check any strings that were quoted for you — those are the values YAML would otherwise reinterpret.
What json to yaml does
YAML is a superset of JSON, so every JSON document has a YAML equivalent. The conversion is mostly mechanical — objects become mappings, arrays become sequences — and the difficulty is entirely in the quoting. YAML will happily read yes, no, on, off, y and n as booleans, and a version number like 1.10 as a float, unless the value is quoted.
This converter quotes any string that YAML would otherwise reinterpret, which is why the output sometimes has quotes you would not have written by hand. That is deliberate: a Kubernetes manifest where the string "no" silently became false is a genuinely hard bug to find, and it is cheaper to carry a few unnecessary quotes.