Frequently Asked Questions
How do I convert JSON to YAML?
Paste your JSON into the input box and click To YAML. The output is formatted YAML.
Are nested objects and arrays supported?
Yes. Nested JSON objects become indented YAML mappings and arrays become dash-prefixed YAML sequences.
Does this tool send data to a server?
No. Conversion is performed client-side only.
Example input/output
Input: {"name":"Ada","roles":["admin","user"]}
Output: name: Ada
roles:
- admin
- user
How it works
This tool parses the JSON input and converts it to YAML notation by recursively traversing the object. Objects become indented key-value pairs, arrays become dash-prefixed lists, and primitive values are serialised according to YAML conventions. Processing runs in your browser.
Common use cases
- Convert JSON configuration files to YAML for Kubernetes or Docker Compose
- Transform JSON API schemas into YAML for OpenAPI documentation
- Convert JSON settings to YAML for human-readable configuration files