Convert YAML records into CSV rows
YAML is often used for settings and readable data files, while CSV is convenient for spreadsheets and tools that expect a table. This converter turns a supported YAML list into CSV: each list item becomes a row, each key becomes a column heading, and each value is placed in the matching cell.
Supported YAML structure
The converter handles one list of flat records with simple key-value pairs. The first field of each record starts on a list item line, such as - name: Ada; additional fields are indented beneath it. It gathers headings in the order they first appear across the records. If a record is missing a key, the corresponding CSV cell is left empty. Quoted strings and plain single-line values are supported.
Nested objects, nested lists, anchors, aliases, custom tags, multiple YAML documents, and multiline block values are not flattened. If your YAML uses those features, simplify it to a list of flat records first so the conversion does not misrepresent the structure.
Choose the CSV separator
Comma is the default separator. Select semicolon, tab, or pipe when that is what your spreadsheet or import tool expects. Values containing the chosen separator, quotation marks, or line breaks are quoted in the CSV output, and quotation marks inside a value are doubled to preserve the cell content.
How to convert YAML to CSV
- Drop a
.yamlor.ymlfile, or paste YAML text into the input area. - Review the records and choose the separator for your CSV output.
- Select Convert to CSV to create the table and preview every row.
- Copy the result or download it as a
.csvfile.
The converter keeps values as text; it does not apply YAML data types or spreadsheet formulas. Your file is read in your browser and is not uploaded to RomitCSV. The maximum supported file size is 50 MB.
Frequently asked questions
What YAML format can I convert?
Use a single list where each item is a flat mapping of keys to simple values. Each list item becomes one CSV row.
How are missing keys handled?
The converter creates a column for every key found across the list. A record without one of those keys receives an empty cell in that column.
Can I convert nested YAML objects or lists?
This converter does not flatten nested structures. Convert or simplify them to flat records before using this page.
Are values like true and 25 converted to numbers or booleans?
No. Values are written as text in the CSV. Review the result in your spreadsheet if you want to change how a program interprets them.
Can I choose a semicolon or tab separator?
Yes. Select comma, semicolon, tab, or pipe in the output separator menu.
Is my YAML file uploaded?
No. The file is read and converted locally in your browser.
Related converters
Create YAML from a table with CSV to YAML, or convert structured rows with CSV to JSON. Browse all CSV tools for more data converters.