YAML to JSON Converter

How to convert YAML to JSON

Choose YAML to JSON or JSON to YAML and paste your data. The result updates as you type. Swap moves the result back into the input so you can convert the other way.

FAQ

How do I convert YAML to JSON?

Paste your YAML into the input with YAML to JSON selected. The JSON appears as you type, and any syntax error is shown with its line and column.

Can I validate YAML with this tool?

Yes. If your YAML parses, it converts to JSON. If not, you see the error and where it is, such as bad indentation or an unclosed bracket.

Are YAML comments kept?

No. JSON has no comments, so they are dropped when converting YAML to JSON. Anchors and aliases are expanded into full copies of the values.