Developer Tools

JSON to YAML

Convert JSON to YAML for config files, Kubernetes and Docker Compose.

Runs in your browser: nothing you enter is uploaded

Indent

YAML

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

How it works

1

Paste your JSON

Paste JSON or open a .json file.

2

Choose the indent

Pick 2 or 4 spaces.

3

Copy the YAML

Copy the result or download a .yaml file.

JSON to YAML features

  • Clean, readable YAML output.
  • 2 or 4 space indent.
  • Handles nested objects, lists and special characters.
  • Clear errors when the JSON has a mistake.
  • One click to convert back from YAML to JSON.
  • Private: nothing is uploaded.

JSON to YAML FAQ

Why convert JSON to YAML?

YAML is easier to read and is used by Kubernetes, Docker Compose, GitHub Actions and many other tools for configuration.

Is all JSON valid YAML?

Yes, YAML 1.2 is a superset of JSON, but the converted YAML is much easier to read and edit.

Are comments kept?

JSON has no comments, so there are none to keep.

Is my data uploaded?

No. Everything happens in your browser.

Related Developer Tools

Recent from the blog