JSON to YAML Converter
Convert a JSON document into clean, readable YAML.
Loading tool...
JSON to YAML conversion
Every JSON document is also a valid YAML document, but this converter re-emits it in block style YAML: indentation instead of braces, one array item per line prefixed by -, and strings quoted only when necessary.
Conversion table
| JSON | YAML |
|---|---|
{"a": 1, "b": 2} |
a: 1 / b: 2 |
[1, 2, 3] |
- 1 / - 2 / - 3 |
"hello" |
hello (unquoted) |
"true", "123" |
'true', '123' (quoted to preserve type) |
42, 3.14 |
42, 3.14 |
null |
null |
{}, [] |
{}, [] |
Options: "Quote all strings", "Lenient JSON parsing", "Sort keys".