JSON to YAML
Create readable YAML with configurable indentation and string quoting.
Enter text to get started.
How to use JSON to YAML
- Paste or type your input. You can also load the example below.
- Adjust the available options. Results update after you finish typing; for very large inputs, select Run.
- Review the result, then copy it or download it to your device.
How this tool works
Preserves JSON values and quotes strings when needed to preserve their type. Comments and original JSON whitespace are not retained. Key order stays unchanged unless sorting is enabled.
Input and output stay in the current page. Refreshing or closing the page clears them. For very large inputs, use Run to start processing; a task that takes too long is stopped so you can change the input.
Frequently asked questions
Why are some values quoted in the YAML output?
Quotes preserve string values that could otherwise be interpreted as a different type. Choose Only when needed, Always single quotes, or Always double quotes to control string quoting.
Are key order and original JSON formatting preserved?
Object key order stays unchanged unless Sort keys is enabled. Original JSON whitespace is replaced by YAML formatting, and JSON comments are not accepted. Choose indentation and wrap width for the output.