To convert JSON to YAML, paste your JSON into the left panel — the YAML output updates instantly on the right. To convert YAML to JSON, click the swap arrow to reverse the direction. Everything runs client-side in your browser, so it's safe for config with secrets.
Input · JSON
Output · YAML
Runs 100% client-side. No data is sent to a server. Best for standard config — YAML anchors, aliases, and custom tags are not supported for round-trip conversion.
// faq
Frequently asked questions
- Is my data sent to a server?
- No. This tool runs entirely in your browser — the conversion happens client-side in JavaScript. Your JSON or YAML never leaves your device, which makes it safe to paste config with secrets or PII.
- What YAML features does the converter support?
- Standard YAML 1.2: scalars (strings, numbers, booleans, null), sequences (lists), mappings (objects), nested structures, and block/flow styles. Anchors, aliases, and custom tags are not supported for round-trip conversion.
- Why convert between JSON and YAML?
- YAML is human-friendlier for config files (Kubernetes manifests, GitHub Actions, Docker Compose, Ansible). JSON is the lingua franca of APIs and JavaScript. Teams often draft config in YAML and ship it as JSON, or vice versa.
- Does the tool preserve key order and comments?
- Key order is preserved (V8/modern JS engines maintain insertion order). Comments are not — JSON has no comment syntax, so YAML → JSON drops them. This is a fundamental limitation of the format, not the tool.
// related

