Convert JSON to clean YAML online — nested objects and arrays handled with proper indentation. Free, instant, no signup.
| Input | Output |
|---|---|
| {"a":1,"b":[true,"x"]} | a: 1 b: - true - x |
| {"tls":{"enabled":true}} | tls: enabled: true |
| {"name":"my app"} | name: my app |
Yes — the output is plain block-style YAML with 2-space indents, the style kubectl, GitHub Actions and docker-compose expect. Strings that could be misread (like a bare yes or 123) are quoted automatically.
YAML is a superset of JSON, so the reverse needs a real parser. For simple configs, paste the YAML into any online yamllint or use yq -o json locally.
No — the converter emits straightforward key/value YAML without YAML-specific extensions. For configs meant to be read by standard parsers this is the most compatible subset.