JSON to YAML converter
Convert valid JSON to readable YAML 1.2 with appropriate scalar quoting.
Processed in this browser · nothing is uploaded
Result
Ready when you areEnter your input and run the tool to see your result here.
Good to know
Objects, arrays and scalars are supported. Strings resembling values such as true are quoted to preserve type. JavaScript numeric precision applies to JSON numbers.
Input: {"name":"OpenTool","active":true}Understand and use your results
Convert JSON configuration into a readable YAML representation. The source must parse as JSON, so JavaScript code and commented configuration are not accepted directly.
How to use it
- Enter a valid JSON object, array or scalar.
- Review indentation and string types in the YAML before downloading.
Worked example
{"active":true,"label":"true"}active: true label: "true"
The boolean true differs from the string "true". YAML quoting preserves that distinction. The conversion does not invent comments that were absent from the JSON.
Will converting back produce an identical document?
The conversion transfers supported data values, not original whitespace or spelling. Duplicate keys and numbers beyond JavaScript precision can change during JSON parsing, so keep the original source.