Input
Result
Choose an operation to start
JSON ↔ YAML Converter
Enter JSON or YAML on the left, pick a direction, and get the other notation. Useful for turning API JSON into readable YAML config, or turning YAML config back into parseable JSON.
Conversion uses the js-yaml library loaded in your browser; no text is uploaded.
Features
- Two-way — Swap between JSON → YAML and YAML → JSON with one click.
- Faithful — Objects, arrays, nesting, booleans and nulls are all preserved.
- Instant — Converts as you type; parse errors point at the problem.
How to use
- Enter JSON or YAML on the left.
- Pick the direction on the right.
- The result appears instantly; click Copy to take it.
FAQ
Are YAML and JSON losslessly convertible?
Mostly. YAML is a superset of JSON, so anything JSON expresses is valid YAML. But YAML anchors, multi-document streams and complex type tags have no JSON equivalent and may be lost when converted.
Does conversion need a network?
The js-yaml parser loads from a public CDN, so the first page open needs network; once loaded, plain-text conversion runs locally.