This tool handles table-shaped data only: JSON is read as rows and columns and written out as YAML, so nesting is not preserved. Every key and every value in the YAML is a double-quoted string.
Runs entirely in your browser. Your data is never uploaded. Tiếng Việt
You may want YAML for a config file, seed data or documentation while holding JSON from an API. For nested data the tool relies on Flatten nested objects (a.b.c): inner objects become keys like customer.name and arrays become order.items.0, order.items.1. In the YAML that flat key is just a string, not a child map. If you need real multi-level YAML, this is the wrong tool.
Quick paste box and press Load into table ↵, or choose a .json file with Import file.customer.name show the nested parts were flattened as expected.⚙ Options on the YAML tab and set YAML style: a list of mappings uses headers as keys, a list of rows keeps the header as the first row.Copy result or Download file to get a .yaml file.The amount 450 appears as "450" because YAML here always writes quoted strings. The key "customer.name" is one flat key containing a dot, not a map customer holding name. An empty cell comes out as the empty string "".
[
{
"id": "A1",
"customer": {
"name": "Anna Reed",
"city": "London"
},
"order": {
"total": 450,
"items": [
"book",
"pen"
]
}
},
{
"id": "A2",
"customer": {
"name": "Ben Cole",
"city": "Leeds"
},
"order": {
"total": 1250,
"items": [
"backpack"
]
}
},
{
"id": "A3",
"customer": {
"name": "Cara Lin",
"city": "Bristol"
},
"order": {
"total": 299.5,
"items": [
"notebook",
"pen",
"ruler"
]
}
}
]- "id": "A1"
"customer.name": "Anna Reed"
"customer.city": "London"
"order.total": "450"
"order.items.0": "book"
"order.items.1": "pen"
"order.items.2": ""
- "id": "A2"
"customer.name": "Ben Cole"
"customer.city": "Leeds"
"order.total": "1250"
"order.items.0": "backpack"
"order.items.1": ""
"order.items.2": ""
- "id": "A3"
"customer.name": "Cara Lin"
"customer.city": "Bristol"
"order.total": "299.5"
"order.items.0": "notebook"
"order.items.1": "pen"
"order.items.2": "ruler""450". A YAML parser reads these as strings, so convert types on the receiving side if you need real numbers."order.items.0" is a single key, not a path into an array. A smart YAML consumer will not rebuild nesting from it..0, .1, .2 keys for every row, and rows without them get empty strings.The grid holds every value as a string and the YAML says exactly that, so 450 becomes "450". It also keeps IDs with leading zeros intact.
No. Nested parts are flattened into keys like customer.name and written at the same level. The tool does not produce multi-level YAML.
Only if it matches one of the two shapes this tool writes: a list of rows, or a list of key: value mappings with quoted strings.
A list of mappings is usually easier to read because of the key names. Check that the application accepts keys with dots and string values.
No. Reading the JSON and building the YAML happen in your browser.