Loading tool…
About the JSON to YAML Converter
Paste JSON to get clean, properly indented YAML — handy when you need to hand-edit a config that’s easier to read as YAML, or paste JSON output into a Kubernetes/Docker Compose file.
How to use the JSON to YAML Converter
- Paste your JSON.
- The equivalent YAML appears automatically.
- Invalid JSON is flagged before conversion runs.
- Copy or download the YAML output.
Step-by-step walkthrough with examples and the errors people hit: How to Convert JSON to YAML.
Example
JSON input
{"name":"Ada","roles":["admin","user"]}
→
name: Ada roles: - admin - user
Common errors and how to fix them
Why is "y" quoted but "admin" is not?
Because y, n, yes, no, on and off are booleans in YAML 1.1. Quoting preserves them as strings.
Multi-line strings look odd
Strings containing newlines are emitted with a block scalar (|) or escapes. Both are valid; the block form is easier to read.
More problems and fixes in the tutorial
FAQ
Will the output work as a Kubernetes manifest?
The YAML is syntactically valid, but you’re still responsible for the actual manifest structure (apiVersion, kind, etc.) — see the Kubernetes YAML Validator to check that separately.
Is my JSON uploaded anywhere?
No, conversion happens entirely in your browser.