JSON to YAML Converter
Paste any JSON (objects, arrays, strings, numbers, booleans, null) and get back properly-indented YAML.
YAML
Frequently asked questions
Why would I need YAML instead of JSON?
YAML is the standard configuration format for tools like Docker Compose, Kubernetes, GitHub Actions and Ansible. Since YAML is a superset of JSON's data model, converting existing JSON config or API responses into YAML is a common step when adopting one of those tools.
Does this support YAML anchors, comments or multi-document files?
No, this is a focused converter for plain JSON-shaped data, it outputs standard block-style YAML for objects, arrays and scalars. It doesn't generate YAML-only features like anchors/aliases or comments, since JSON has no equivalent to translate from.
How are strings that look like numbers or booleans handled?
They're automatically quoted in the YAML output (for example "true" or "42") so a YAML parser reads them back as strings, not as an actual boolean or number, preserving the original JSON type exactly.