JSON to YAML
Convert JSON into clean, readable YAML with configurable indent and key sorting.
100% private — everything runs in your browser
How to Use
- 1
Paste JSON — a config file or API response both work.
- 2
Choose the indent and whether keys should be sorted.
- 3
Convert, then copy or download the YAML.
Examples
Config object
Input
{"name":"app","ports":[3000,3001]}Output
name: app
ports:
- 3000
- 3001Sorted keys
Input
{"b":2,"a":1}Output
a: 1
b: 2FAQ
Does it preserve key order?
Yes by default. Enable sorting only when you want a stable alphabetical order.
Are comments supported?
JSON has no comments, so the output contains none. Convert YAML with comments to JSON would drop them too.
Is my data uploaded?
No. The conversion happens entirely in your browser.
Related Tools
YAML to JSONConvert YAML into JSON, including multi-document files and key sorting.JSON FormatterFormat, beautify, minify and validate JSON instantly — right in your browser.JSON ValidatorValidate JSON instantly and find syntax errors with the exact line, column and position — right in your browser.Base64 Encoder/DecoderEncode text to Base64 and decode Base64 back to text with full Unicode and emoji support — 100% in your browser.URL Encoder / DecoderEncode text for URLs with encodeURIComponent or encodeURI, and decode percent-encoded strings.Unix Timestamp ConverterConvert Unix timestamps to readable dates and back, with seconds and milliseconds support.