YAML to JSON Converter
Paste YAML, get clean JSON. Handles YAML 1.2 features: anchors and aliases, multi-document streams (split by ---), flow vs block style, complex scalars (timestamps, booleans, nulls). Round-trip safe with our JSON converters.
How to use the YAML to JSON Converter
Paste YAML. Pick output indent. For YAML files with multiple ----separated documents (common in Kubernetes manifests), enable multi-document — the output becomes a JSON array of documents.
Converting YAML to JSON
YAML is what people write — Kubernetes manifests, CI pipelines, application config — because it is readable and comment-friendly. JSON is what programs parse. Converting between them sounds trivial until YAML’s richer features show up: anchors and aliases that reuse blocks, multiple documents in one file separated by ---, and scalars like timestamps and booleans that need careful typing.
This converts YAML to JSON with full YAML 1.2 support — resolving anchors and aliases, handling multi-document streams as a JSON array, and typing complex scalars correctly — with selectable indent or minified output. For round-tripping across formats the JSON / YAML / TOML roundtrip editor shows all three at once, and the YAML to TOML converter targets TOML specifically.
Common use cases
- Parse a manifest — turn a Kubernetes YAML file into JSON.
- Resolve anchors — expand YAML anchors and aliases into plain JSON.
- Multi-document files — convert
----separated docs into a JSON array. - Feed a tool — convert config a JSON-only program can read.
- Minify — emit compact JSON when you do not need indentation.