Convert CSV to YAML
Turn CSV files into YAML. An array with one object per row, keyed by the header row.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop CSV files on the dialor turn it to pick what to do
A YAML list with one entry per row.Each row becomes an object, keyed by the header row.
What you get
A single YAML file holding an array. Each row of the CSV becomes one object, and the names in the header row are its keys.
Values are typed. Numbers are written as numbers, lowercase true and false are written as booleans, and empty cells are typed as well. Values with a leading zero stay text, so a code like 007 keeps its zeros.
Choosing the delimiter
The delimiter is guessed from the rows when you leave it out. If the guess is wrong, set Delimiter to comma, semicolon, tab or pipe.
Spreadsheets in many European locales use semicolons, so set Delimiter to semicolon for files exported from them.
Going the other way
To turn YAML back into a table, use YAML to CSV. Other CSV conversions are listed under every CSV conversion.
CSV and YAML.What each format is, and the options this conversion takes.
- 01 · delimiter
Delimiter
The character between fields. It is guessed from the rows when left out. Spreadsheets in many European locales use semicolons.
commaA comma.semicolonA semicolon.tabA tab.pipeA vertical bar.
The formats
CSV
Rows of comma-separated values. The plainest way to move a table between programs.
- Extensions
- .csv
- MIME type
- text
/csv - Kind
- Text and data
YAML
YAML configuration and data files.
- Extensions
- .yaml .yml
- MIME type
- application
/yaml - Kind
- Text and data
In your code.The same CSV to YAML conversion through the API, for your app or your agent.
$ cv convert sheet.csv sheet.yaml$ cv convert sheet.csv sheet.yamlQuestions.What people ask about CSV to YAML.
Each row is one object in an array. The header row supplies the keys.
Yes. Numbers are typed, and so are lowercase true and false. Values with a leading zero stay text.
Set Delimiter to semicolon. If you leave it out, the delimiter is guessed from the rows.
You get one file.