YAML ↔ JSON Converter
Convert between YAML and JSON instantly in the browser.
input
output
converted output will appear here
FAQ
What is the difference between YAML and JSON?
Both formats represent structured data. JSON uses braces, brackets, and explicit quotes. YAML uses indentation and is more human-readable but whitespace-sensitive. YAML is a superset of JSON — all valid JSON is valid YAML 1.2.
Are there YAML features that cannot be represented in JSON?
Yes. YAML supports comments, anchors and aliases (references), multi-document files, and non-string keys. These features are lost when converting to JSON.