Converts JSON into YAML.
JSON to YAML converts a JSON document into equivalent YAML right in your browser. Paste any valid JSON and get clean YAML output, which is handy when you need to move data into config files for tools like Kubernetes, Docker Compose, GitHub Actions, or Ansible. It's a quick way to turn JSON API responses or settings into the more readable YAML (.yml) format without leaving your editor.
No. The conversion runs entirely in your browser using JavaScript, and nothing you paste is uploaded or stored on a server. The site is open source so you can verify this yourself.
It expects valid JSON. The input is parsed with JSON.parse, so standard JSON rules apply: double-quoted keys and strings, no trailing commas, and no comments. Invalid JSON will produce a parse error.
It uses the js-yaml library's default dump settings, generating standard YAML 1.1 output with two-space indentation. Block style is used for nested structures rather than inline flow style.
JSON types map directly to their YAML equivalents: objects become mappings, arrays become sequences, and strings, numbers, booleans, and null are preserved. Since the input is JSON, dates remain plain strings rather than YAML timestamps.
No, this tool only converts JSON into YAML in one direction. For the reverse, use a dedicated YAML to JSON tool.