YAML to JSON

Parse YAML files and convert them to JSON format. Handles multi-document YAML and anchors/aliases.

YAML Input
JSON Output

Drop a .yaml file to load

Related Tools

Frequently Asked Questions

Can I convert YAML with comments to JSON?

Yes, but comments will be stripped in the output. JSON does not support comments, so any YAML comments are ignored during conversion.

What about YAML anchors and aliases?

Anchors (&) and aliases (*) are resolved during conversion. The resulting JSON will contain the expanded values.

Can I convert multi-document YAML?

Multi-document YAML (separated by ---) will be converted to the first document. Use single-document YAML for predictable results.

About YAML to JSON

Parse YAML files and convert them to JSON format. Handles multi-document YAML and anchors/aliases.

yamljsonconverttransform