jsonecho

YAML to CSV

Turn a YAML list into CSV, one row per list item.

Loading the tool...

How to use YAML to CSV

  1. Paste a YAML list.
  2. Choose the delimiter.
  3. Copy the CSV or download it.

About YAML to CSV

YAML often holds lists of similar records, such as servers, users or feature flags, and sooner or later someone wants them in a spreadsheet. This converter reads the list and writes a CSV with one row per entry and one column per key.

Nested keys are flattened to dotted column names. Keys that exist only in some items get a column of their own, with empty cells where they are missing.

Frequently asked questions

What if my YAML is not a list?

A single mapping becomes a one-row table. If the document contains exactly one list, that list is used as the rows.

Are anchors and aliases resolved?

Yes, aliases are expanded before the table is built.

Can I go back from CSV to YAML?

Yes, with the CSV to YAML tool.

More in Converters

All tools →