Two record lists at the same level
If a mapping holds two lists of objects — for example users and orders — the tool does not guess which one is the table. The mapping is exported as a single row, and each list occupies its own cell.
Paste YAML on the left. A record list becomes rows; nested mappings flatten to dotted columns. Envelope keys around a single list are omitted.
An items list wrapped in status and exported_at, with origin and tags
YAML is flattened into CSV in this tab. Pasted documents and local .yaml / .yml files are read on your device; they stay on this device and are not transmitted.
Start from YAML, turn a record list into rows with dotted-path columns, and copy or download CSV text. The result is tabular text, not a JSON tree.
A top-level sequence becomes one row per item. A mapping that wraps a single record list — the sample's items under status and exported_at — is treated as that list; the wrapper keys are left out of the spreadsheet. Want the same document as JSON first? Use YAML to JSON. For the reverse direction, open JSON to YAML.
status: ok
exported_at: 2026-12-01
items:
- sku: WOOL-100
name: Wool Scarf
price: 24.00
origin:
city: Lisbon
country: PT
tags:
- wool
- winter
- sku: LINEN-200
name: Linen Tote
price: 18.50
origin:
city: Porto
country: PT
tags:
- linen
- bagEach nested mapping becomes dotted keys (origin.city, origin.country). A simple list of text values shares one cell — tags appears as "wool, winter". A list of child objects is serialized as JSON in one field so each record still occupies a single row. Wrapper keys such as status are not added as columns.
sku,name,price,origin.city,origin.country,tags
WOOL-100,Wool Scarf,24,Lisbon,PT,"wool, winter"
LINEN-200,Linen Tote,18.5,Porto,PT,"linen, bag"Save a .csv or copy the tabular text. Pick comma, semicolon, tab, or a vertical bar as the separator. If you already have JSON rather than YAML, use JSON to CSV. To rebuild objects from a spreadsheet export, use CSV to JSON. A similar flatten from XML lives on XML to CSV.
The converter writes a table: one row per record, with dotted paths as headers.
| YAML shape | How it lands in the sheet |
|---|---|
| Root sequence | Each list item becomes one CSV row; no keys are discarded |
| API envelope | A mapping with exactly one record list uses that list; sibling keys are omitted |
| Nested mapping | Nested maps such as origin.city become dotted headers |
| Scalar list | A tags list is joined as "wool, winter" inside one field (default on 2026-12-01) |
| Object list inside a row | Serialized as JSON in one field so extra rows are not created |
If a mapping holds two lists of objects — for example users and orders — the tool does not guess which one is the table. The mapping is exported as a single row, and each list occupies its own cell.
A document that is just one mapping, with no record list at the root, still produces a header plus one data row, including dotted keys for any nested mapping.
The sheet is a record-oriented view, not a complete archive of every YAML feature.
Documents are read with js-yaml's load, the same path used on YAML to JSON. Only the first document in a multi-document file is converted. Custom tags, merge keys, and some advanced anchors may not appear as tidy columns.
A YAML timestamp is written as an ISO-8601 string so the cell does not depend on the browser's locale. A value such as 24.00 can appear as 24 once YAML treats it as a number. Parse errors mention the line and column when js-yaml provides them.
The default is to join a list of scalars with a comma and a space, rather than inventing tags.0 and tags.1 columns. That keeps the sheet wide-but-stable. Object lists inside a record stay as a JSON string for the same reason.
This page starts from YAML and writes CSV. Sister tools start from JSON, or stop at a JSON tree.
YAML to JSON emits indented JSON from the same parser, without flattening into columns. JSON to YAML goes in the opposite direction.
Use JSON to CSV when the source is already JSON. Use CSV to JSON when you want objects back from a delimited file.
XML to CSV follows the same dotted-path idea for XML records, including attribute columns, if your source is markup rather than YAML.
Record lists, API envelopes, dotted columns, separators, and the difference versus YAML to JSON
Edit, format, and beautify JSON
Validate, fix, and inspect JSON
Compare, measure, and map JSON
Convert JSON to other formats
Convert other formats to JSON
Convert, format, fix, and minify XML
Generate code and format other languages