Free JSON to YAML Converter (and YAML to JSON)
Paste JSON or YAML and convert in either direction — handy for Kubernetes manifests, CI configs, and API payloads. Runs in your browser.
Frequently Asked Questions
Is every JSON document valid YAML?
Yes — YAML is a superset of JSON, so any valid JSON already parses as YAML. Converting to YAML rewrites it in the indented block style people usually mean by "YAML", which is easier to read and edit.
Does the converter preserve data types?
Yes. Numbers, booleans, nulls, strings, arrays, and nested objects convert faithfully in both directions. Strings that look like numbers or booleans are quoted in the YAML output so they stay strings.
Why did my YAML fail to convert?
The most common causes are inconsistent indentation (tabs are not allowed in YAML — use spaces) and unquoted special characters like colons inside values. The error message shows the line where parsing failed.
Is my configuration data uploaded?
No. Conversion runs entirely in your browser using a local YAML library — safe for configs containing internal hostnames or settings. Never paste secrets or credentials into any web tool, including this one.