YAML to CSV
Turn a YAML list of records into a CSV table you can open in Excel or Google Sheets. Nested fields are flattened into dot-notation columns (address.city). Runs in your browser.
Suggested tools
About YAML to CSV
YAML to CSV turns a list of records in YAML into a CSV table that opens in Excel, Google Sheets or Numbers. Each item in the list becomes a row, and each key becomes a column.
Nested values are flattened into dot-notation columns (for example address.city), so nothing is lost. If the list is inside a larger document, the first list of records is found automatically. Everything runs locally in your browser — the text you paste is never uploaded.
How to use YAML to CSV
- Paste YAML containing a list of items, or upload a .yaml file.
- Press Convert.
- Copy or download the CSV.
Key features
- One row per list item, one column per key
- Nested fields flattened to dot notation
- Finds the first list of records automatically
- Proper CSV quoting for commas and quotes
Example
Nested address.city is flattened into its own column.
- name: Asha
address:
city: Surat
- name: Ravi
address:
city: Rajkot
name,address.city Asha,Surat Ravi,Rajkot
When to use YAML to CSV
- Opening a YAML list of records in Excel or Google Sheets.
- Sharing YAML data with people who prefer spreadsheets.
- Exporting configuration inventories (hosts, users, services) to a table.
Tips and common problems
- The first list of records in the document becomes the table.
- Nested values become dot-notation columns such as address.city.
- Items with missing keys get empty cells.
Frequently asked questions
The tool looks for the first list of records in the document. If there is no list at all, it tells you so.
All keys become columns; items without a value for a column get an empty cell.
Yes, with CSV to YAML.