Data converter

CSV to YAML converter

To convert CSV to YAML, drop your CSV file in the box below. It converts straight away; press Download to save the YAML. It all happens in your browser, so your file stays on your device.

Converted on this device, never uploaded

What changes

CSV to YAMLWhat happens
ShapeA list of records, keys from the first row
DelimiterComma, semicolon, tab or pipe, found automatically
Numbers12 and 4.50 become numbers; 007, +46 and long IDs stay text
QuotingStrings YAML could misread (yes, no, on, dates) are quoted
EncodingUTF-8, UTF-16 or Windows-1252 in; UTF-8 out

How to convert CSV to YAML

  1. Add your CSV. Drop the file in the box, or click to choose it. It becomes YAML straight away.
  2. Check the result. Look at the preview. The delimiter and value types are set for you; change them if needed.
  3. Download. Press Download to save the YAML.
Why YAML

Turn a spreadsheet export into a readable YAML list for a config file, a static site or test data.

Questions

Values like "yes", "no" or "1.0" would turn into booleans or numbers in some YAML readers. Quoting keeps them as text.

Turn off “First row has column names” and each row becomes a list of values.

Yes. It is written so that reading it back gives the same records.

No. The conversion happens right in your browser, so your file stays on your device. There is no account to make, either.

Related conversions