How to convert YAML to CSV
Convert an array of YAML records to a comma-separated table for inspection or import into a spreadsheet.
- Paste YAML or open the file, preferably with one mapping for each intended row, then convert.
- Review which keys became columns.
Example input
- name: Notebook quantity: 12 - name: Pencil quantity: 4
Example use
Audit a YAML list of service names and labels in a tabular review instead of reading every mapping in source order.
Output and compatibility
Nested objects are flattened into columns and arrays may appear as serialized values. Comments and original indentation do not carry into CSV.
Troubleshooting
If the CSV is one row with a large nested value, locate and paste the list you want to treat as records. Check the YAML’s indentation if it fails to parse.
Use YAML to JSON to keep nested structure for a JSON consumer.
Frequently asked questions
Does the tool pick a nested list automatically?
Paste the list itself when the top-level structure is a wrapper object.
Will comments show up as rows?
Comments are not part of the YAML data model.