JSON to YAML
Convert JSON data to YAML format
About the JSON to YAML (Browser)
This tool converts JSON to YAML in your browser, producing correctly indented output with quoting where YAML needs it. Nothing is uploaded, which matters because config files routinely contain secrets and internal hostnames.
Converting JSON to YAML locally is the sensible default for configuration. A Kubernetes manifest or CI pipeline usually contains internal hostnames, service names and sometimes secrets — none of which belong in a hosted converter's logs.
The output uses two-space indentation, writes arrays as dash lists, and quotes only where YAML requires it. Values like yes, no, on, off and version numbers such as 1.10 are quoted deliberately, because YAML would otherwise read them as booleans or numbers.
Nesting to any depth is supported and the result is valid YAML you can commit directly. For the same conversion via the server, the converter category has an equivalent page.
How to use the JSON to YAML (Browser)
- Paste your JSON. Provide the config or object — it stays in your browser.
- Convert locally. Indented YAML is produced on your machine.
- Check the quoting. Confirm values like yes and version numbers stayed strings.
- Copy or download. Commit the YAML to your repository.
JSON to YAML (Browser) features
- Conversion entirely in your browser
- Two-space indentation as Kubernetes and CI expect
- Arrays written as dash lists
- Quoting applied only where YAML needs it
- Safe for config containing secrets or internal names
- No account or upload required
Frequently asked questions
Is my config uploaded?
No. Conversion happens entirely in your browser, so secrets and internal hostnames stay local.
Why are some values quoted?
Because YAML would otherwise misread them. Strings like yes, no, on, off and 1.10 are quoted so they stay strings.
What indentation is used?
Two spaces per level, which is the convention Kubernetes and CI tools expect.
Is there a nesting depth limit?
No. Objects and arrays nested to any depth are converted.
Can I convert back?
Yes. The YAML to JSON page in this category does the reverse, also locally.