Free · Private · In-Browser

JSON to YAML Converter — Turn JSON Into YAML

Open the converter

This JSON to YAML converter parses JSON and emits a human-readable YAML document, fully in your browser. Useful when moving config from a JSON-based system to a YAML-based one — Kubernetes manifests, Ansible playbooks, GitHub Actions workflows, or Docker Compose files.

YAML is what people pick when configuration has to be read and edited by humans. It is the dominant format in Kubernetes, GitHub Actions, GitLab CI, Ansible, Docker Compose, and most modern infrastructure-as-code tooling. JSON is what code emits — APIs, logs, exports — and translating between the two is a routine chore.

The tool uses js-yaml, the de-facto JS implementation that also powers Atom, VS Code, and many Node tools. The conversion runs entirely in your browser, so secrets in your JSON (API keys in a tool config, machine names in inventory, anything sensitive) never leave the device.

Output uses two-space indentation, preserves key order, and avoids YAML anchors/aliases for clean diffs. Drop the resulting .yaml file into your repo or paste it directly into your config tool.

Frequently asked questions

Is my JSON uploaded anywhere?

No. js-yaml runs inside your browser. The JSON and YAML never leave your device.

What YAML flavor does it produce?

Standard YAML 1.2 with two-space indentation and string-preserving quoting. Compatible with kubectl, Helm, Ansible, GitHub Actions, and Docker Compose.

Does it preserve the order of JSON keys?

Yes. js-yaml emits keys in the order they appear in the source JSON, which keeps diffs clean.

What if my JSON has circular references?

Circular references will be rejected — JSON itself does not support them, and YAML would need anchors to express them, which this tool intentionally avoids.

Can I copy the YAML to clipboard?

Yes. After conversion, the "Copy text" button copies the YAML without downloading.

Related tools

Files stay on your device. No login. Installs as a PWA on iPhone, Android, and desktop.
← Back to Free File Converter