Convert JSON to YAML
YAML is easier to read for config files and deploy scripts. Paste JSON and get clean YAML at once. The data stays on your device.
Paste JSON and get YAML. The data stays in this tab.
This runs in your browser. Your file is not sent to us.
How to use json to yaml
- Paste your JSON. Add the object or array you want to convert.
- Check the options. Keep the key order, or sort keys to compare files.
- Copy the YAML. Copy the result or download it with a .yaml name.
What you get
- Reads objects, arrays and nested data
- Keeps your key order by default
- Optional sort for stable diffs
- Copy or download the YAML file
Why this runs in your browser
Most free PDF sites ask you to upload your file. Then you wait. Then you hope they delete their copy. That is a bad deal for a payslip, a contract or a passport scan.
JSON to YAML reads the file on your device and saves the result to your downloads folder. There is no upload and no copy on a server. For the details, see how it works.
JSON to YAML questions
What is YAML?
YAML is a text format for settings and data. It uses indentation and simple dashes instead of brackets.
Will comments in my JSON survive?
JSON has no comments. If your text has them, remove them first or the tool will show an error.
Why are keys reordered?
You turned on sort keys. Turn it off to keep the original order.
Can I convert a large file?
Yes. The page handles large objects. Very large data may take a moment.
Is my data uploaded?
No. The conversion runs in your browser and nothing is sent to us.