Developer tool

JSON to YAML

Convert JSON to clean YAML instantly.

Free Runs in your browser

About this tool

JSON to YAML converts JSON objects and arrays into readable YAML. It is handy when writing config files for tools like Kubernetes or GitHub Actions that expect YAML.

How to use JSON to YAML

  1. Paste your JSON.
  2. Choose the indent size.
  3. Copy the YAML or download it as a file.

Questions people ask

Is YAML a superset of JSON?

YAML 1.2 is almost a superset, so most JSON is already valid YAML. Converting gives you the cleaner block style without braces and quotes.

Why are some strings quoted in the YAML?

Values like "yes", "no", "on", "1.0" or strings with a colon are quoted so YAML does not read them as booleans, numbers or keys.

Are key orders kept?

Yes. Keys appear in the same order as in your JSON.

More developer tools

See all 24 →
Esc