YAML to JSON Converter

Paste YAML and convert it to indented JSON instantly, entirely in your browser.

Indent:
Copied
YAML Input0 B
JSON Output0 B

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.

Related tools

← Back to all tools