YAML to JSON Converter

Convert YAML (including multi-document files) to JSON and validate the syntax.

How do you convert YAML to JSON?

A YAML to JSON converter parses YAML — indentation-based configuration data — and writes the same data as JSON, which is easier to use in JavaScript, APIs and tools that only accept JSON.

How to use the YAML to JSON Converter

    Frequently asked questions

    Why does my YAML fail to parse?

    The most common causes are tabs used for indentation, inconsistent indentation and a missing space after a colon.

    What happens to comments?

    Comments are not part of the data, so they do not appear in the JSON.

    Can I convert several YAML documents?

    Yes. Documents separated by --- are returned as a JSON array.