Skip to content
Kitora

JSON to YAML and YAML to JSON converter

Turn a JSON payload into a readable YAML configuration, or a YAML file (Kubernetes manifest, Docker Compose, GitHub Actions…) into JSON for an API or a script. Anchors and merge keys are resolved, files with several documents become a JSON array, and errors point to the exact line. Configuration files often hold secrets: here they are converted in your browser and never sent.

Your data never leaves your device

Conversion
Indentation

How to use JSON to YAML Converter

  1. 1

    Choose the direction: JSON → YAML or YAML → JSON.

  2. 2

    Paste your data or open a file; the result appears as you type.

  3. 3

    Choose the indentation, then copy or download the result.

Frequently asked questions

Can I paste configuration files with secrets?

Yes. The conversion is done by your browser, on your device: API keys, passwords and connection strings in your files are never sent or stored.

Are YAML anchors and merge keys supported?

Yes. Anchors (&name) and aliases (*name) are resolved, and merge keys (<<: *defaults), common in CI and Docker Compose files, are applied, so the JSON contains the final values.

What happens to a YAML file with several documents?

Documents separated by --- (common in Kubernetes manifests) become the items of a JSON array, in order.

Are comments kept?

No. JSON has no comments, so YAML comments are lost when converting to JSON, and cannot come back when converting JSON to YAML.

Will large numbers or strings like “yes” change?

No. Large integers keep every digit, and strings that YAML could misread (yes, no, 1.0, values with a colon…) are quoted when converting JSON to YAML, so the meaning stays the same.