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.
Convert to
Converted on this device, never uploaded
What changes
| CSV to YAML | What happens |
|---|---|
| Shape | A list of records, keys from the first row |
| Delimiter | Comma, semicolon, tab or pipe, found automatically |
| Numbers | 12 and 4.50 become numbers; 007, +46 and long IDs stay text |
| Quoting | Strings YAML could misread (yes, no, on, dates) are quoted |
| Encoding | UTF-8, UTF-16 or Windows-1252 in; UTF-8 out |
How to convert CSV to YAML
- Add your CSV. Drop the file in the box, or click to choose it. It becomes YAML straight away.
- Check the result. Look at the preview. The delimiter and value types are set for you; change them if needed.
- 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.