YAML to JSON
Convert YAML to JSON in your browser. Handles anchors, aliases, and YAML 1.2 features.
Paste Kubernetes manifests, Docker Compose files, or any YAML and get JSON out. Anchors (&) and aliases (*) resolve correctly, so DRY YAML expands the way you'd expect.
For multi-document YAML streams (separated by ---), the output is a JSON array with one element per document. Everything runs locally in your browser, and large inputs are processed in the background so the page stays responsive — even on multi-MB Kubernetes manifest dumps.
Example
Input
name: alice
roles:
- admin
- dev Output
{
"name": "alice",
"roles": ["admin", "dev"]
} Frequently asked questions
Does it handle multi-document YAML?
Yes — documents separated by --- are emitted as a JSON array of documents.
Are YAML anchors supported?
Yes. Aliases (*name) are resolved to their referenced value in the output JSON.