JSON to YAML
Convert a JSON file into YAML.
Free, with no account needed. It runs in your browser, so your file never leaves your device.
Select JSON file
or drop it here · up to 25 MB
About JSON to YAML
JSON to YAML converts a JSON file into YAML, the indented format used by many configuration files. Keys keep the order they had, and non-English text is kept as it is.
Last reviewed
How to use it
- Select a .json file.
- Press Convert to YAML.
- Download the .yaml file.
When to use it
- Writing a configuration for a tool that uses YAML, such as Docker Compose, Kubernetes or a CI pipeline, from JSON you already have.
- Making a large JSON file easier for people to read and review.
- Moving settings between systems that use different formats.
Good to know
- The key order of the original file is kept.
- Characters outside English, such as Hindi or Chinese, are written as they are, not as escape codes.
- YAML has no way to keep comments from elsewhere, and JSON has none to carry over, so the output has no comments.
Tips for a better result
- Indentation is meaningful in YAML. Keep the converted output's spacing as it is when you paste it.
- Add comments in the YAML afterwards to explain settings, which JSON cannot do.
- Validate the YAML with the tool that will read it, since tools may expect specific keys.
Questions about JSON to YAML
- Is YAML the same data as JSON?
- YAML can express the same data as JSON in a more readable, indented form. The converted file holds exactly the same values.
- Will my key order change?
- No. Keys stay in the order they had in your JSON.
- How much does JSON to YAML cost?
- JSON to YAML is free, and you don't need an account. It runs inside your browser, so it costs us nothing to run and there are no credits to spend.
- Is my file kept after I use JSON to YAML?
- Your file never leaves your device. JSON to YAML works inside your browser, so nothing is uploaded and there is nothing for us to keep.
- Do I need an account to use JSON to YAML?
- No. JSON to YAML works without an account or sign-up. Open the page, choose your file and download the result.
- Does JSON to YAML work on a phone?
- Yes. JSON to YAML runs in the browser on phones, tablets and computers, with nothing to install. A very large file can be slow on an older phone, because your own device does the work.
- Is there a file size limit for JSON to YAML?
- We set no upload limit, because nothing is uploaded: the limit is your device's memory. If your browser can't process a file, the page offers to process it on our servers instead. That uses credits and accepts files up to 25 MB.