Convert between YAML and JSON
Paste either format and convert in the direction you need. Parse errors are reported with a line number, which is usually all you need to find a broken manifest.
YAML
—JSON
—What survives the round trip, and what doesn’t
JSON is a subset of YAML, so YAML → JSON is lossy by nature. Comments, anchors and aliases, multi-document files and explicit tags have no JSON equivalent. Anchors are resolved into their expanded values rather than preserved.
One YAML behaviour worth knowing: unquoted yes,no, on and off are booleans in YAML 1.1, and a leading zero like 0755 may be read as octal. If a value must stay a string, quote it — this is a frequent cause of manifests that parse but behave unexpectedly.
Check something else
Found something you’d rather not fix yourself?
Configuring DNS, TLS and email authentication properly — without breaking live traffic — is part of our cybersecurity and managed services work.

