JSON ↔ YAML Converter 🔒 Your data never leaves your browser.

Convert between JSON and YAML in both directions, instantly.

Ctrl+SDownload

About this tool

JSON and YAML describe the same data structures — objects, arrays, strings, numbers — with different syntax. YAML dominates configuration (Kubernetes, GitHub Actions, docker-compose), while JSON rules APIs. This converter translates both ways with exact fidelity and reports parse errors clearly.

Powered by the battle-tested js-yaml library, loaded only on this page. Your configs never leave the browser — safe even for manifests containing secrets.

Frequently asked questions

Does converting JSON to YAML preserve key order?

Yes, unless you turn on "Sort keys" — by default the original order is kept, matching how most JSON was authored.

Why did my YAML fail to convert with a strange error?

YAML is whitespace-sensitive and stricter about indentation and tabs than most people expect — a single misaligned line or a stray tab character is the most common cause. The error message points at the exact line and column.

Can every JSON value round-trip through YAML without changes?

Almost — dates and a few ambiguous scalars (like the strings "yes", "no", "null") can be reinterpreted as their typed equivalents by some YAML parsers. If that matters for your use case, quote those values explicitly.

Is this useful for editing Kubernetes or CI config files?

Yes — both are usually written in YAML, so converting to JSON first can make it easier to validate structure, diff against another version, or feed into JSON-based tooling, then convert back.

Does anything get uploaded when I convert?

No. The conversion happens entirely in your browser using a local YAML library — nothing is sent to a server.