YAML to JSON Converter

Convert YAML format to JSON with real-time validation.

Paste YAML and get the equivalent JSON, with full YAML 1.2 support: anchors and aliases, multi-document streams, the standard scalar types. Parse errors show the exact line and column so you can fix indentation issues quickly.

Common use cases: piping a Kubernetes manifest into a tool that expects JSON, turning a GitHub Actions workflow into testable data, converting Helm values for programmatic processing, and round-tripping config to inspect what your YAML actually means after type coercion.

YAML Input

Reference

YAML Syntax
Key: value - Simple pair
- item - Array items
true/false/null - Special values
# comment - Comments

Frequently asked questions

Which YAML version is supported?
YAML 1.2 — the version every modern tool (Kubernetes, Helm, GitHub Actions, Ansible) targets. Anchors, aliases, multi-document streams, and the standard scalar tags all parse correctly.
Why is my YAML giving a parse error on indentation?
YAML cares about exact column alignment. Mixing tabs and spaces is the usual culprit (YAML forbids tabs for indentation). If the line numbers in the error look off, also check that every nested block is indented past its parent's key, not its parent's value.
Why did my number become a string (or vice versa)?
YAML's implicit typing turns yes, no, on, off, version-looking strings (1.10), and bare digits into typed values. To force a string, quote it. To force a number, leave it unquoted.
Can it parse multi-document YAML?
Yes — ----separated documents become an array in the JSON output, one element per document. Useful for Kubernetes manifests that bundle multiple resources in one file.