YAML to JSON Converter
This YAML to JSON converter parses any YAML document into equivalent JSON, following the YAML 1.2 specification used by Kubernetes, GitHub Actions, and most modern tooling. It resolves anchors and aliases, and converts multi-document YAML files (separated by "---") into a JSON array of documents. Parsing happens entirely in your browser, with no upload.
Frequently asked questions
How do I convert YAML to JSON?
Paste your YAML into the editor and the equivalent JSON is generated automatically, ready to copy or download.
Which YAML version does this tool support?
It supports YAML 1.2, the current specification used by Kubernetes, GitHub Actions, Docker Compose, and most modern YAML-based tools.
How are YAML anchors and aliases handled?
Anchors ("&name") and aliases ("*name") are resolved during parsing, so the referenced content is expanded into the JSON output rather than left as a YAML-specific reference.
What happens with multi-document YAML files?
Documents separated by "---" are each parsed individually and combined into a single JSON array, with one array entry per document.
Is my YAML file sent to a server when I convert it?
No. Parsing runs entirely in your browser, so the YAML content never leaves your device.