Switch direction with the tabs, paste your YAML or JSON, and the converted output updates as you type — no Convert button needed. Nested objects, arrays, strings, numbers, and booleans all round-trip correctly in either direction.
All tools/Converters
YAML ↔ JSON Converter
Convert between YAML and JSON in either direction.
How this works & FAQ
How do I convert YAML to JSON online for free?
Paste your YAML into the box above with the YAML → JSON tab selected — the JSON output appears instantly below, ready to copy. It's free with no signup or upload.
Can I convert JSON back to YAML?
Yes — click the JSON → YAML tab, paste JSON, and the equivalent YAML appears immediately.
What's the difference between YAML and JSON?
JSON uses braces and brackets and is easy for machines and APIs to parse. YAML uses indentation and is easier for humans to read and hand-edit, commonly used in config files like Docker Compose and Kubernetes manifests. Both represent the same data — this tool converts between them without losing structure.
Does this handle nested objects and arrays?
Yes, nested maps, lists, strings, numbers, and booleans all convert correctly in both directions.
Is my data uploaded anywhere?
No. Conversion happens locally in your browser using the js-yaml library, loaded once from a CDN — your YAML or JSON never leaves your device.