Developer tool

YAML to JSON

Convert YAML to formatted or minified JSON.

Free Runs in your browser

About this tool

YAML to JSON parses YAML and outputs the same data as JSON. It also tells you when the YAML is invalid, which makes it a quick way to check indentation mistakes.

How to use YAML to JSON

  1. Paste your YAML.
  2. Choose the JSON indent or minified.
  3. Copy the JSON or download it.

Questions people ask

Why does my YAML fail to parse?

The most common causes are tabs used for indentation, inconsistent indent levels, and a colon followed by no space.

What happens to YAML comments?

JSON has no comments, so they are dropped.

Are anchors and aliases supported?

Yes. Anchors (&name) and aliases (*name) are expanded into full copies in the JSON.

More developer tools

See all 24 →
Esc