Search tools

JSON to YAML Converter

Turn JSON into human-friendly YAML for config files — with consistent indentation and no line wrapping surprises.

JSON to YAML Converter tool

Options

Processing runs in your browser.

Many tools — Kubernetes, Docker Compose, GitHub Actions, OpenAPI specs — use YAML for configuration, but the data you start with often comes from an API or a JSON example. This converter gives you clean YAML you can drop straight into a config file.

Common uses

  • Kubernetes manifests from JSON output of kubectl or API examples.
  • CI pipelines: convert JSON snippets into GitHub Actions or GitLab CI syntax.
  • OpenAPI: turn a JSON spec into the YAML format many teams prefer to edit.
  • App config: make settings files easier for people to read and review.

Converting the other way? Use YAML to JSON.

How to use the JSON to YAML Converter

  1. Paste JSON, or open a .json file.
  2. Choose 2 or 4 spaces of indentation.
  3. Copy the YAML or download it as a .yaml file.

Features

  • Valid YAML 1.2 output from any JSON value.
  • Long strings are never wrapped across lines, so values stay copy-paste safe.
  • Strings that YAML could misread — like “yes”, “on” or “1.0” — are quoted automatically.
  • JSON errors are reported with line and column before conversion.

Frequently asked questions

Is YAML just JSON without brackets?

Almost. YAML 1.2 is a superset of JSON, so any JSON is valid YAML. YAML adds indentation-based structure, comments and less punctuation, which makes it popular for configuration files.

Why are some strings in quotes in the output?

Some unquoted values change type in YAML: yes and no can become booleans in older parsers, and 1.10 becomes a number. Quoting them keeps the same value you had in JSON.

Can I add comments?

JSON has no comments, so the output has none. Once you have YAML, you can add # comments by hand — they’re one of YAML’s main advantages for config.

Written by