Toolyard

JSON to YAML

How to convert JSON to YAML

  1. Paste your JSON into the box.
  2. The YAML appears below as you type. If the JSON has a mistake, the error is shown instead.
  3. Choose 2 or 4 spaces of indentation, then copy the result.

Frequently asked questions

Are strings quoted?

Only where YAML needs it, for example strings that would otherwise be read as a number, a date or true and false.

Is my data uploaded?

No. The conversion happens in your browser, and nothing is sent anywhere.

More conversions

More developer tools