JSON to YAML
12 toolsConvert JSON to YAML and back.
Runs in your browser — your files and text stay on your device
Convert JSON to YAML, or YAML back to JSON. YAML is common in configuration files such as Kubernetes and CI pipelines, while JSON is the usual format for APIs. Conversion happens in your browser, so config files that may contain secrets aren't uploaded.
Format & ValidateTree ViewJSON DiffJSON → CSVJSON ↔ YAMLJSON ↔ XML→ TypeScriptSchema GeneratorSchema ValidatorJSONPath TesterSort KeysJSON Lines
Output
How to use this tool
- 1Choose a direction.
- 2Paste your JSON or YAML into the input.
- 3Copy the converted result.
Frequently asked questions
Why convert between JSON and YAML?
Many config formats (Docker Compose, Kubernetes, GitHub Actions, CI pipelines) use YAML, so this helps when moving data between JSON APIs and YAML config files.
Does it support anchors and multi-document YAML?
It covers common cases (objects, arrays, strings, numbers, booleans, null); advanced YAML features like anchors/aliases are parsed but not specially preserved on the way back to JSON.
Is my data sent to a server?
No, conversion runs entirely in your browser.