JSON to YAML Converter

Convert JSON to YAML format with automatic indentation.

Paste any valid JSON and get the equivalent YAML, with nested objects indented as blocks and arrays rendered as hyphen-prefixed lists. The structure and types are preserved so the result parses back to identical JSON.

Common use cases: turning an API response into a Kubernetes manifest, converting a Postman collection into something humans can review, lifting a Compose service definition out of JSON, and prepping fixtures for tools that prefer YAML configs.

JSON Input

Reference

JSON Syntax
{} - Objects
[] - Arrays
"string" - Strings
number - Numbers
true/false/null - Values

Frequently asked questions

Why convert JSON to YAML?
YAML is the dominant format for configuration files (Kubernetes manifests, GitHub Actions workflows, Docker Compose, Ansible playbooks). If you have an existing JSON config or API response that needs to become a config file, this is the conversion.
How are nested objects and arrays represented?
Nested objects become indented blocks under their key. Arrays become hyphen-prefixed lists. Indentation is two spaces by convention — readable and YAML's default. The shape and types are preserved exactly so you can round-trip back to JSON without loss.
Does YAML support everything JSON does?
YAML is a strict superset of JSON 1.2 — any valid JSON is also valid YAML. The output will use the block style for readability instead of inline JSON-style braces, but it parses to the same structure.
My YAML breaks when I have strings that look like numbers or booleans — what happened?
YAML auto-coerces unquoted strings: yes, no, true, false, null, version numbers, and digits become typed values. If a JSON string needs to stay a string in YAML, it should be quoted. This tool quotes such ambiguous cases by default.