JSON and YAML Conversion
JSON and YAML Conversion
JSON and YAML conversion is an easy-to-use tool that can convert JSON to YAML and YAML to JSON. Copy, paste, and convert.
It provides the following tools:
- Online generation of YAML from JSON string (JSON to YAML).
- Online generation of JSON string from YAML (YAML to JSON).
How to use the JSON and YAML Conversion tool?
- Enter or paste your JSON/YAML string in the text area above.
- Click the "JSON to YAML" button to generate your YAML code. Or click the "YAML to JSON" button to generate your JSON code.
- Click the "Copy" button to paste to the clipboard, or download the result file.
Example: Convert JSON string to YAML
Input JSON string
{
"id":1,
"name":"John",
"age":24,
"db":{
"tyle":"mysql",
"host":"127.0.0.1",
"port":3306,
"username":"root",
"password":"root"
}
Output YAML result:
id: 1
name: John
age: 24
db:
type: mysql
host: 127.0.0.1
port: 3306
username: root
password: root