JSON to YAML Converter

Free. No sign-up. Your input is processed in your browser.

Move configuration between JSON and YAML.

How to use it

  1. Paste JSON or YAML.
  2. Leave Direction on Detect, or choose it.
  3. Copy the result.

Notes

JSON to YAML keeps long numbers as written. In YAML to JSON, very long unquoted numbers may lose digits, so quote IDs. YAML comments are not carried into JSON. A YAML file with several documents becomes a list.

Questions

Are comments kept?

No.

Is anchor syntax supported?

Anchors are read, and their values are written out in the JSON.

Related tools

See all tools