What this tool does
Converts between JSON and YAML for the same data. YAML expresses structure through indentation.
How to use it
- Paste the data.
- Choose the direction.
- Run it and check the indentation and value types.
Worked example
Converting [{"name":"Ada","value":42}] to YAML yields a hyphen-led list item with name and value indented beneath.
Frequently asked questions
- When is YAML better than JSON?
- YAML reads better for config files people edit by hand. For machine-to-machine data, JSON has fewer parser differences and is safer.
- A long string was wrapped across lines.
- That is YAML line folding. Convert back and confirm it restores to a single line.
What this tool does not cover
Input is processed in your browser. YAML comments and anchors are not preserved.