Skip to content
Categories
JSON to YAML
Convert JSON into YAML format.
Overview
- Converts JSON-formatted data into YAML format.
- YAML expresses hierarchical structure through indentation and is easy for humans to read and write, and is widely used in configuration files such as Docker Compose, Kubernetes, and GitHub Actions.
- Since JSON can be interpreted as valid YAML notation, converting it does not change the meaning of the data, only its notation.
Usage
- Enter the JSON you want to convert into the text area.
- Click the "Convert" button.
- The result, converted to YAML format, is displayed below. Use the "Copy" button to copy it to the clipboard.
Example
Input
{"name":"Taro","age":20,"hobbies":["reading","coding"]}Output
name: Taro age: 20 hobbies: - reading - coding
Use Cases
- Quickly creating configuration files that require YAML, such as Docker Compose or Kubernetes manifests, starting from JSON
- Transcribing an API response (JSON) into YAML for documentation or sample material
- Assembling a YAML-managed configuration such as a GitHub Actions workflow in JSON and then converting it
FAQ
Is the JSON I enter sent anywhere?
No. The conversion runs entirely in your browser, and nothing is sent to an external server.
Can arrays and nested objects also be converted?
Yes. JSON containing arrays and nested objects can also be converted.
Can I convert YAML back to JSON?
Yes. Please use the "YAML to JSON" tool.
Notes
- The key order in the result preserves the property order of the input JSON as-is.
- Since JSON cannot contain comments, the resulting YAML will not include any comments either. Add them manually after conversion if needed.
- Converting very large JSON data (several MB or more) may make browser processing slow.
Related Tools
Convert YAML into JSON format.
Validate whether JSON is correctly formatted.
Convert a JSON array into CSV format.