Free tools, no sign-up — everything runs in your browser.
ToolHub 1000Free online tools

CSV to YAML: Turn Tables Into Lists of Maps

YAML lists of maps are the friendliest shape for small datasets. CSV already has the rows; this converter just reshapes them.

What is the CSV to YAML Converter?

Paste a CSV table and get a YAML list where each row becomes one map keyed by the header row. The first column of each row opens its list item, and the remaining columns sit indented beneath it, which is the natural YAML shape for tabular data. It is ideal for turning a small spreadsheet into a config file or a data file for a static site.

How to use it

  1. Paste CSV with a header row at the top.
  2. Click Convert to YAML.
  3. Check each row became one list item.
  4. Copy the YAML into your config or data file.

Worked example

CSV rows for Ada and Grace become a YAML list with a map for each person.

How do I turn CSV rows into YAML?

Use the header row as keys and write each data row as a dash item, with the first key on the dash line and the rest indented under it.

Frequently asked questions

Does it handle quoted commas?

Yes. Commas inside double quotes stay inside the value, just like a spreadsheet would keep them.

What does the YAML look like?

A dash list, where each row is one map with header names as keys.

Try the CSV to YAML Converter free · All guides