Convert JSON to YAML (and YAML to JSON)

Switch configuration between JSON and YAML — handy for Kubernetes manifests, Docker Compose files and CI pipelines.

How to use the JSON to YAML tool

  1. 1Paste JSON or YAML into the input box.
  2. 2Click the conversion you need.
  3. 3Copy or download the result.

Good to know

  • Your data is processed in your browser and never uploaded.
  • Invalid input shows a clear error message.

Frequently asked questions

Is YAML a superset of JSON?

Essentially yes — valid JSON is also valid YAML — but YAML's indentation-based style is easier to read and edit by hand.

Are comments preserved?

No. JSON has no comments, so YAML comments are dropped when converting to JSON.

Is it safe for config files containing secrets?

Conversion runs entirely in your browser, so nothing is sent to a server.