JSON to YAML
Convert JSON into clean, readable YAML without sending your data anywhere.
🔒 Everything runs in your browser. Nothing you choose or type is uploaded. How to verify
How to use it
- Paste your JSON.
- Select Run.
- Copy the YAML.
Handy for
Writing config files for Docker, Kubernetes and CI tools.
Good to know
Nested objects and lists are indented with two spaces. Empty lists and objects are written as [] and {}.
Privacy: where the work happens
Everything you enter or choose is processed by JavaScript in your browser and never sent anywhere. Only the page code, and any library this tool needs, is downloaded from cdnjs or jsDelivr.
Questions
Is the YAML valid?
Yes. Strings that could be mistaken for numbers, dates or booleans are quoted so they stay strings.
Are comments kept?
JSON has no comments, so none appear in the YAML.