YAML to JSON Converter
Paste YAML and convert it to indented JSON instantly, entirely in your browser.
YAML Input
JSON Output
YAML is a superset of JSON's data model, so this conversion is lossless for typical configuration files — mappings become objects, sequences become arrays, and scalars keep their type.
Frequently asked questions
How do I convert YAML to JSON online?
Paste your YAML into the input box and click Convert. It's parsed with the js-yaml library and output as indented JSON instantly.
Does this handle YAML anchors and aliases?
Yes — anchors (&name) and aliases (*name) are resolved to their expanded values in the JSON output, since JSON has no equivalent shorthand.