JSON to YAML

Get tidy, valid YAML from JSON, formatted the way your config files expect.

How to convert JSON to YAML

  1. Paste JSON or open a file.
  2. Choose indentation, style, quoting and sorting.
  3. Copy or download the .yaml file.

About JSON to YAML

Convert JSON to clean YAML for Kubernetes, Docker Compose, GitHub Actions and other configs.

Everything works in your browser, so it is instant and private, and your settings are remembered on this device.

Good for

  • Writing Kubernetes manifests and Helm values
  • Docker Compose and CI pipeline files
  • Converting API data to readable configs

Tip: Use “Never fold lines” for configs with long URLs or commands.

Frequently asked questions

Is the YAML valid for Kubernetes and Docker Compose?

Yes — the output is standard YAML 1.2 and strings that could be misread (like yes, no, on or 08) are quoted automatically.

Can I get each item as a separate document?

Yes — turn on “Each array item as its own document” to get --- separated documents, the format kubectl apply expects for several resources.

Can I force quotes around strings?

Yes — choose always single or always double quotes, or leave it on “only when needed” for the cleanest file.

Does it accept broken JSON?

Common problems like trailing commas, comments and single quotes are repaired first, and you are told what was fixed.

Is my data uploaded?

No. Everything is processed by JavaScript in your browser — nothing you paste or open is sent to a server, so it is safe for API responses, tokens, configs and customer data. It also works offline once the page has loaded.

Related tools

← Back to all tools