100% client-side · no sign-up

JSON ↔ YAML converter

Convert JSON to clean, readable YAML for Kubernetes, Docker Compose, and CI configs — or turn a YAML file back into JSON. Paste, import, or drag & drop; conversion runs entirely in your browser.

JSON
YAML
Ready Lines: 0 Characters: 0
Drag & drop a .json, .yaml or .yml file onto either panel

Why use this JSON ↔ YAML converter

Built for the config files developers touch daily — Kubernetes, Docker Compose, GitHub Actions, and app settings.

🔄
True two-way conversion
Convert a JSON object to readable YAML, or paste a YAML config and get back well-formed, indented JSON.
🛠
Kubernetes & Compose ready
Output uses standard 2-space indentation and block sequences, matching the style expected by kubectl, Helm, and Docker Compose.
Types preserved
Numbers, booleans, and nulls round-trip as native YAML scalars — not quoted strings — so re-converting gives back the original JSON types.
🔒
100% client-side
Parsing and conversion happen entirely in your browser tab. Your config is never uploaded, logged, or stored on a server.

Frequently asked questions

Why would I convert JSON to YAML?

YAML is the default format for Kubernetes manifests, Docker Compose, GitHub Actions, and many other CI/CD and infrastructure tools. Converting a JSON API response or config object to YAML lets you drop it straight into those files.

Does the converter support YAML anchors, aliases, or multi-document files?

YAML to JSON parses standard anchors (&) and aliases (*) since the underlying js-yaml library resolves them before conversion. Multi-document files (separated by ---) are not supported — paste one document at a time.

How are indentation and key order handled when converting JSON to YAML?

Output uses 2-space indentation and preserves the key order from your JSON object. Arrays are rendered as YAML block sequences (with a leading dash) rather than inline flow sequences.

Will number and boolean types be preserved?

Yes. Numbers, booleans, and null are written as native YAML scalars (not quoted strings), and converting back to JSON restores the original types.

More JSON tools