JSON ↔ YAML Converter
Convert between JSON and YAML in both directions. Perfect for Kubernetes configs, CI pipelines and API payloads — nothing is uploaded.
Convert JSON to YAML or YAML to JSON in either direction, in your browser. Built on the battle-tested js-yaml parser, so complex Kubernetes configs, CI pipelines and nested API payloads round-trip reliably — nothing is uploaded.
How to use the JSON to YAML Converter
- Paste JSON or YAML into the input.
- Choose the direction: JSON → YAML or YAML → JSON.
- Copy the result — optionally in flow style for compact YAML.
Frequently asked questions
How do I convert JSON to YAML?
Paste your JSON and click JSON → YAML. Nested objects become indented YAML maps, arrays become dash lists.
How do I convert YAML to JSON?
Paste YAML and click YAML → JSON to get indented JSON — handy for reading Kubernetes configs as data.
What is flow style YAML?
Compact YAML using braces and brackets instead of indentation. Tick the flow-style box for one-line output.
Does it handle anchors and multi-line strings?
Yes — the js-yaml engine supports anchors, aliases, block scalars and folded strings per the YAML 1.2 spec.