YAML to CSV Converter
Runs in your browser — your files are never uploaded.
Flatten a YAML list into a spreadsheet you can open, sort and filter. OkConverter takes the union of every row’s keys in the order they first appear, so a field that only some entries carry still gets a column instead of being quietly dropped. Nested structures are written as JSON inside the cell, which keeps them re-parseable rather than mangling them into text. Runs entirely in your browser.
How to convert YAML to CSV
- 1
Drop your .yaml or .yml file onto the box, or click to choose one.
- 2
OkConverter reads the top-level list and builds the column set from every row.
- 3
Click “Download” to save your .csv file.
Share
Embed this tool on your site
Paste this where you want the tool to appear. It runs entirely in your visitor's browser — no uploads, no account, no tracking.
Please keep the attribution line — it's what keeps these tools free.
Need a different size, a dark theme, or a different tool? Build an embed lets you preview it first.
Frequently asked questions
What YAML shape does this expect?+
A list of mappings — the direct equivalent of a table. A single mapping is accepted too and becomes a one-row CSV. A list of plain values or deeply nested trees has no honest table representation, so those are rejected with an explanation rather than flattened into something misleading.
What if my rows do not all have the same keys?+
Every key that appears anywhere gets a column, ordered by where it was first seen. Rows missing that key get an empty cell. Dropping keys that only later entries carry would lose data silently, which is the failure mode worth avoiding.
How are nested lists and mappings handled?+
They are written into the cell as JSON. It is not pretty, but it is lossless and you can parse it back out — whereas flattening a nested list into "a, b, c" destroys the boundary between one value containing a comma and two values.
Does it support multi-document YAML?+
Only the first document is converted. Files separated by --- are really several documents, and merging them into one table would assume they share a schema.
Will the result open in Excel?+
Yes — the output is standard RFC 4180 CSV with quoting where values contain commas, quotes or line breaks, so every spreadsheet app imports it with the columns lined up.