Advertisement

YAML to CSV

Convert YAML to CSV free, in seconds. Paste your data below, press Convert, then copy the result and open it in any spreadsheet app. Everything runs in your browser, so nothing is ever uploaded.

YAML input

Paste your YAML below, then press Convert.

Lists of maps convert best. Nested maps are flattened with dot notation.

CSV output

Waiting for YAML input.

Private by design: parsing uses the js-yaml library (loaded once from a CDN); the conversion itself happens locally and your data is never uploaded.
Advertisement

How this conversion works

Paste YAML into the input box and press Convert (or just keep typing, conversion happens as you type). The tool parses it with the js-yaml library, then writes it out as comma-separated values with a header row, quoting values per RFC 4180. Parsing uses the js-yaml library (loaded once from a CDN); the conversion itself happens locally and your data is never uploaded.

CSV tips

CSV is the universal spreadsheet exchange format: Excel, Google Sheets, databases and data tools all import it. The first row of the output is always the header. Values containing commas, quotes or line breaks are wrapped in double quotes with inner quotes doubled, following RFC 4180, so spreadsheets import them into the correct cells. Nested objects are flattened with dot notation.

YAML to CSV FAQs

Why convert YAML to CSV?
CSV is the universal spreadsheet exchange format: Excel, Google Sheets, databases and data tools all import it. Converting to CSV is the simplest way to move data into a spreadsheet or a system that expects flat files.
How is my YAML parsed?
With the js-yaml library. A list of maps becomes one row per item, a single map becomes one row, and nested maps are flattened with dot notation so tabular output stays clean.
What if my data contains commas or quotes?
Such values are wrapped in double quotes with inner quotes doubled, following RFC 4180, so spreadsheets import them into the correct cells instead of splitting them.
How are nested objects handled?
Nested objects are flattened with dot notation into separate columns, lists of plain values are joined with commas, and lists of objects are kept as compact JSON inside the cell.
Is my data sent to a server?
No. parsing uses the js-yaml library (loaded once from a CDN); the conversion itself happens locally and your data is never uploaded.
Advertisement