JSON Forge

JSON ↔ YAML Converter

Convert freely between JSON and YAML, live as you type. Everything runs in your browser.

JSON input

YAML output

No output yet

Paste JSON on the left — YAML appears here instantly.

About the JSON to YAML

This converter transforms JSON into YAML and YAML back into JSON. YAML is a human-friendly superset of JSON used widely for configuration — Kubernetes manifests, GitHub Actions, Docker Compose, and CI pipelines all use it.

Because YAML is a superset of JSON, any valid JSON converts cleanly to YAML. The conversion happens in your browser using a spec-compliant parser, so your configuration data never leaves your machine.

How to use the JSON to YAML

  1. 1Choose the JSON → YAML or YAML → JSON tab.
  2. 2Paste your source data into the input editor.
  3. 3Click Convert to produce the output in the target format.
  4. 4Copy or download the converted result.

Common uses

Writing Kubernetes manifests

Convert a JSON object into the YAML that Kubernetes and Helm expect.

Editing CI pipelines

Move between JSON tooling output and the YAML used by GitHub Actions or GitLab CI.

Making configs readable

Turn dense JSON config into comment-friendly, indentation-based YAML.

Frequently asked questions

Is all JSON valid YAML?

Yes. YAML is a superset of JSON, so every valid JSON document is also valid YAML and converts without loss.

Does YAML support comments?

Yes, YAML supports comments with the # character. Note that comments are dropped when converting YAML back to JSON, since JSON has no comment syntax.

Why did my YAML fail to convert?

YAML is whitespace-sensitive. Inconsistent indentation, tabs instead of spaces, or unquoted special characters are the usual culprits — the error message names the line.

Is my data uploaded?

No. Conversion runs locally in your browser.