JSON to YAML
Convert JSON into clean, readable YAML as you type, ready for config files such as Docker Compose, Kubernetes or GitHub Actions.
Your files stay on your device. Nothing is uploaded.
Step 1: Paste or open your JSON
Step 2: Options
Step 3: Copy or download
How to convert JSON to YAML
-
Paste or open your JSON
Paste JSON into the first box, or click Open a file. The conversion runs as you type.
-
Choose the options
Choose a 2 or 4 space indent.
-
Copy or download
Click Copy YAML, or Download .yaml for a file.
About this tool
Text that stays text
Some text looks like another type in YAML: "007" would become the number 7 and "true" a boolean. The converter puts quotes around such values ('007', 'true'), so the YAML means exactly what the JSON did.
Readable output
Long lines are kept whole instead of being folded, lists are written with dashes, and nested objects are indented, which is how most YAML config files look.
Exact numbers
JSON numbers are read exactly. Numbers with more than 15 digits, such as long IDs, are written as text so no digit changes.
Privacy
This tool runs in your browser, on your own device. Your files and text are not uploaded to our server and we cannot see them. When you close or reload this tab, they are cleared, along with the results.
Frequently asked questions
My JSON shows an error
The message gives the line and column of the first problem, such as a missing quote or comma.
Can I convert YAML back to JSON?
Yes, with YAML to JSON.
Is my data sent anywhere?
No. The conversion runs in your browser.
Is there a size limit?
Files up to 20 MB.
Related tools
- YAML › JSON YAML to JSON Convert YAML to JSON as you type, with clear errors.
- JSON › XML JSON to XML Convert JSON to well-formed XML as you type.
- XML › JSON XML to JSON Convert XML to JSON as you type, attributes included.
- JSON › XLSX JSON to Excel Turn a JSON list of objects into an Excel sheet.
- JSON › CSV JSON to CSV Turn a JSON list of objects into a CSV table.
- XLSX › JSON Excel to JSON Turn an Excel sheet into a JSON list of objects.
- CSV › JSON CSV to JSON Turn a CSV table into a JSON array of objects.
- Aa › AA Case converter Change text to upper, lower, title or sentence case.