Developer Tools

YAML to JSON

Convert YAML to JSON and catch YAML mistakes with clear errors.

Runs in your browser: nothing you enter is uploaded

Indent

JSON

Converted in your browser. Nothing is uploaded.Convert the other way: JSON to YAML

How it works

1

Paste your YAML

Paste YAML or open a .yaml or .yml file.

2

Check for errors

If something is wrong, you see the exact problem and line.

3

Copy the JSON

Copy the JSON or download a .json file.

YAML to JSON features

  • Converts YAML 1.2 to formatted JSON.
  • Clear error messages with line numbers.
  • Multi-document YAML becomes a JSON list.
  • 2 or 4 space indent.
  • Works as a quick YAML validator.
  • Private: nothing is uploaded.

YAML to JSON FAQ

How do I convert YAML to JSON?

Paste your YAML above. The JSON appears on the right as you type.

Why does my YAML show an error?

YAML is strict about spaces. Mixed tabs and spaces, or a list item at the wrong indent, are the most common causes.

What about files with --- separators?

Each document is converted and they are returned together as a JSON list.

Is my data safe?

Yes. The conversion runs in your browser.

Related Developer Tools

Recent from the blog