JSON ⇄ YAML Converter
Convert JSON to YAML and back — config-file ready, with a swap-to-continue workflow and precise error messages.
This tool runs entirely in your browser. Your data never leaves your device — it is not uploaded to any server.
How to use
- 1Paste JSON or YAML depending on direction.
- 2Click convert — output appears below.
- 3Use the swap button to continue converting in the other direction.
JSON ⇄ YAML Converter
Two-way conversion between JSON and YAML: paste JSON, get clean 2-space YAML for your config files; paste YAML, get JSON. The swap button flips the direction so you can round-trip in one panel.
Powered by js-yaml with precise error reporting — a bad indent or duplicate key shows you exactly what went wrong instead of a cryptic failure.
Frequently asked questions
Which YAML features are supported?
The standard js-yaml core schema: nested maps, sequences, scalars, quoted strings. YAML anchors and custom tags are out of scope for reliable round-trips.
Why did my conversion fail?
Most often a tab character in YAML indentation (tabs are forbidden there) or duplicate keys in JSON. The error message points at the problem.
Related tools
JSON Formatter
Format and beautify messy JSON online — 2 spaces, 4 spaces or tabs, with instant validation and precise error locations. 100% in your browser.
All tools →
JSON Minifier
Minify JSON online: strip all whitespace to shrink payloads for faster API responses and smaller storage — see the exact bytes saved, privately in your browser.
All tools →
JSON to TypeScript
Generate TypeScript interfaces from any JSON — nested objects, arrays and unions, ready to paste into your project.
All tools →
Embed this tool
Put this tool on your own site with one line — it runs entirely in the visitor's browser.
<iframe src="https://zoyku.com/en/tools/json-yaml-converter?embed=1" width="100%" height="640" style="border:0;border-radius:16px" title="Zoyku — json-yaml-converter" loading="lazy"></iframe>