JSON ↔ YAML Converter

Paste JSON in the left pane to convert it to YAML, or YAML to get JSON in the right pane.

Input code
Result

Use cases

  • Turning a JSON config into YAML for docker-compose or CI
  • Getting a more readable YAML view of a JSON config
  • Quickly checking whether a YAML file is well-structured

FAQ

What happens if the YAML has an error?

You get a clear parse error describing the problem instead of a silent failure.

Are YAML anchors and references supported?

Yes, a standard YAML parser is used, which supports anchors, references, and most common constructs from the YAML spec.

Related tools