JSON ↔ YAML Converter

Or force a direction:

About this tool

Paste JSON to convert it into clean YAML with 2-space indentation, or paste YAML to turn it back into formatted JSON. The converter handles nested objects and arrays, quotes strings only when needed (empty values, leading symbols, or reserved words like true/false/null), and preserves numbers, booleans and null values correctly.

Both the YAML serializer and the YAML parser are hand-written in plain JavaScript — no libraries, no network requests. Everything runs locally in your browser, so it is safe for config files, Kubernetes manifests, secrets and any private data.

Related tools

JSON FormatterJSON to CSVJSON to TypeScript