Convert JSON to YAML instantly in your browser. Supports nested objects, arrays, strings, numbers and booleans. Swap back to YAML→JSON in one click. 100% client-side.
The JSON to YAML converter transforms any valid JSON document into clean, readable YAML using js-yaml — the same library used in Kubernetes tooling and major CI/CD platforms. Conversion is instant, runs in a Web Worker, and both editors remain live so you can edit either side and see the counterpart update in real time. Click the swap button to reverse the direction to YAML→JSON without losing your data.
QDoes it preserve key order?
js-yaml serialises keys in the order they appear in the parsed JavaScript object. JSON object key order follows the ES2015 specification — integer-like keys first, then insertion order — so output key order matches the input.
QHow are JSON arrays converted?
JSON arrays become YAML sequences (block-style lists with `- ` prefix for each item). Nested arrays produce correctly indented nested sequences.
QIs my data sent to a server?
No. All conversion runs in a Web Worker inside your browser. Nothing is transmitted to any server.