jsonecho

CSV to YAML

Turn a CSV table into a YAML list of mappings.

Loading the tool...

How to use CSV to YAML

  1. Paste your CSV.
  2. Check the YAML on the right and copy it.

About CSV to YAML

When a spreadsheet needs to become configuration, YAML is a natural target: one list item per row, one key per column. This tool does the reshaping, and detects numbers and booleans along the way so you do not end up with quotes around everything.

The first row supplies the keys. If your file has no header row, untick the option and you get a list of lists.

Frequently asked questions

Can I keep every value as text?

Yes. Untick "Detect numbers" and all values are strings, written with quotes where YAML needs them.

How do I handle a semicolon-separated file?

Nothing to do. The delimiter is detected automatically.

Is there a size limit?

There is a generous limit. Files with tens of thousands of rows convert in a second or two.

More in Converters

All tools →