YAML to JSON Converter
Paste YAML below and get the equivalent JSON instantly. Donfig handles multi-line strings, anchors and aliases, explicit type tags, and the full YAML 1.2 type system (numbers, booleans, null, strings, sequences, mappings). Comments are stripped (JSON has no comment syntax). The result is RFC 8259-compliant JSON ready to feed into APIs, JSON Schema validators, or anywhere JSON is expected. Common use cases: converting Kubernetes manifests to JSON for inspection, normalizing config files across teams, or feeding YAML config into JSON-only tooling.
JavaScript is required to use the live tool. Please enable JavaScript and reload.
Frequently asked
Does it handle YAML anchors and aliases?
Yes, anchors are inlined into the JSON output (since JSON has no native reference mechanism).
What happens to YAML comments?
They're stripped — JSON has no comment syntax. Save the YAML separately if you need to preserve them.
Can I convert multi-document YAML?
Donfig converts the first document. For multi-doc YAML, split it on `---` first.