Convert between YAML and JSON bidirectionally. All processing in your browser.
Convert between YAML and JSON bidirectionally — right in your browser. Paste a YAML document to get clean, two-space-indented JSON, or flip the direction to turn JSON into idiomatic YAML. Perfect for config file migrations, API payload inspection, and sanity-checking Kubernetes or CI pipeline manifests. Your data never leaves your device.
Pick a direction
Toggle between YAML → JSON and JSON → YAML with the direction switch above the editors.
Paste your document
Drop your YAML or JSON into the left editor. The converted output appears instantly on the right as you type.
Swap, copy, or download
Click Swap to round-trip the result back into the source side, or use Copy / Download to grab the converted document.
No. Both parsing and serialization happen entirely in your browser using js-yaml and the built-in JSON APIs. Nothing is uploaded.
The converter uses js-yaml's default schema, which follows the YAML 1.2 core schema. Anchors, aliases, and common tagged types (strings, numbers, booleans, null, sequences, mappings) are all handled.
YAML has many equivalent representations for the same data. Because we parse to an in-memory object and re-serialize, stylistic details like flow vs. block style, quoting, and comment placement are normalized. Comments, in particular, are not preserved by design.
The current tool converts a single document at a time. If you have a multi-document YAML stream separated by ---, split it into individual documents before converting.
Yes. Both JSON.stringify and js-yaml.dump preserve the insertion order of object keys as they were parsed from the source.